Skip to main content
Glama

Read the schema of a tool's body or reply

schema_get
Read-onlyIdempotent

Retrieves the definition of a tool's request body parameter or reply, helping you understand expected inputs and outputs before calling it.

Instructions

Read one definition: of a body its tool lists as a free-form object, or of a reply.

A body: give service and name; such a parameter says in its description which definition to start from. A reply, to know what a tool answers before calling it: give tool, then tool and name for a part. The answer refers to others as #/$defs/<name>: read those with this tool too, only the ones the task needs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "schema_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe definition to read: for a body, as the tool's parameter names it; for a reply, a part of it (left out: the reply itself).
toolNoFor a reply: the tool whose answer to read, e.g. `forms_surveys_get`.
serviceNoFor a body: the service of the tool, e.g. `forms`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.142.2
    • addedInput schema / properties / name / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / name / default
      Added value: +null
    • changedInput schema / properties / name / description
      Previous value: -"The definition to read, as the tool's parameter names it."New value: +"The definition to read: for a body, as the tool's parameter names it; for a reply, a part of it (left out: the reply itself)."
    • removedInput schema / properties / name / type
      Removed value: -"string"
    • addedInput schema / properties / service / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / service / default
      Added value: +null
    • changedInput schema / properties / service / description
      Previous value: -"The service of the tool, e.g. `forms`."New value: +"For a body: the service of the tool, e.g. `forms`."
    • removedInput schema / properties / service / type
      Removed value: -"string"
    • addedInput schema / properties / tool
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "For a reply: the tool whose answer to read, e.g. `forms_surveys_get`."
      +}
    • removedInput schema / required
      Removed value: -[
      -  "service",
      -  "name"
      -]
  2. Addedv0.122.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so the safety profile adds little. The description does contribute one genuinely useful behavioral fact: definitions reference each other via `#/$defs/<name>`, so the return value is a graph the agent must traverse with this same tool. Beyond that it says nothing about what a missing or malformed service/name yields, or how deep traversal can go.

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

Conciseness3/5

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

It is short and front-loaded with the core idea, and every sentence carries information. However, the phrasing is fragmented ('Read one definition: of a body its tool lists as a free-form object, or of a reply') and the body-mode and reply-mode instructions are interleaved rather than cleanly separated, which costs readability for an English-language agent.

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

Completeness4/5

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

Three optional parameters, no output schema, and full schema coverage — the description covers the modes, the parameter combinations, and the reference-traversal follow-up step, which is what an agent needs to actually use it. It falls slightly short on edge cases such as supplying conflicting or incomplete parameter sets.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline would be 3, but the description adds real value by explaining how the parameters combine across two modes: service+name for a body, tool alone (or tool+name) for a reply. That combination logic is not expressed anywhere in the individual property descriptions. It still leaves the both-set / both-unset cases unaddressed.

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 names a specific verb and resource — reading one schema definition — and splits it into the two things that can be read: a free-form body parameter's definition or a reply's definition. It is clearly a meta/introspection tool rather than a data getter like the sibling *_get tools. The opening clause ('Read one definition: of a body its tool lists as a free-form object, or of a reply') is grammatically strained enough that the purpose takes a second reading to land.

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

Usage Guidelines4/5

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

It gives concrete when-to-use context for each mode: bodies are read when a parameter's own description points at which definition to start from, and replies are read 'to know what a tool answers before calling it'. It also sets a scoping rule — follow #/$defs/<name> references 'only the ones the task needs' — which implicitly warns against exhaustive traversal. No explicit exclusion or named alternative is given, so it stops short of a 5.

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