Skip to main content
Glama

AI Source of Truth Evidence Rooms

Get billing

get_billing
Read-only

An organization's plan, usage and spending cap. Scope: billing:read. REST twin: GET /api/orgs/:org/billing. Errors: unauthorized, insufficient_scope, not_found, forbidden.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "org_id": "<org_id>"
    },
    "name": "get_billing"
  }
}

Input Schema

NameRequiredDescriptionDefault
org_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered structurally. The description adds real value with the required scope, the enumerable error cases (unauthorized, insufficient_scope, not_found, forbidden), and the REST twin, but says nothing about pagination, freshness/caching, or return shape. That is good supplemental context without being rich behavioral disclosure.

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?

Four short, front-loaded clauses with zero filler: resource contents first, then scope, then REST twin, then errors. The opening is a bare noun phrase rather than a verb-led statement of what the call does, which slightly weakens the lead.

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?

For a one-parameter read tool with annotations covering safety and no output schema, the description covers auth scope, error surface, and the conceptual return contents (plan, usage, spending cap). Missing only error-recovery guidance and confirmation of whether usage figures are aggregated or itemized.

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?

The single org_id parameter has 0% schema description coverage, so the schema supplies no meaning. The REST twin path 'GET /api/orgs/:org/billing' implicitly identifies org_id as the organization identifier, which partially compensates, but format (ID vs slug) and any constraints are never stated.

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 the resource contents precisely (plan, usage, spending cap) for an organization, which is more specific than the name 'get_billing' alone. It never states a verb or distinguishes itself from the sibling get_pricing, so an agent must infer the difference from the noun list.

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 explicit when-to-use or when-not-to-use guidance and no alternatives named, despite siblings like get_pricing and choose_plan that touch adjacent billing/plan territory. The required scope 'billing:read' is the only selection signal, and it functions as a precondition rather than usage guidance.

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