Skip to main content
Glama
doitintl

DoiT MCP Server

Official
by doitintl

compare_spend

Read-only

Compare cloud spend across two time periods using a rolling lookback and an explicit date range. Group results by service, project, or cloud.

Instructions

Use this when the user wants to compare spend between two time periods (e.g. 'Compare my costs this quarter vs last quarter', 'How did January compare to February?'). Period 1 is a rolling lookback; period 2 is an explicit date range. For more than two periods or advanced comparative analysis, use run_query instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
period1MonthsNoHow many months to look back for period 1 (default 3). Includes the current month.
period2YesThe comparison period as an explicit date range.
cloudNoFilter to a specific cloud provider. Accepts aliases like "aws", "gcp", "azure".
groupByNoDimension to group by (default "service").service
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description doesn't need to restate safety. The description adds that period1 includes the current month, which is useful behavioral context. No contradictions.

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

Conciseness5/5

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

Two sentences, front-loaded with purpose, no unnecessary words. Every sentence adds value. Efficient and clear.

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

Completeness5/5

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

Given the tool's moderate complexity (4 params, 1 required, no output schema) and comprehensive annotations, the description is fully adequate. It explains the two-period concept, provides usage guidance, and doesn't miss critical context.

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

Parameters3/5

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

Schema description coverage is 100%, so parameters are already documented. The description adds context about rolling lookback vs explicit range, which is a nuance beyond the schema. But it doesn't significantly impact parameter meaning.

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 tool's purpose: compare spend between two time periods, with examples. It also distinguishes it from run_query for multi-period analysis, making the purpose specific and unambiguous.

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

Usage Guidelines5/5

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

Explicitly tells when to use (two-period comparison) and when not to (more than two periods, use run_query). Also explains the difference between period1 (rolling lookback) and period2 (explicit range), providing clear context.

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/doitintl/doit-mcp-server'

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