Skip to main content
Glama
prashantgupta123

AWS FinOps MCP Server

get_cost_by_region_and_service

Analyze AWS costs by region and service for a specified time period to identify spending patterns and optimize cloud expenses.

Instructions

Get cost breakdown by AWS region and service for the specified period.

Args:
    start_date: Start date in YYYY-MM-DD format (default: first day of last month)
    end_date: End date in YYYY-MM-DD format (default: first day of current month)
    profile_name: AWS profile name (optional)
    role_arn: IAM role ARN to assume (optional)
    access_key: AWS access key ID (optional)
    secret_access_key: AWS secret access key (optional)
    session_token: AWS session token for temporary credentials (optional)

Returns:
    Dictionary with cost breakdown by region and service

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_dateNo
end_dateNo
profile_nameNo
role_arnNo
access_keyNo
secret_access_keyNo
session_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden and does well by specifying it returns a 'Dictionary with cost breakdown by region and service', clarifying the output structure. It also documents default values for date parameters. However, it doesn't mention potential rate limits, authentication requirements beyond optional parameters, or error conditions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear purpose statement followed by organized parameter documentation. Every sentence serves a purpose, though the parameter explanations could be slightly more concise. The front-loaded purpose statement immediately communicates the tool's function.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters with no schema descriptions and an output schema present, the description provides excellent parameter documentation and clarifies the return value format. It covers authentication options and date defaults well. Minor gaps include lack of error handling information and no mention of data freshness or source limitations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and 7 parameters, the description fully compensates by providing clear semantics for all parameters: it explains each parameter's purpose, format requirements (e.g., 'YYYY-MM-DD format'), default values, and optional status. This adds substantial value beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get cost breakdown'), resource ('AWS region and service'), and scope ('for the specified period'). It distinguishes itself from sibling tools like 'get_cost_by_region' and 'get_cost_by_service' by explicitly combining both dimensions in a single breakdown.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for cost analysis by region and service but provides no explicit guidance on when to use this tool versus alternatives like 'get_cost_by_region' or 'get_cost_by_service'. It mentions the period parameter but doesn't clarify trade-offs or prerequisites for AWS credential options.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/prashantgupta123/aws-pillar-mcp-server'

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