Skip to main content
Glama

get_infrastructure_status

Retrieve a comprehensive overview of infrastructure status to monitor deployments, track state, and check health across Fly.io and Cloudflare Workers.

Instructions

Get comprehensive overview of entire infrastructure. Safe read-only operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_historyNoInclude recent operation history (default: true)
include_locksNoInclude active locks (default: true)

Implementation Reference

  • Handler case for 'get_infrastructure_status' tool. Parses arguments and invokes executeOrchestrator with operation 'status/infrastructure' and boolean parameters converted to strings.
    case "get_infrastructure_status": { const { include_history, include_locks } = args as { include_history?: boolean; include_locks?: boolean; }; const params: Record<string, string> = { include_history: String(include_history !== false), include_locks: String(include_locks !== false) }; result = executeOrchestrator("status/infrastructure", params); break; }
  • Tool definition including name, description, and input schema for 'get_infrastructure_status'.
    { name: "get_infrastructure_status", description: "Get comprehensive overview of entire infrastructure. Safe read-only operation.", inputSchema: { type: "object", properties: { include_history: { type: "boolean", description: "Include recent operation history (default: true)" }, include_locks: { type: "boolean", description: "Include active locks (default: true)" } } } }
  • Shared helper function executeOrchestrator that runs Python orchestrator.py script, used by the get_infrastructure_status handler and other tools.
    function executeOrchestrator(operation: string, params: Record<string, string> = {}): any { const paramStr = Object.entries(params) .map(([key, value]) => `${key}="${value}"`) .join(" "); const cmd = `cd ${ORCHESTRATOR_PATH} && python orchestrator.py ${operation} ${paramStr}`; try { const output = execSync(cmd, { encoding: "utf-8", maxBuffer: 10 * 1024 * 1024 }); // Try to parse as JSON, fallback to plain text try { return JSON.parse(output); } catch { return { output: output.trim() }; } } catch (error: any) { return { success: false, error: error.message, stderr: error.stderr?.toString() || "", stdout: error.stdout?.toString() || "" }; } }
  • src/index.ts:182-184 (registration)
    Registration of listTools handler that exposes the tools array, including get_infrastructure_status, to MCP clients.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { 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/itsablabla/lastrock-mcp'

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