Skip to main content
Glama

Connect Stripe for payments

stack_payments_connect_stripe

Start connecting the customer's own Stripe account for card payments, or return the connection already open. The key is not an argument: for the account's owner the result carries connect_url, a single-use page where the customer pastes a restricted Stripe key and the signing secret of the webhook endpoint (webhook_url, webhook_events) they add in their Stripe; STACK checks the key's permissions with Stripe and refuses a full secret key or a restricted key that reaches beyond creating payment links and checkout sessions and reading payments. Called with the agent's Passport the result has connect_url null: only the owner can connect. Returns the connection with state awaiting_key, active or disconnected.

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": {
      "account_id": "<account_id>"
    },
    "name": "stack_payments_connect_stripe"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesAgent account id (acct_*)
passport_tokenNoPassport JWT of the account's agent, sent as X-Passport-Token. It must carry the account's Mission.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false), the description discloses the real behavioral profile: a single-use connect_url page, where the customer pastes a restricted key plus webhook secret, STACK's permission verification that refuses full secret keys or over-broad restricted keys, and the resulting states (awaiting_key, active, disconnected). This is exactly the context an agent needs before invoking a connection-mutating tool.

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?

Dense but front-loaded: the primary action and its fallback appear first, followed by the owner-only rule, key restrictions, and return states. Every sentence carries information, though the middle clauses about key permissions are packed tightly enough to slow reading slightly.

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 still explains the return payload (connect_url presence/null, webhook_url and webhook_events, state values), the security checks performed, and the two invocation modes. Nothing an agent needs to call this correctly or interpret the result 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, but the description adds real meaning: it explicitly says the Stripe key is not an argument (it is pasted on the connect_url page) and explains that supplying the agent's Passport changes the outcome to connect_url null, clarifying the effect of passport_token rather than just its format.

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 names a specific verb and resource ('Start connecting the customer's own Stripe account for card payments') and clarifies the dual behavior of returning an already-open connection, which implicitly separates it from the read-oriented sibling stack_payments_get_stripe. An agent can identify the operation and its scope without opening the 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?

It states the conditions clearly: use it to start a connection or retrieve an existing one, and only the account's owner can actually connect (agent Passport calls yield connect_url null). It does not explicitly name alternative tools or when-not-to-use cases, which keeps it 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.