Skip to main content
Glama
friendlygeorge

GraphQL MCP Server

get_cached_schema

Read-onlyIdempotent

Retrieve the full cached GraphQL schema introspection result as JSON. Use it for offline schema analysis or building queries without repeated network calls.

Instructions

Return the cached introspection result for the current endpoint as JSON. Use this when you need the full schema in one shot (e.g. to build a query offline). For large schemas this can be 1MB+ — use describe_type / list_queries / search_schema for targeted access. The max_depth parameter caps type traversal to keep output size bounded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_system_typesNoInclude __Schema, __Type, etc. Default: false.
max_depthNoMax depth of type traversal in the response (default: 3). Higher values produce very large output.
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint true. Description adds useful context: result is cached, can be 1MB+, and max_depth caps traversal. No contradiction with annotations.

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?

Two sentences with no fluff. Front-loaded with purpose, then immediately provides usage guidance and important size warning. Efficient and clear.

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

Completeness5/5

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

Given the read-only, idempotent nature and full parameter documentation, the description is complete. It covers when to use, size concerns, and parameter implications. No output schema needed as result is self-explanatory.

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 baseline is 3. Description mentions max_depth caps traversal, which reinforces the schema but does not add new meaning beyond what the schema already provides for parameters.

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?

Clearly states the tool returns the cached introspection result as JSON, with a specific verb ('Return') and resource ('cached introspection result'). Explicitly distinguishes from siblings like describe_type, list_queries, and search_schema for targeted access.

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

Usage Guidelines5/5

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

Provides explicit guidance on when to use (for full schema in one shot) and when not to (for large schemas, use alternative tools). Names alternatives and advises using max_depth to bound output.

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/friendlygeorge/graphql-mcp-server'

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