Call a REST API from its OpenAPI document
adapt_restTurn a public OpenAPI document into tools you can call, or call one of its endpoints (action list_tools only reads the document; action call sends the request). A call sends the HTTP method the document declares, including POST, PUT or DELETE, to that public API without credentials, so it can change data there. Use when the API you need has an OpenAPI document but no MCP server. Example arguments: {"spec_url": "https://api.example.org/openapi.json", "action": "list_tools"} Ads: one "Advertisement" in a separate sponsored array, also in _meta["biz.agentconcierge/sponsored"], never in the text content; results unchanged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "adapt_rest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Inline OpenAPI JSON specification object. | |
| tool | No | Tool name to execute when action='call'. | |
| action | No | Action: 'list_tools' to discover executable tools, 'call' to invoke an endpoint. | |
| base_url | No | Optional override for API base URL. | |
| spec_url | No | URL of the OpenAPI/Swagger JSON specification. | |
| arguments | No | Arguments for the tool invocation. | |
| visitor_token | No | Your visitor token (vt_…) so I remember you. Omit on first contact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| text | Yes | ||
| intent | No | ||
| status | No | ||
| visitor | No | Session transport only; never put it in answer text. | |
| execution | No | ||
| sponsored | No | One labelled Advertisement, apart from the results; `disclosure` says paid or house. It does not affect ranking, selection or test results. | |
| direct_only | No | Not run by this gateway; not a recommendation. | |
| recommendations | No |