inspect
Analyze the GraphQL server's schema and capabilities to understand available queries, mutations, and data structures for API interaction.
Instructions
Inspect this server
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| __ignore__ | No | This does not do anything |
Implementation Reference
- src/index.ts:65-75 (handler)The handler function for the 'inspect' tool that logs 'Inspecting server' and returns a text content block with 'This is a test'.
async () => { console.log("Inspecting server"); return { content: [ { type: "text", text: "This is a test", }, ], }; } - src/index.ts:59-64 (schema)Zod input schema for the 'inspect' tool, defining an optional ignored boolean parameter.
{ __ignore__: z .boolean() .default(false) .describe("This does not do anything"), }, - src/index.ts:56-76 (registration)Registration of the 'inspect' tool via server.tool(), specifying name, description, input schema, and handler function.
server.tool( "inspect", "Inspect this server", { __ignore__: z .boolean() .default(false) .describe("This does not do anything"), }, async () => { console.log("Inspecting server"); return { content: [ { type: "text", text: "This is a test", }, ], }; } );