867 B
867 B
OpenAPI Extraction Guide
Goal
Turn stable API operations into stable MCP tools with clear names and reliable schemas.
Extraction Rules
- Prefer
operationIdas tool name. - Fallback naming:
<method>_<path>sanitized to snake_case. - Pull
summaryfor tool description; fallback todescription. - Merge path/query parameters into
inputSchema.properties. - Merge
application/jsonrequest-body object properties when available. - Preserve required fields from both parameters and request body.
Naming Guidance
Good names:
list_customerscreate_invoicearchive_project
Avoid:
tool1runget__v1__customer___id
Schema Guidance
inputSchema.typemust beobject.- Every
requiredkey must exist inproperties. - Include concise descriptions on high-risk fields (IDs, dates, money, destructive flags).