Skip to main content
Glama
code-alchemist01

MCP Cloud Services Server

get_resource_health

Check the health status of cloud resources across AWS, Azure, and GCP to monitor instances, storage, databases, and functions for operational issues.

Instructions

Get health status of a cloud resource

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYesCloud provider
resourceIdYesResource ID
resourceTypeYesResource type

Implementation Reference

  • The handler logic for the 'get_resource_health' tool within the handleMonitoringTool function. It extracts provider, resourceId, and resourceType parameters and returns a placeholder object indicating the health status is unknown as the full implementation is pending.
    case 'get_resource_health': { const resourceId = params.resourceId as string; const resourceType = params.resourceType as string; return { provider, resourceId, resourceType, health: 'unknown', message: 'Resource health check not yet fully implemented', }; }
  • Input schema for the 'get_resource_health' tool, defining required parameters: provider (aws/azure/gcp), resourceId, and resourceType (instance/storage/database/function).
    inputSchema: { type: 'object', properties: { provider: { type: 'string', enum: ['aws', 'azure', 'gcp'], description: 'Cloud provider', }, resourceId: { type: 'string', description: 'Resource ID', }, resourceType: { type: 'string', enum: ['instance', 'storage', 'database', 'function'], description: 'Resource type', }, }, required: ['provider', 'resourceId', 'resourceType'], },
  • Registration of the 'get_resource_health' tool as part of the exported monitoringTools array, including name, description, and input schema.
    { name: 'get_resource_health', description: 'Get health status of a cloud resource', inputSchema: { type: 'object', properties: { provider: { type: 'string', enum: ['aws', 'azure', 'gcp'], description: 'Cloud provider', }, resourceId: { type: 'string', description: 'Resource ID', }, resourceType: { type: 'string', enum: ['instance', 'storage', 'database', 'function'], description: 'Resource type', }, }, required: ['provider', 'resourceId', 'resourceType'], }, }, ];
  • src/server.ts:74-75 (registration)
    Main server dispatch logic that checks if the tool name matches any in monitoringTools and routes the call to handleMonitoringTool, which implements get_resource_health.
    } else if (monitoringTools.some((t) => t.name === name)) { result = await handleMonitoringTool(name, args || {});

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/code-alchemist01/Cloud-mcp_server'

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