Import OpenAPI
import_openapiImport an OpenAPI 3.x / Swagger 2.0 spec as a set of custom HTTP tools — one tool per operation, filed under a single group. Pass the spec text (JSON or YAML). Use this instead of hand-writing many create_http_tool calls when the user supplies a spec.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spec_text": "<spec_text>"
},
"name": "import_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Group name (default: the spec's title) | |
| base_url | No | Override the spec's server base URL | |
| spec_text | Yes | The raw OpenAPI spec, JSON or YAML | |
| tags_json | No | Optional JSON object of operation name → tags, only for an operation riskier than its method says, e.g. '{"send_invoice": {"destructive": true}}'. Tags: read_only, destructive, idempotent, open_world. Each operation otherwise takes its method's tags. | |
| name_prefix | No | Prefix for every generated tool name, to avoid collisions |