Skip to main content
Glama

Query graphql

query-graphql
Read-onlyIdempotent

Execute a read-only GraphQL query against the extensions endpoint.

WHEN TO USE:

  • For typed reads of extensions data (roboledger, roboinvestor)

  • After get-graphql-schema, which lists the fields to query and returns any type in full

PARAMETERS:

  • query: the GraphQL query string. Mutations and subscriptions are rejected.

  • graph_id is set from context — never pass it as a query argument. The schema already reflects the graph_id from the URL.

RETURNS: The query result, shaped by the fields requested.

NOTES: A minimal query looks like { fiscalCalendar { closedThrough closeTarget } }.

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": {
      "query": "<query>"
    },
    "name": "query-graphql"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesGraphQL query string to execute.
variablesNoOptional variable values for the query.
operationNameNoOptional operation name for multi-operation documents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: mutations/subscriptions are rejected at execution, and graph_id is injected from context and must never be passed as a query argument — a non-obvious constraint that would otherwise cause failed calls. Return format is only loosely characterized ('shaped by the fields requested'), which keeps it short of a 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?

Sectioned as WHEN TO USE / PARAMETERS / RETURNS / NOTES with the core action front-loaded in the first sentence. The minimal query example is compact and functional rather than filler; no sentence restates the tool name or title.

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?

For a three-parameter, no-output-schema tool, the definition covers the action, the sequencing prerequisite, the mutation/rejection boundary, the hidden graph_id behavior, and the rough return shape. Nothing an agent needs in order to construct a correct call is missing.

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 coverage is 100%, so the baseline is 3, but the description adds semantic constraints the schema cannot express: the query string must be a query (not mutation or subscription), and graph_id must not appear as a query argument because the schema already reflects it from the URL. The variables and operationName parameters are left to the schema but are adequately described there.

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 opening sentence states a specific verb and resource ('Execute a read-only GraphQL query against the extensions endpoint') and immediately scopes it as read-only. The WHEN TO USE bullets name the data domains (roboledger, roboinvestor) and the sibling it follows (get-graphql-schema), so an agent can distinguish it from schema introspection without opening either definition.

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?

Explicit WHEN TO USE section names the precondition ('After get-graphql-schema, which lists the fields to query') and the read-only boundary is stated twice ('Mutations and subscriptions are rejected'). This gives both the sequencing and the exclusion, which is what an agent needs to choose correctly.

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.