Skip to main content
Glama

get_infrastructure_status

Check infrastructure health and status for MCP servers on Fly.io and Cloudflare Workers. View current state, active locks, and operation history to monitor deployments and track changes.

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 implementation for the get_infrastructure_status tool. Parses input arguments and invokes the orchestrator script with the 'status/infrastructure' operation.
    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. Used for tool listing and validation.
    { 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 utility function executeOrchestrator that runs python orchestrator.py for infrastructure operations, used by get_infrastructure_status handler.
    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() || "" }; }

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