Skip to main content
Glama
mcp-aws-finops

mcp-aws-finops

by thomm-011

compare_periods

Compare total AWS costs between two date ranges and rank services by absolute cost change to show what increased or decreased since a prior period.

Instructions

Compare total AWS cost between two date ranges and rank what changed.

    Args:
        a_start/a_end: ISO dates for the baseline period (e.g. last month).
        b_start/b_end: ISO dates for the comparison period (e.g. this month).

    Returns the totals for both periods, the delta, and the services
    with the largest absolute cost change (increase or decrease),
    largest first — useful to answer "what went up since last month?".
    

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": {
      "a_start": "<a_start>",
      "a_end": "<a_end>",
      "b_start": "<b_start>",
      "b_end": "<b_end>"
    },
    "name": "compare_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
a_endYes
b_endYes
a_startYes
b_startYes

Output Schema

NameRequiredDescriptionDefault
a_endYes
b_endYes
deltaYes
a_startYes
b_startYes
total_aYes
total_bYes
currencyYes
delta_pctYes
top_driversYesServices ranked by absolute change, largest first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose that results are ranked by absolute cost change, largest first, which is genuinely useful. However, it never states that this is a read-only operation, says nothing about data freshness, permissions, or limits, and much of the return description overlaps with the existing output schema.

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 purpose sentence is front-loaded and the Args/Returns structure is easy to scan with no filler. The Returns paragraph is somewhat redundant given an output schema exists, so it is not maximally tight.

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?

For a four-required-parameter comparison tool with an output schema, the definition covers intent, period semantics, and result ordering adequately. The main omission is the read-only/safety profile, which matters because no annotations are supplied.

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

Parameters4/5

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

Schema description coverage is 0% and parameter titles ("A Start", "B End") are meaningless on their own, but the Args block compensates well: it assigns a/b to baseline vs comparison periods and specifies ISO dates with illustrative examples. It leaves minor ambiguity (timezone, whether endpoints are inclusive) that prevents a 5.

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 opening sentence gives a specific verb (compare) plus resource (total AWS cost) plus scope (two date ranges) and an extra action (rank what changed). This is clearly distinct from siblings like get_cost_summary or top_cost_drivers, which do not take two periods.

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

Usage Guidelines4/5

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

It supplies concrete usage context by mapping the parameters to a real question ("what went up since last month?") and gives example period meanings (baseline = last month, comparison = this month). It stops short of naming when to prefer a sibling tool or any exclusion conditions, so it is clear but not fully routing.

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