Skip to main content
Glama

get_api_schema

Retrieve a specific schema definition from an API specification by providing the spec ID and schema name.

Instructions

Get schema definition from API spec

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spec_idYesAPI spec identifier
schema_nameYesSchema name
Behavior3/5

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

No annotations are provided, so the description carries the burden. The verb 'Get' implies a read-only operation with no side effects, but it does not explicitly state this, nor does it mention any prerequisites or error conditions. For a simple retrieval, this is minimal but acceptable.

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

Conciseness5/5

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

The description is a single, direct sentence with no filler words. It is appropriately sized for the tool's complexity.

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?

The tool is simple with two clear parameters and no output schema. The description 'Get schema definition from API spec' adequately conveys the tool's purpose and return value, though it could benefit from noting the format of the schema definition or providing a usage example. Given the low complexity, this is sufficient.

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?

Both parameters have descriptions in the schema (spec_id as 'API spec identifier', schema_name as 'Schema name'), covering 100% of parameters. The description does not add any additional parameter semantics beyond what the schema provides, so it meets the baseline.

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

Purpose5/5

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

The description uses the specific verb 'Get' and clearly identifies the resource as 'schema definition from API spec'. It distinguishes from sibling tools like get_api_spec and get_api_endpoints by focusing specifically on schema definitions within an API spec.

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?

There is no explicit guidance on when to use this tool versus alternatives, nor any exclusions. The usage is implied by the name and description: use it when you need a schema definition, while other tools cover API specs and endpoints.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lovellfelix/session-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server