Skip to main content
Glama

commsharbor

commsharbor_billing_purchase

Buy a pass or top-up through the house's payment door (credit or x402); 409 while live checkout is off. While catalog.checkout_live is false this answers 409 checkout_disabled — nobody is charged by accident; the local dev stack completes it with the house's simulated payment. Otherwise, without payment it answers the standard 402 with accepts[] and both doors (a cred_… credit token, or X-PAYMENT). What it buys is a global entitlement: a pass runs 30 days (stacked after the current one), a top-up 365 days and needs an active pass. The same payment never grants twice, and the Idempotency-Key makes a credit retry safe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesWhich purchase to request.
idempotency_keyYesStable logical purchase key
organization_idYesActive organization ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / action / description
      Added value: +"Which purchase to request."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it does so richly: it discloses the 409 checkout_disabled response, the 402 flow with accepts[], the two payment doors (cred token and X-PAYMENT), entitlement durations, stacking behavior, and idempotency safety. This is far beyond what the schema reveals.

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 description is dense and every sentence earns its place, front-loading the core purchase action and payment door. However, it runs long and uses jargon like 'x402' that mildly hurts readability; a little more explicit structure would push it to a 5.

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

Completeness5/5

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

For a 3-parameter tool with no output schema and no annotations, the description is remarkably complete: an agent knows the main success path, the failure modes, payment mechanisms, retry semantics, and what constitutes a valid purchase. Nothing essential for selecting or invoking the tool is missing.

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%, so the baseline is 3. The description adds meaningful semantics beyond the schema: it explains what 'pass' versus 'topup' entails (30 vs 365 days, stacking, active-pass requirement) and that the idempotency_key makes credit retries safe. This lifts it above baseline.

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 description opens with a specific verb and resource: 'Buy a pass or top-up'. It also states the payment method ('credit or x402') and the global entitlement outcome, distinguishing it clearly from related tools like commsharbor_billing_catalog and commsharbor_billing.

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 clear context for using the tool: it is for purchasing a pass or top-up, with explicit behavior when checkout is disabled versus enabled. It does not explicitly name alternatives or state when not to use it, so it falls just short of a 5.

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