name: code-mode description: Generate validated GraphQL queries against this server's schema
Code Mode
This server exposes validate_code and execute_code tools for running
LLM-generated GraphQL queries with cryptographically signed approval tokens.
Before you generate a query
- Read
skill://code-mode/references/schema.graphqlfor available types. - Read
skill://code-mode/references/examples.mdfor canonical patterns. - Read
skill://code-mode/references/policies.mdfor what's allowed.
Round-trip
- Generate a GraphQL query that satisfies the user's request.
- Call
validate_code(code: "<your query>"). You'll get back anapproval_tokenplus a human-readable explanation. Show the explanation to the user. - After user approval, call
execute_code(code, token). Any modification tocodebetween validate and execute invalidates the token.
When NOT to use code mode
For simple lookups that match a curated tool (e.g. get_user_by_id),
prefer that tool. Code mode is for the long tail of compositions that
don't have dedicated tools.