Skip to main content
Glama

Billing

get_billing
Read-only

Retrieves hosted billing details: plan, subscription, billing period, usage, limits, watermark, available plans, and post-cancellation Free limits and overage effects.

Instructions

Hosted instances: your plan, subscription and billing period, the limits in force and where each comes from, this period's usage, the watermark, the plans on offer, and with a cancellation scheduled what Free will be once the plan ends: its limits, where you would be over them and what that refuses. afterCancel holds that from subscription.cancelAt, with what else changes. Returns { plan, subscription, afterCancel, limits, usage, watermark, plans, … }; self-hosted, that billing is not enabled.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.17.0

TDQS

A3.5/5.0
Behavior3/5

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

readOnlyHint=true already declares this a safe read, so the bar is lower. The description adds real context the annotation cannot: availability is gated on hosted instances, and afterCancel is derived from subscription.cancelAt and describes the post-cancellation Free state. It still omits whether data is live or cached and any auth/plan prerequisites.

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?

The single sentence is information-dense but rambling, with a long embedded clause about the scheduled-cancellation case and a trailing pseudo-schema whose ellipsis adds little. Key routing information (hosted vs self-hosted) is buried at the very end rather than front-loaded.

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 the burden of describing return values and does so by naming the top-level fields and the meaning of afterCancel. The '…' leaves the response shape partially open, but for a zero-parameter read tool the remaining ambiguity is minor.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline applies. The description correctly signals that all output is scoped implicitly to the caller's own account.

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 enumerates the exact resource contents (plan, subscription, cancel date, limits, usage, watermark, available plans), so an agent knows precisely what state this returns. It does not, however, distinguish itself from siblings like billing_checkout_url or billing_portal_url, whose scope must be inferred from their names.

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

Usage Guidelines3/5

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

There is a genuine when-not condition: self-hosted deployments have billing disabled, which helps the agent skip this tool in that case. Beyond that, nothing says when to call this rather than the checkout/portal siblings or another account-state tool, so usage is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools