Skip to main content
Glama

Get graphql schema

get-graphql-schema
Read-onlyIdempotent

Return the GraphQL schema for the extensions endpoint, in the size you need.

WHEN TO USE:

  • Before query-graphql, to discover fields, arguments and types

  • When a query fails on an unknown field — the schema is per-deployment and depends on which extensions (roboledger, roboinvestor) are enabled

PARAMETERS:

  • format: index (default) lists every Query root field with its arguments and return type, one per line — start here. sdl is the whole schema as Schema Definition Language, and is large: ask for it only when the index and types are not enough. introspection is the full JSON introspection result, for tooling that consumes the standard format.

  • types: names of types to read in full, with their fields and descriptions, e.g. ['TrialBalance', 'TrialBalanceRow']. Takes the return types the index names. format is ignored with it.

RETURNS: schema, the text asked for. With types, unknown_types names any that the schema does not have.

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": "get-graphql-schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesNoType names to return in full, as SDL.
formatNoWhat to return. Defaults to 'index'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, so the safety profile is covered. The description adds real context beyond that: the schema is per-deployment and depends on which extensions (roboledger, roboinvestor) are enabled, and sdl is flagged as large. It stops short of stating anything about auth requirements or caching, hence 4 rather than 5.

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?

Front-loaded with the purpose, then organized under WHEN TO USE, PARAMETERS and RETURNS headers so an agent can scan to the relevant part. Every paragraph carries distinct information — no restatement of the name, no filler.

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?

No output schema is declared, but the RETURNS section covers the shape of the response (schema text, plus unknown_types when types is used), which is the key detail an agent needs for error handling. Combined with per-deployment variability and format guidance, nothing needed to call this tool correctly is missing.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description goes well beyond: it explains what each format value actually yields (index = one Query root field per line with arguments and return type; sdl = whole schema in SDL; introspection = JSON introspection result), gives a concrete types example, and states that format is ignored when types is supplied. That is meaning the enum values alone do not convey.

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?

States a specific verb and resource ("Return the GraphQL schema for the extensions endpoint") and immediately distinguishes itself from query-graphql by positioning itself as the schema-discovery step. An agent can tell this apart from get-graph-schema or query-graphql without opening any schema.

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?

The WHEN TO USE block gives two concrete triggers: before query-graphql, and after a query fails on an unknown field. Parameter-level routing is also explicit — "start here" for index, and sdl "only when the index and types are not enough" — which is genuine when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.