Skip to main content
Glama

parseSchema

Read-only

Recursively parses a named schema from a Swagger/OpenAPI document URL and returns the full JSON Schema structure with nested references resolved.

Instructions

递归解析 Swagger/OpenAPI 文档中的指定 Schema,生成完整的 JSON Schema 结构

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

Input Schema

NameRequiredDescriptionDefault
urlYesSwagger/OpenAPI 文档的 URL 地址
headersNo可选的请求头(如需要认证时)
timeoutNo请求超时时间(毫秒,默认 30000)
schemaNameYes要解析的 Schema 名称

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and network reach are covered. The description adds meaningful behavior beyond that by disclosing that parsing is recursive and yields a full JSON Schema structure, but it omits what happens when schemaName is absent, whether $refs are resolved, and how fetch failures surface.

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?

It is a single compact sentence with the action and the output front-loaded and no redundant wording. Brevity is close to ideal, though the space saved could have been used for one routing or prerequisite clause.

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?

For a remote-fetching, recursively-resolving tool with no output schema, the description covers only what is produced (a complete JSON Schema) and not failure modes, ref-resolution limits, or partial-result behavior. With full parameter coverage in the schema the definition is usable, but it leaves real gaps for an open-world operation.

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 url, headers, timeout and schemaName are already documented with defaults and formats. The description adds no extra meaning about schemaName matching rules, header usage for auth, or the timeout's effect on the remote fetch, so the baseline of 3 applies.

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?

The description states a specific verb and scope: recursively parse a named Schema inside a Swagger/OpenAPI document and produce a complete JSON Schema structure. That distinguishes it from parseApiEndpoint (endpoint-oriented) and downloadSwaggerJson (fetch-only), though it does not explicitly name those siblings.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no mention of prerequisites such as needing the document URL or authentication headers. The only usage signal is implied by the verb 'parse', leaving the agent to infer why this tool should be chosen over downloadSwaggerJson or parseApiEndpoint.

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

Deploy Server

Other Tools