Skip to main content
Glama

Spend summary

get_spend_summary
Read-only

Total AI API spend, projected monthly spend, savings available, fixes done and verified savings, plus the teams, providers and models available as filters.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds value by disclosing the response content (including the filter values it returns), which is meaningful given there is no output schema, but it says nothing about freshness, aggregation window, or pagination.

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?

A single front-loaded sentence with no filler; each listed item describes a distinct returned value. The dense comma-list is slightly harder to scan than separate clauses, but nothing is redundant.

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?

With no output schema and no annotations covering returns, the description must carry the response shape, and it does list the main fields. It still leaves open the time range covered, currency/aggregation behavior, and whether the returned filter lists are metadata or inputs, which matters for a summary tool whose siblings also deal in spend.

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?

The tool takes zero input parameters, so there is no parameter semantics to document and the baseline of 4 applies. The mention of teams, providers and models could be misread as accepted inputs, but the empty schema makes the actual contract unambiguous.

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

Purpose3/5

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

The description enumerates what the tool surfaces (total spend, projected monthly spend, savings available, fixes done, verified savings), so the content is reasonably specific. However, it is a noun-phrase inventory with no verb and no differentiation from close siblings like get_spend or get_people_spend, so an agent cannot tell from the text alone why it would pick this one.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of prerequisites, and no reference to the sibling spend tools. The only quasi-guidance is the mention of teams/providers/models as filters, which is about output content rather than selection criteria.

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