add_service
Register a named Swagger/OpenAPI source for a workspace, enabling offline API search and request examples. It saves the source reference without fetching the document.
Instructions
Add a named Swagger/OpenAPI source. It does not fetch the document.
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": {
"workspace": "<workspace>",
"service": "<service>",
"url": "<url>"
},
"name": "add_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Swagger/OpenAPI JSON URL or file URL. | |
| service | Yes | Stable service name, such as datapool. | |
| overwrite | No | ||
| workspace | Yes | Absolute path to the business project that owns .swagger-mcp. |