Files
claude-skills-reference/engineering/mcp-server-builder/references/openapi-extraction-guide.md
Alireza Rezvani 20c4fe823c fix: enhance 5 skills with scripts, references, and Anthropic best practices (#248)
* fix(skill): enhance git-worktree-manager with scripts, references, and Anthropic best practices

* fix(skill): enhance mcp-server-builder with scripts, references, and Anthropic best practices

* fix(skill): enhance changelog-generator with scripts, references, and Anthropic best practices

* fix(skill): enhance ci-cd-pipeline-builder with scripts, references, and Anthropic best practices

* fix(skill): enhance prompt-engineer-toolkit with scripts, references, and Anthropic best practices

* docs: update README, CHANGELOG, and plugin metadata

* fix: correct marketing plugin count, expand thin references

---------

Co-authored-by: Leo <leo@openclaw.ai>
2026-03-04 08:25:54 +01:00

867 B

OpenAPI Extraction Guide

Goal

Turn stable API operations into stable MCP tools with clear names and reliable schemas.

Extraction Rules

  1. Prefer operationId as tool name.
  2. Fallback naming: <method>_<path> sanitized to snake_case.
  3. Pull summary for tool description; fallback to description.
  4. Merge path/query parameters into inputSchema.properties.
  5. Merge application/json request-body object properties when available.
  6. Preserve required fields from both parameters and request body.

Naming Guidance

Good names:

  • list_customers
  • create_invoice
  • archive_project

Avoid:

  • tool1
  • run
  • get__v1__customer___id

Schema Guidance

  • inputSchema.type must be object.
  • Every required key must exist in properties.
  • Include concise descriptions on high-risk fields (IDs, dates, money, destructive flags).