Skip to main content
Glama

Attach a plan

autumn_attach_plan
Destructive

MUTATES Autumn billing data — attaches (subscribes) a plan to a customer; may create an invoice / return a payment URL. Autumn API: POST /v1/billing.attach. Returns { customer_id, invoice, payment_url, required_action }.

Input Schema

NameRequiredDescriptionDefault
plan_idYesThe ID of the plan.
versionNoThe version of the plan to attach.
customizeNoOptional plan overrides (price, items, licenses, free trial).
entity_idNoThe ID of the entity to attach the plan to.
customer_idYesThe ID of the customer to attach the plan to.
success_urlNoURL to redirect to after a successful checkout.
invoice_modeNoInvoice-mode configuration object (send an invoice instead of auto-charging).
redirect_modeNoCheckout redirect mode: always, if_required, or never.
feature_quantitiesNoPrepaid feature quantities: array of { feature_id, quantity?, adjustable? }.
checkout_session_paramsNoExtra Stripe checkout session params (can carry metadata).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond destructiveHint=true by disclosing concrete side effects ('may create an invoice / return a payment URL') and the response shape including required_action, which signals possible 3DS/SCA flow. It does not cover idempotency, repeated-attach behavior, or error conditions for a destructive billing operation.

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 compact sentences with the mutation warning and the resource front-loaded, then the endpoint and return shape. Nothing is padded or repeated from the schema.

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 10-parameter destructive mutation with no output schema, the description supplies the return fields and the key side effect (invoice/payment URL) an agent needs. It leaves gaps around checkout flow branches (redirect_mode vs invoice_mode) and failure handling, but the essentials are present.

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 description coverage is 100%, so the schema already carries meaning for all 10 parameters, and the baseline 3 applies. The description adds no parameter-level nuance such as how redirect_mode interacts with invoice_mode or what customize overrides are permitted.

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?

States a specific verb and resource ('attaches (subscribes) a plan to a customer') and front-loads the MUTATES marker, which implicitly separates it from the read-only sibling autumn_preview_attach. It stops short of naming that alternative explicitly, so differentiation is inferred rather than stated.

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 by the verb and the 'subscribes' gloss, but there is no explicit guidance on when to choose this over autumn_preview_attach, nor any prerequisite such as the plan needing to exist first. An agent still has to infer the when-not condition from the MUTATES banner.

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.