Remove Loaded Spec
swagger_remove_specRemove loaded OpenAPI/Swagger specifications from memory to free up resources or reload updated ones.
Instructions
Remove a loaded OpenAPI/Swagger specification from memory.
Use this tool to free up memory or reload a spec that has changed.
Args:
spec_name (string): Name of the spec to remove
Returns: Confirmation message.
Examples:
Use when: "Remove the Petstore API spec" -> params with spec_name="Petstore v1.0.0"
Use when: "Unload the internal API spec" -> params with spec_name="Internal API v2.0"
Error Handling:
Returns error if the spec name is not found
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_name": "<spec_name>"
},
"name": "swagger_remove_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_name | Yes | Name of the spec to remove (use swagger_list_loaded to see available names) |