Skip to main content
Glama

Get billing and usage

get_billing
Read-onlyIdempotent

Plan, AI credits left, and usage against the plan's limits.

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

Input Schema

NameRequiredDescriptionDefault
fieldsNoFields to return. Default: plan_name, subscribed, payment_problem, in_trial, current_period_end, cancel_at_period_end, credits, usage, limits, mcp_plan.
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / fields / description
      Previous value: -"Which fields to return. Leave out for the usual ones: plan_name, subscribed, payment_problem, in_trial, current_period_end, cancel_at_period_end, credits, usage, limits, mcp_plan."New value: +"Fields to return. Default: plan_name, subscribed, payment_problem, in_trial, current_period_end, cancel_at_period_end, credits, usage, limits, mcp_plan."
    • removedInput schema / properties / project_id / description
      Removed value: -"Workspace to work in (from list_projects). Leave out for the default one."
  2. First observed

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds nothing beyond them: no word on the default field subset returned, what happens when there is no active subscription, or how project scoping affects the answer. It largely restates the title.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short fragment with no wasted words, but it is a noun phrase rather than a statement of action, and the brevity comes at the cost of specification rather than from tight editing. Nothing is front-loaded because there is effectively one clause.

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

Completeness2/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 the burden of explaining the return payload, and it only gestures at it with three nouns. For a tool whose main complexity is a large optional field-selection enum and an unexplained project_id, the definition leaves too much for the agent to discover by trial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%: the 'fields' enum is documented in the schema, but project_id has no description anywhere. The description does not compensate, offering no detail on what fields can be requested, what the default response contains, or how project_id narrows the result. Mentioning credits/usage/limits hints at the fields vocabulary but adds no real semantics.

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 specific resources returned: plan, remaining AI credits, and usage measured against plan limits. That is enough to tell it apart from data-fetching siblings like get_settings or list_projects, though it never addresses the closest neighbor, get_budget, so the read is clear but sibling differentiation is absent.

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 exclusions, and no mention of an alternative such as get_budget for spend analysis. The agent is left to infer from the tool name alone that this is the endpoint for subscription/credits questions, and the fragment gives no situational context.

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.