Skip to main content
Glama

list_trusted_advisor_checks

Retrieve available AWS Trusted Advisor checks to identify cost optimization, security, and performance improvement opportunities in your cloud environment.

Instructions

Lists Trusted Advisor checks available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that implements the list_trusted_advisor_checks tool by calling AWS Support API's DescribeTrustedAdvisorChecksCommand and formatting the response.
    if (name === "list_trusted_advisor_checks") { try { const command = new DescribeTrustedAdvisorChecksCommand({ language: "en" }); const response = await supportClient.send(command); const checks = response.checks?.map(c => ({ id: c.id, name: c.name, category: c.category })) || []; return { content: [{ type: "text", text: JSON.stringify(checks, null, 2) }] }; } catch (error) { // Return clear error if Support API is not available (e.g. Basic Support plan) return { content: [{ type: "text", text: JSON.stringify({ error: "Trusted Advisor check failed. Ensure you have Business/Enterprise support or access.", details: (error as Error).message }) }] }; } }
  • src/index.ts:777-781 (registration)
    Tool registration in the ListToolsRequestSchema handler, including name, description, and input schema.
    { name: "list_trusted_advisor_checks", description: "Lists Trusted Advisor checks available.", inputSchema: { "type": "object", "properties": {} } }
  • Input schema definition for the tool (empty object, no parameters required).
    inputSchema: { "type": "object", "properties": {} }
  • Import of AWS SDK SupportClient and DescribeTrustedAdvisorChecksCommand used by the tool.
    import { SupportClient, DescribeTrustedAdvisorChecksCommand } from "@aws-sdk/client-support";
  • Initialization of the SupportClient instance used in the tool handler.
    const supportClient = new SupportClient({ region: "us-east-1" }); // AWS Support API is global (us-east-1)

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/Bhavesh8890/MCP-server'

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