Skip to main content
Glama

Get Expiring Commitments

get_expiring_commitments
Read-only

Return only the cloud commitments (AWS RIs/Savings Plans, Azure Reservations/Savings Plans, GCP CUDs) matching a lifecycle status — defaults to "expiring_soon" (those nearing expiry that need renewal action). Reads the same commitments payload as list_commitments and filters by status client-side; also accepts "expired", "active", or "unknown". The rollup summary (count expiring within 60 days, already expired, total dollars saved) is included for context. Scope with provider ("aws" | "azure" | "gcp"; OMIT = all cloud providers combined, AWS + Azure + GCP — the backend default) or with integration_id (scoping follows that integration's provider server-side). Read-only. Example: { "status": "expiring_soon", "provider": "gcp" } surfaces the CUDs to renew before they lapse.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_expiring_commitments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows to return in the list section (default: no cap beyond the truncation guard).
statusNoCommitment status to filter to (CLIENT-SIDE, from the same commitments payload). "expiring_soon" (default) = nearing expiry, "expired" = lapsed within the last 90 days with NO detected renewal (renewed/repurchased and older lapses are dropped server-side), "active" = healthy, "unknown" = unclassified.expiring_soon
providerNoCloud provider scope for the commitments data: "aws" (Reserved Instances & Savings Plans), "azure" (Reservations & Savings Plans), or "gcp" (Committed Use Discounts). OMIT = ALL cloud providers combined (AWS + Azure + GCP — the backend default for commitments). Commitments are cloud-only — Snowflake/Anthropic/OpenAI have none. Pass one provider per call to narrow the scope.
integration_idNoScope to one or more provider connections (integration id). Omit for all connections.
response_formatNoconcise = key fields only (default, lower token cost); detailed = the full parsed payload.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the significant behavioral detail that filtering happens client-side against the same payload, that integration_id scoping is resolved server-side, and that the rollup summary covers counts expiring within 60 days, already expired, and total dollars saved. It also discloses the semantics of each status value, so the agent knows what data will and will not appear.

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?

Purpose and default status are front-loaded, and every section is substantive. It is a single dense paragraph with heavy em-dash and parenthetical nesting, and the provider OMIT semantics are repeated nearly verbatim from the schema, costing some tightness.

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?

For a 5-parameter, no-required-params read tool with no output schema, the description covers defaults, accepted values, scoping behavior, and what the response includes (list plus rollup summary). An agent has everything needed to call it correctly on the first attempt.

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 100%, so the baseline is 3; the description still adds value by clarifying that omitting provider means all three clouds combined (the backend default) and that integration_id changes scoping to that integration's provider server-side. The worked example with status+provider reinforces parameter interaction, though it largely restates schema text.

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?

Names a specific verb and resource ('Return only the cloud commitments (AWS RIs/Savings Plans, Azure Reservations/Savings Plans, GCP CUDs)') and states the filtering dimension (lifecycle status). It explicitly distinguishes itself from the sibling list_commitments by explaining it reads the same payload and filters client-side.

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?

Gives explicit when-to-use context: default 'expiring_soon' for renewals, plus 'expired'/'active'/'unknown' alternatives, and names list_commitments as the unfiltered alternative. It also states scoping rules (provider OMIT = all clouds; integration_id scopes server-side to that integration's provider) and closes with a concrete call example.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources