Skip to main content
Glama

AWS Cost Explorer MCP Server

MIT License
121
  • Linux
  • Apple

get_ec2_spend_last_day

Retrieve daily EC2 spending data via AWS Cost Explorer API. Analyze and monitor cloud costs for a specific AWS account or region. Returns raw API response or error details.

Instructions

Retrieve EC2 spend for the last day using standard AWS Cost Explorer API. Returns: Dict[str, Any]: The raw response from the AWS Cost Explorer API, or None if an error occurs.

Input Schema

NameRequiredDescriptionDefault
paramsYes

Input Schema (JSON Schema)

{ "$defs": { "EC2Params": { "description": "Parameters for retrieving EC2 Cost Explorer information.", "properties": { "aws_account_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "AWS account id (if different from the current AWS account) of the account for which to get the cost data", "title": "Aws Account Id" }, "days": { "default": 1, "description": "Number of days to look back for Bedrock logs", "maximum": 90, "minimum": 1, "title": "Days", "type": "integer" }, "region": { "default": "us-east-1", "description": "AWS region to retrieve logs from", "title": "Region", "type": "string" } }, "title": "EC2Params", "type": "object" } }, "properties": { "params": { "$ref": "#/$defs/EC2Params" } }, "required": [ "params" ], "title": "get_ec2_spend_last_dayArguments", "type": "object" }
Install Server

Other Tools from AWS Cost Explorer MCP Server

Related Tools

    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/aarora79/aws-cost-explorer-mcp-server'

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