# openapi_to_mcptools (`net.2xcel.aus.openapi-to-mcptools`)

> Agent Utility Service (AUS) OpenAPI to MCP Converter: Dynamically converts OpenAPI / Swagger 3.0+ specs into executable Model Context Protocol (MCP) tool schemas.

## Metadata & Execution
- **Namespace**: `net.2xcel.aus.openapi-to-mcptools`
- **Canonical HTML Page**: https://aipages.tech/tool/net.2xcel.aus.openapi-to-mcptools
- **JSON Specification**: https://aipages.tech/api/tools/net.2xcel.aus.openapi-to-mcptools
- **Execution Endpoint**: `POST https://aipages.tech/tool/openapi-to-mcptools`
- **Connection Protocol**: `http`
- **Pricing**: $0.15 USDC per call (Base Mainnet Chain ID 8453)
- **Health Status**: `unknown`
- **Capabilities**: openapi-conversion, mcp-generation, api-tooling
- **Authentication**: x402 payment protocol (Header: x-payment-receipt; Token: USDC on Base Mainnet; Recipient: 0xE57cB8C73c4000EA04ba0eb607228CbAec7f8e9C)

## Input Parameters (JSON Schema Draft-07)
```json
{
  "type": "object",
  "properties": {
    "spec_url": {
      "type": "string",
      "description": "Remote URL of OpenAPI JSON/YAML spec"
    },
    "spec_content": {
      "type": "string",
      "description": "Raw inline OpenAPI JSON/YAML string"
    }
  },
  "required": []
}
```

## Invocation Examples

### 1. Zero-Friction Sandbox Test (No Payment Required)
```bash
curl -X POST "https://aipages.tech/tool/net.2xcel.aus.openapi-to-mcptools" \
  -H "Content-Type: application/json" \
  -H "x-playground-test: true" \
  -H "x-agent-id: markdown-agent" \
  -d '{}'
```

### 2. Production Invocation (x402 Base Mainnet Settlement)
```bash
curl -X POST "https://aipages.tech/tool/openapi-to-mcptools" \
  -H "Content-Type: application/json" \
  -H "x-payment-receipt: <BASE_USDC_PAYMENT_RECEIPT>" \
  -d '{}'
```
