Skip to main content
Glama
nexus-mcp
by mbj733

Run GraphQL query

run_graphql

Runs read-only GraphQL queries against the Nexus Mods v2 API to retrieve data and discover schema fields beyond other tools; mutations are rejected.

Instructions

Escape hatch: run an arbitrary read-only GraphQL query against the Nexus Mods v2 API (api.nexusmods.com/v2/graphql). Mutations are rejected. Use introspection (__schema/__type) to discover fields not covered by the other tools. Keep selections small — responses are returned verbatim. Filter semantics: multiple values for one filter field AND together; for OR, nest sub-filters under { op: OR, filter: [...] } with each branch carrying all required fields (e.g. gameId alongside modId).

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": "run_graphql"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesGraphQL query document (no mutations)
variablesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the read-only constraint, that mutations are rejected, that responses are returned verbatim (no shaping/trimming), and it warns to keep selections small. It omits auth requirements, rate limits, pagination, and error behavior, which keeps it below 5.

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?

Front-loaded with the purpose and constraint before the operational detail, and each sentence contributes something (endpoint, mutation rejection, introspection, size warning, filter semantics). The filter-semantics sentence is dense and slightly run-on, costing a point on clarity.

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

Completeness4/5

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

For a flexible GraphQL escape hatch with no output schema, the description supplies what an agent most needs: read-only guarantee, verbatim responses, size caution, and query-construction rules. Missing auth/pagination/error guidance prevents a 5.

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 50% — query is documented but the variables object is undocumented in both schema and description. The filter semantics paragraph (AND for multiple values, nested { op: OR, filter: [...] } with all required fields per branch) adds real meaning about how to construct the query string, but the description never explains the variables parameter's role.

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 precise verb and resource ("run an arbitrary read-only GraphQL query against the Nexus Mods v2 API") plus the endpoint URL, and frames itself as an "escape hatch" for fields not covered by the other tools, which cleanly separates it from siblings like search_mods or get_mod.

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

Usage Guidelines4/5

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

Gives a clear condition for use (introspection to reach fields the other tools don't expose) and an explicit exclusion (mutations are rejected). It does not say when to prefer a dedicated sibling tool over this one, but the "escape hatch" framing implies last-resort usage.

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