Skip to main content
Glama
mcp-aws-finops

mcp-aws-finops

by thomm-011

get_cost_summary

Summarize total AWS cost for a date range and break it down by service, account, region, or cost allocation tag, returning each group's spend and its share of the total.

Instructions

Summarize AWS cost for a date range, grouped by a dimension.

    Args:
        start: ISO date (inclusive), e.g. "2025-07-01".
        end: ISO date (exclusive), e.g. "2025-08-01".
        group_by: One of "service", "account", "region", or "tag:<key>"
            (e.g. "tag:team") to break the total down by a cost
            allocation tag.

    Returns the total cost for the period and the cost per group,
    sorted descending, each with its share of the total.
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "get_cost_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
group_byNoservice

Output Schema

NameRequiredDescriptionDefault
endYes
startYes
groupsYes
currencyYes
group_byYes
total_costYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the return shape (total plus per-group cost sorted descending with share of total), which is real behavioral context. It says nothing about permissions needed for cross-account data, whether cost allocation tags must be activated for 'tag:<key>' to work, or data latency, leaving notable operational gaps for a no-annotation tool.

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?

Front-loaded purpose sentence followed by a compact Args block and a returns sentence – every line carries information. The docstring-style indentation is slightly bulky but not wasteful; the exclusive/inclusive date note in particular earns its space.

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?

Since an output schema exists, the return description is a bonus rather than a requirement, and the parameters are fully covered. The remaining gap is prerequisites: nothing states that tag keys must be activated as cost allocation tags or what account scope is assumed, which an agent may need to know before calling.

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 no enums in the schema, the description is the only source of parameter meaning, and it delivers fully: start is inclusive with an ISO example, end is explicitly exclusive with an example, and group_by's allowed values plus the 'tag:<key>' syntax and its purpose are spelled out. This is exactly the compensation needed when the schema is bare.

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

Purpose4/5

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

The description opens with a specific verb and resource ('Summarize AWS cost for a date range, grouped by a dimension'), making the operation immediately legible. It does not, however, distinguish itself from siblings such as cost_by_tag or compare_periods, even though its 'tag:<key>' grouping overlaps directly with cost_by_tag.

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?

Usage is implied by the parameter semantics: an agent can infer this is the tool for a single-period cost breakdown. There is no explicit when-to-use/when-not, and no mention of when to prefer cost_by_tag or compare_periods over passing group_by='tag:...' or calling this tool with shifted date ranges.

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