stat
Check the server status to verify connectivity and health.
Instructions
Check the status of the 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": "stat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:69-78 (handler)Handler function for the 'stat' tool – returns a status message 'running well' when called.
if (request.params.name === "stat") { return { content: [ { type: "text", text: "running well", }, ], }; } - src/index.ts:41-47 (schema)Input schema for the 'stat' tool – defines it with no required parameters.
{ name: "stat", description: "Check the status of the server", inputSchema: { type: "object", properties: {}, }, - src/index.ts:24-51 (registration)Registration of the 'stat' tool via ListToolsRequestSchema handler – included in the tool list with name, description, and input schema.
server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: [ { name: "hello-world", description: "A simple hello world tool", inputSchema: { type: "object", properties: { name: { type: "string", description: "The name to say hello to", }, }, required: ["name"], }, }, { name: "stat", description: "Check the status of the server", inputSchema: { type: "object", properties: {}, }, }, ], }; });