Skip to main content
Glama

list_cloudfront_distributions

Retrieve CloudFront distribution details including domain names and status to monitor content delivery network configurations.

Instructions

Lists CloudFront distributions with their domain names and status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that lists CloudFront distributions using ListDistributionsCommand on the CloudFrontClient and formats the response.
    if (name === "list_cloudfront_distributions") { const command = new ListDistributionsCommand({}); const response = await cloudFrontClient.send(command); const dists = response.DistributionList?.Items?.map(d => ({ Id: d.Id, DomainName: d.DomainName, Status: d.Status, Enabled: d.Enabled, Aliases: d.Aliases?.Items })) || []; return { content: [{ type: "text", text: JSON.stringify(dists, null, 2) }] }; }
  • src/index.ts:753-757 (registration)
    Registration of the "list_cloudfront_distributions" tool in the ListToolsRequestSchema handler, including its description and input schema.
    name: "list_cloudfront_distributions", description: "Lists CloudFront distributions with their domain names and status.", inputSchema: { "type": "object", "properties": {} } }, {
  • Input schema definition for the tool (empty object, no parameters).
    },
  • Import of the CloudFront SDK client and command used by the tool handler.
    import { CloudFrontClient, ListDistributionsCommand } from "@aws-sdk/client-cloudfront";
  • Initialization of the CloudFrontClient instance used in the tool handler.
    const cloudFrontClient = new CloudFrontClient({});

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