Skip to main content
Glama

Get Allocation Breakdown

get_allocation_breakdown
Read-only

Show how the organization's spend is allocated across cost centers for the current period. Returns totalSpend, the active rule count, and a costCenters list — each with its own spend and rolledUpSpend (own + descendants), pctOfTotal, and parentCostCenterId for the hierarchy. A synthetic "Unallocated" bucket (null costCenterId) captures spend no rule matched. Optionally scope with integration_id; limit caps the cost-center list. Read-only. FOLLOW-UP: this gives the per-cost-center totals; to see WHAT each centre is spending on, call run_cost_pivot with { "dimensions": ["cost_center", "service"] }, or filter to a few with cost_centers ("UNALLOCATED" selects unattributed spend). Example: {} returns the full allocation breakdown for the current period.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows to return in the list section (default: no cap beyond the truncation guard).
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.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint and openWorldHint, yet the description still adds real behavioral context: the returned fields (totalSpend, active rule count, costCenters), the rolledUpSpend hierarchy semantics (own + descendants), pctOfTotal, parentCostCenterId, and the synthetic "Unallocated" bucket keyed by null costCenterId for unmatched spend. It also warns that `limit` caps only the list section, implying truncation is possible. What it omits is auth/scope requirements and any mention of the response_format trade-off beyond what the schema already says.

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 is front-loaded, and the FOLLOW-UP/Example labels create scannable structure. It is dense — a long single paragraph enumerating return fields plus a trailing example whose value is marginal — but nearly every clause conveys information the agent needs.

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 three-parameter, read-only reporting tool with no output schema, the description covers return shape, hierarchy semantics, the unallocated edge case, scoping, row caps, and the natural next step. Nothing an agent needs in order to call it correctly or interpret the result is missing.

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 coverage is 100%, so the baseline is 3; the description earns an extra point by explaining that integration_id optionally scopes to provider connections and that `limit` caps the cost-center list specifically, not the totals. However, the aside "filter to a few with `cost_centers`" references a parameter that does not exist on this tool (it belongs to run_cost_pivot), which is mildly ambiguous for an agent reading this description in isolation.

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?

States a specific verb and resource — showing how org spend is allocated across cost centers for the current period — and explicitly positions it against run_cost_pivot (per-cost-center totals vs. what each center spends on). An agent can distinguish it from siblings like get_resource_breakdown without opening a schema.

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 an explicit FOLLOW-UP section naming the alternative tool (run_cost_pivot) with a concrete invocation payload, plus a when-to-use framing (this tool for totals, the other for breakdown by service). It also supplies a zero-argument example ({}), so the default call path is unambiguous.

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