Skip to main content
Glama
orzcls

Gemini CLI MCP Server

by orzcls

timeout-test

Validate timeout prevention mechanisms by executing operations for a specified duration. Use this tool to ensure system stability and responsiveness during prolonged tasks.

Instructions

Test timeout prevention by running for a specified duration

Input Schema

NameRequiredDescriptionDefault
durationYesDuration in milliseconds (minimum 10ms)

Input Schema (JSON Schema)

{ "properties": { "duration": { "description": "Duration in milliseconds (minimum 10ms)", "minimum": 10, "type": "number" } }, "required": [ "duration" ], "type": "object" }

Implementation Reference

  • The handler function for the 'timeout-test' tool. It destructures the 'duration' from arguments, logs the call, and returns a Promise that resolves after the specified duration using setTimeout, confirming completion.
    case "timeout-test": const { duration } = args; console.error('[GMCPT] timeout-test tool called with duration: ' + duration + 'ms'); return new Promise((resolve) => { setTimeout(() => { resolve({ content: [{ type: "text", text: `Timeout test completed after ${duration}ms` }] }); }, Math.max(10, duration)); });
  • The schema definition for the 'timeout-test' tool, specifying the name, description, and inputSchema requiring a 'duration' number (minimum 10ms).
    { name: "timeout-test", description: "Test timeout prevention by running for a specified duration", inputSchema: { type: "object", properties: { duration: { type: "number", minimum: 10, description: "Duration in milliseconds (minimum 10ms)" } }, required: ["duration"] } }
  • Registers the ListToolsRequest handler which returns the array of tool definitions, including 'timeout-test'.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/orzcls/gemini-mcp-tool-windows-fixed'

If you have feedback or need assistance with the MCP directory API, please join our Discord server