get_resource
Retrieve detailed information about cloud resources across AWS, Azure, and GCP by specifying provider, resource ID, and type.
Instructions
Get detailed information about a specific resource
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | Cloud provider | |
| resourceId | Yes | Resource ID | |
| resourceType | Yes | Resource type |
Implementation Reference
- src/tools/resource-management.ts:235-244 (handler)Handler implementation for the 'get_resource' tool. Extracts resourceId from parameters and returns a placeholder detailed resource information object.case 'get_resource': { const resourceId = params.resourceId as string; // Implementation would fetch detailed resource info return { id: resourceId, provider, message: 'Detailed resource information retrieval not yet fully implemented', }; }
- Input schema definition for the 'get_resource' tool, specifying required parameters: provider, resourceId, and resourceType.{ name: 'get_resource', description: 'Get detailed information about a specific 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:19-27 (registration)Registration of resourceManagementTools (including 'get_resource') into the central allTools array, which is served via ListToolsRequest.const allTools = [ ...awsTools, ...azureTools, ...gcpTools, ...resourceManagementTools, ...costAnalysisTools, ...monitoringTools, ...securityTools, ];
- src/server.ts:70-71 (registration)Dispatch/registration logic in MCP server that routes calls to 'get_resource' (and other resourceManagementTools) to the handleResourceManagementTool function.} else if (resourceManagementTools.some((t) => t.name === name)) { result = await handleResourceManagementTool(name, args || {});