Skip to main content
Glama

graphql_introspect

Run a GraphQL introspection query against an endpoint to retrieve its schema, including all types, fields, queries, and mutations for API inspection.

Instructions

Run a GraphQL introspection query against an endpoint and return the schema — all types, fields, queries, and mutations.

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>"
    },
    "name": "graphql_introspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesGraphQL endpoint URL
headersNo
confirmedNoSet to true to confirm sending to an external URL after reviewing it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden: it does disclose that the tool makes a network call against an endpoint and what the response contains. It omits important traits such as authentication via headers, the external-URL confirmation gate, failure modes (introspection disabled, invalid endpoint), and whether the call is read-only.

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?

A single front-loaded sentence with the action first and the returned shape second; there is no filler. It is efficient, though it is bare enough that a little more structure would have helped rather than hurt.

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 three-parameter tool with a nested headers object and no output schema, the description does describe the return payload, which is its strongest contribution. It leaves gaps around header/auth usage and the confirmation requirement, which are necessary for calling it correctly against an external endpoint.

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 67%: 'url' and 'confirmed' are documented in the schema, but the nested 'headers' object has no description. The description adds no parameter-level meaning beyond the schema, which is adequate at this coverage level but not additive.

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 gives a specific verb-resource pair ('Run a GraphQL introspection query') and enumerates the returned content ('all types, fields, queries, and mutations'), which makes it distinguishable from graphql_query and graphql_format. It stops short of explicitly naming those siblings as alternatives, so it is clear but not fully differentiated.

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?

Usage is only implied by the verb 'introspect' — an agent can infer this is the tool for fetching a schema rather than executing operations. There is no explicit statement of when to prefer it over graphql_query, no mention of server-side introspection being disabled, and no note about the required URL-confirmation step, though the schema partially covers the latter.

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