Skip to main content
Glama

List Cost Centers

list_cost_centers
Read-only

List the organization's cost-center definitions. Each carries costCenterId, name, color, description, and parentCostCenterId — the parent field encodes the cost-center HIERARCHY (null parent = top level). Use this to understand the allocation taxonomy before reading get_allocation_breakdown or list_allocation_rules. Use response_format="concise" (default) for the core fields, "detailed" to include org/audit metadata; limit caps the list. Read-only. Example: {} returns every cost center with its parent linkage.

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

Input Schema

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

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

Annotations already declare readOnlyHint=true, so 'Read-only' only confirms them. The description adds real value beyond the annotations by explaining that parentCostCenterId encodes hierarchy with null meaning top level, that response_format trades token cost for org/audit metadata, and that limit is bounded by a truncation guard.

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 most important information, what the tool lists and how it relates to sibling tools, comes first, and the parameter notes follow logically. The closing example is mildly redundant given the field enumeration, but it clarifies that an empty argument object returns the full list, which is genuinely useful.

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

Completeness4/5

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

With no output schema, the description carries responsibility for return values and does so by naming all five fields and their hierarchy semantics, plus response_format and limit behavior. Ordering of results and the specifics of the truncation guard are the only notable omissions for a two-parameter read tool.

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 description coverage is 100%, so the schema already documents both parameters and the baseline is 3. The description adds some meaning, notably that 'detailed' pulls in org/audit metadata rather than just a 'full parsed payload', but it does not specify ordering, default limit behavior, or what the truncation guard actually is.

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?

The first sentence names a specific verb and resource ('List the organization's cost-center definitions') and the following sentence enumerates the returned fields, so the agent knows exactly what comes back. It is clearly distinguished from sibling tools by naming get_allocation_breakdown and list_allocation_rules as downstream consumers rather than substitutes.

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?

The description gives explicit sequencing guidance: call this first to understand the allocation taxonomy before reading get_allocation_breakdown or list_allocation_rules. It also explains when to choose each response_format value and what limit does. What's missing is a when-not clause (e.g., that create/mutation siblings should not be used here), but the context is otherwise clear.

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