Skip to main content
Glama

get_spend_summary

Get total spend and vendor breakdown across all accessible contracts

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_spend_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_byNovendor

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it discloses only one trait: the results are scoped to contracts the caller can access. It does not state the time window covered by the totals, the currency or units, whether results are cached or expensive to compute, or whether it is a pure read — all material for interpreting a spend figure.

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?

One sentence, front-loaded with the verb and the two things returned (total spend, vendor breakdown), with scope trailing. No filler, hedging, or redundant restatement of the tool name.

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

Completeness3/5

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

There is no output schema, so the description correctly covers the return contents at a high level, and it covers population scope. However, it omits the time dimension entirely, which is the single most important qualifier for a spend total, and it says nothing about how the aggregate behaves when the caller sees no contracts.

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 coverage is 0%, so the description must compensate for the single group_by parameter. 'Vendor breakdown' does map loosely onto group_by=vendor, but since vendor is the only enum value the parameter is effectively fixed, and the description never mentions the parameter name, default, or whether other groupings could exist.

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 names a specific verb and resource ('Get total spend and vendor breakdown') plus a scope ('across all accessible contracts'), so the agent knows it is an aggregate spend report rather than a per-contract or history listing. It does not explicitly contrast with the closest sibling, get_vendor_spend_history, so differentiation is inferential rather than stated.

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 only implied: 'across all accessible contracts' signals this is the portfolio-wide rollup rather than a per-vendor history or detail lookup. There is no explicit when-to-use statement, no statement of when not to use it, and no named alternative such as get_vendor_spend_history or get_contract_details.

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