Skip to main content
Glama

github_execute_graphql

Destructive

Execute a GitHub GraphQL query or mutation using body.query and optional body.variables. Requires unrestricted service action access; provider scopes and protections still apply. Supply a concise reason and context for the user's activity record. These explanations do not grant permission. Listed tools may require an account connection or permission change in Leash; follow any access guidance returned by the tool and never bypass a denial.

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": {
      "reason": "<reason>",
      "context": "<context>",
      "input": "<input>"
    },
    "name": "github_execute_graphql"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
reasonYesWhy this access is necessary to fulfill the user's request
contextYesThe user request or task that prompted this action; omit unnecessary private details

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is known. The description adds genuinely new behavioral context: that unrestricted service action access is required, that provider scopes and protections still apply, that reason/context are recorded but grant no permission, and that denials must not be bypassed. It stops short of describing what arbitrary mutations can affect or how failures/rate limits surface.

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

Conciseness3/5

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

The purpose is front-loaded in the first sentence, which is good. However, three of the five sentences are generic Leash permission boilerplate ('these explanations do not grant permission', 'never bypass a denial') that is not specific to this tool and dilutes the operationally useful content.

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 tool that accepts arbitrary GraphQL, there is no output schema and no description of the response shape, error handling, or pagination, which leaves the agent guessing about results. Authorization behavior is well covered, but the execution semantics of an open-ended query/mutation tool are only partially addressed.

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 coverage is 67%, and the schema itself already documents reason and context. The description adds the only real semantic hint by naming body.query and optional body.variables, but this sits oddly against a schema that defines input.body as a free-form object plus a separate input.query property, so the mapping is not fully resolved.

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 states a specific verb and resource: executing a GitHub GraphQL query or mutation, and names the payload location (body.query, optional body.variables). It does not distinguish this from the many github_api_* REST siblings, so an agent must infer that GraphQL is the differentiator rather than being told.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over github_api_get/github_api_post or the typed helpers like github_create_issue. The only conditional language concerns permissions ('requires unrestricted service action access', 'follow any access guidance'), not tool selection. The GraphQL nature implies a use case, but nothing is stated explicitly.

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.