Skip to main content
Glama

List Allocation Rules

list_allocation_rules
Read-only

List the cost-allocation rules that assign spend to cost centers. Each rule maps spend matched by matchDimension (e.g. "service" via serviceCode, or a tag via tagKey/tagValue) to a costCenterId, with a priority (lower wins) and enabled flag; integrationId scopes it to one connection (null = all). Optionally filter with cost_center_id to see only the rules feeding one center; limit caps the list. Use response_format="concise" (default) or "detailed". Read-only. Example: { "cost_center_id": "5d0f41ba-5b56-41c4-8480-fe0e93d678c0" } returns just that center's rules.

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": "list_allocation_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows to return in the list section (default: no cap beyond the truncation guard).
cost_center_idNoFilter to rules targeting a single cost center (maps to the backend ?cost_center_id= query).
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.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint; the description adds that the tool only lists rules and explains rule matching, priority ordering, integration scoping, and response-format tradeoffs. It does not detail truncation behavior beyond limit or auth/rate-limit constraints, but with annotations the bar is lower.

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?

Front-loads the purpose and packs relevant domain context efficiently. The single dense paragraph is slightly hard to scan and includes output-model details beyond the core call, but there is little filler.

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 read-only list tool with three optional parameters and no output schema, the definition covers purpose, domain model, filtering, format choice, and an example. Nothing essential for correct invocation 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 all three parameters are already documented in the schema. The description still adds practical meaning by explaining cost_center_id as a filter for one center's rules, response_format concise as lower token cost versus detailed full payload, and limit as a cap, plus a concrete example.

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: list cost-allocation rules that assign spend to cost centers. It clearly distinguishes the resource from sibling list and mutation tools by naming allocation rules and explaining their role.

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

Usage Guidelines4/5

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

Gives clear usage context: read-only listing, optional cost_center_id filtering, limit capping, and response_format choice. It does not explicitly say when to prefer preview_allocation_rule or get_allocation_breakdown over this list, so alternatives and exclusions are absent.

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