Skip to main content
Glama

Billing

billing
Destructive

Billing tools for the Draftless AI creative studio. Requires sign-in to run. Actions:

  • show_plans_and_credits: Billing overview for the signed-in user: current credit balance, plan tier, lifetime earned/spent, live subscription state (package, interva

  • get_credit_balance: Get the signed-in user's Draftless credit balance, plan tier, and lifetime earned/spent totals.

  • list_transactions: Paginated credit ledger for the signed-in user: every credit movement, newest first, with amount (positive = earned/purchased, negative = sp

  • list_invoices: List the signed-in user's Stripe invoices (most recent first) with date, amount in the currency's minor unit, status, line description, and

  • start_credit_purchase: Create a Stripe Checkout link for a one-off credit top-up and return the URL.

  • get_purchase_status: Check whether a credit purchase started by start_credit_purchase has actually completed.

  • get_billing_portal_url: Return a link to the signed-in user's Stripe billing portal, where THEY can change plan, cancel, update payment methods, and download invoic

  • get_auto_refill_settings: View the signed-in user's automatic credit top-up (auto-refill) configuration: whether it is on, the balance threshold that triggers it, whi

  • set_auto_refill_settings: Reduce or disable the signed-in user's automatic credit top-up.

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": {
      "action": "<action>"
    },
    "name": "billing"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoArguments for the action (see discover.describe_action once signed in).
actionYesWhich operation to run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true) are coarse and applied uniformly to read-only actions too, so the description must add the nuance — and it does: it states the sign-in requirement, clarifies that start_credit_purchase only returns a Checkout URL and get_billing_portal_url only hands off to Stripe where 'THEY' change the plan, and discloses that set_auto_refill_settings can only reduce or disable. That last restriction is exactly the kind of behaviour an agent would otherwise get wrong. It still omits rate limits and what happens on failure.

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 prerequisite (sign-in) is front-loaded, followed by a scannable one-line-per-action list in which nearly every bullet adds distinct information. Some entries spill past their useful point and are cut off, which costs readability rather than length.

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 nine-action multiplexed tool with no output schema, the description largely compensates by describing return content per action — most notably the ledger's ordering and sign convention (positive = earned/purchased, negative = spent) and minor-unit currency amounts for invoices. The remaining gap is that argument shapes live behind an opaque 'input' object requiring discover.describe_action, though the description does flag that dependency.

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% and the enum of nine actions is the real parameter surface, so the baseline would be 3; the description earns more by defining what each enum value actually does. The nested 'input' object is only pointed at ('see discover.describe_action once signed in'), so callers must make a prerequisite discovery call.

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 opens with a specific scope ('Billing tools for the Draftless AI creative studio') and enumerates nine actions, each pairing a concrete verb with a concrete resource (credit balance, transaction ledger, Stripe invoices, checkout link, billing portal, auto-refill). This clearly separates it from siblings such as commerce or plan. It loses a point because several action entries are truncated mid-word ('interva', 'negative = sp', 'and '), making a few behaviours unreadable.

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?

Usage is implied through the action list, which lets an agent pick the right operation inside the tool (e.g. start_credit_purchase followed by get_purchase_status). However, there is no explicit guidance on when to use billing versus siblings like commerce or plan, and no 'do not use for X' exclusions for the mutating actions.

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.