Skip to main content
Glama
OpenAPI MCP Server

OpenAPI MCP Server

by matpb

get_schema_details

Retrieve detailed OpenAPI schema or model information, including properties, nested schemas, and resolved $ref references, to understand data structures for API integration.

Instructions

Get detailed information about a specific schema/model including all properties and nested schemas with resolved $ref references.

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": {
      "schemaName": "<schemaName>"
    },
    "name": "get_schema_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxDepthNoMaximum depth for resolving nested references (default: 5). Use lower values for deeply nested schemas.
schemaNameYesThe name of the schema to retrieve (e.g., 'User', 'OrderResponse')
resolveRefsNoWhether to resolve $ref references inline (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It does disclose meaningful behavior beyond the name — that $ref references are resolved inline and that nested schemas are returned — but it says nothing about failure modes (unknown schemaName), size/response characteristics for large schemas, or whether resolution can be truncated at maxDepth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single well-formed sentence with the payload characteristics front-loaded and no filler. It could be marginally stronger by leading with the differentiator from search_schemas rather than the generic 'Get detailed information'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only three fully documented parameters and no output schema, the description is close to sufficient, and it does compensate for the missing output schema by listing what comes back (properties, nested schemas, resolved refs). It still leaves the agent without error behavior for missing schemas or guidance on obtaining valid schema names.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters are already documented, including defaults for maxDepth and resolveRefs. The description's 'resolved $ref references' merely restates the resolveRefs parameter and adds no new syntax or trade-off guidance.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Get detailed information') and resource ('a specific schema/model') and scopes the payload ('all properties and nested schemas with resolved $ref references'). It is clear enough to distinguish from a listing/search tool, but it never names search_schemas or explains the boundary between finding a schema and fetching one.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the caller must already know a schemaName, which is signalled by 'a specific schema' and the example values in the schema. There is no explicit when-to-use statement, no when-not guidance, and no pointer to a sibling for discovering schema names.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.