Skip to main content
Glama

Set billing integration secret

set_billing_integration_secret
Idempotent

Set or replace a billing connection's webhook signing secret: finishes a pending connection (status becomes active, webhook_path unchanged) or rotates an active one. Omit secret to have Runearc generate one (returned once). Errors: not_found, billing_secret_is_api_key. Next: resend a test event from the provider, then list_billing_integrations.

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": {
      "id": "<id>"
    },
    "name": "set_billing_integration_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe connection id (bil_...).
secretNoThe provider's webhook signing secret. Omit to have Runearc generate one (returned once).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: status transitions to active, webhook_path is left unchanged, the generated secret is returned exactly once, and named error codes (not_found, billing_secret_is_api_key) tell the caller what failure looks like. It does not state required permissions/scopes or the response shape, and there is mild tension with idempotentHint=true since an omitted secret yields a freshly generated value on each call.

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?

Two sentences plus a compact error/next-step clause, with the primary effect and the omit-secret behavior front-loaded. Every phrase carries information; no filler.

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 return semantics and does so for the key case (generated secret returned once), while also covering state effects and next steps. A mention of authorization requirements or what the success response contains would close the remaining gap.

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's own wording for the secret parameter ("Omit to have Runearc generate one (returned once)") is essentially repeated verbatim in the description, so little meaning is added. The 'id' format hint (bil_...) lives only in the schema and the description adds nothing to it.

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 pair ("Set or replace") on a precisely scoped resource ("a billing connection's webhook signing secret"), and explicitly distinguishes the two cases it covers: finishing a pending connection vs. rotating an active one. An agent can tell this apart from connect_billing_integration or list_billing_integrations without opening any schema.

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 clear situational context — use when a connection is pending (to finish it) or active (to rotate) — plus explicit next steps ("resend a test event from the provider, then list_billing_integrations"), which is real routing guidance. It stops short of naming an alternative tool or stating when not to call it, so it does not reach the top band.

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.