Skip to main content
Glama

Connect billing integration

connect_billing_integration

Connect a billing provider so purchases, renewals, cancellations and refunds become events and contact revenue. Returns webhook_path (prefix with the API origin) to paste into the provider; secret is returned only if Runearc generated it (shown once). Errors: unknown_billing_provider, billing_already_connected. Next: send a test event from the provider, then list_billing_integrations to see last_event_at.

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": {
      "provider": "<provider>"
    },
    "name": "connect_billing_integration"
  }
}

Input Schema

NameRequiredDescriptionDefault
secretNoThe provider's webhook signing secret. Omit to have Runearc generate one.
providerYesstripe, paddle, lemonsqueezy, polar, revenuecat, adapty or shopify.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the generic profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false); the description adds the substantive behavior an agent actually needs: the returned webhook_path must be prefixed with the API origin, the `secret` is shown only once and only if Runearc generated it, and two named error codes including the duplicate-connect case that explains the non-idempotent hint.

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

Conciseness5/5

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

Four tight sentences, each carrying distinct information: effect, return values, error set, and next step. The secret caveat is placed before the error list where it matters most for safe invocation.

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?

With no output schema, the description correctly documents the return shape (webhook_path, one-time secret), enumerates the failure modes, and points to the verification step. Nothing an agent needs to call this mutation correctly and verify success is missing.

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?

Schema coverage is 100% and the schema already documents both parameters, including the provider list and the 'omit to have Runearc generate one' behavior for `secret`. The description's note about `secret` concerns the return value (shown once) rather than deeper parameter semantics, so this is the expected 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?

States a specific verb and resource (connect a billing provider) and immediately explains the downstream effect: purchases, renewals, cancellations and refunds become events and contact revenue. This is clearly distinguishable from sibling mutation tools like remove_billing_integration or list_billing_integrations.

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?

Gives a concrete follow-up path ('send a test event from the provider, then list_billing_integrations to see last_event_at') and names the error conditions that indicate it should not be re-run (billing_already_connected). It stops short of an explicit when-not-to-use statement or naming remove_billing_integration as the undo path, so it is clear context rather than full routing 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.