Skip to main content
Glama

Attach a plan

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

TableJSON 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. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations mark destructiveHint=true, and the description adds meaningful behavioral context beyond that: it explicitly says 'MUTATES', may create an invoice, and may return a payment URL. This informs the agent of side effects and potential need for payment action, though it does not fully spell out all downstream consequences.

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?

The description is two sentences with high information density: it front-loads the mutating nature, names the operation, gives the API endpoint, and lists the return shape. No filler or repetition exists.

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 complex 10-parameter tool with no output schema, the description provides essential context: mutation, side effects, endpoint, and return fields. It is slightly incomplete in not mentioning when to prefer preview_attach or preconditions, but the schema and annotations cover most invocation details.

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 every parameter is already documented in the input schema. The description adds no supplemental parameter meaning, but the baseline of 3 applies because the schema carries the full explanatory burden.

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?

The description clearly identifies the action: attaching/subscribing a plan to a customer, and explicitly flags that it mutates billing data and may create an invoice or return a payment URL. However, it does not explicitly distinguish itself from sibling preview_attach, relying on the 'MUTATES' emphasis to imply the contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no guidance about when to use this tool versus alternatives, and notably preview_attach exists as a likely non-mutating counterpart. There are no prerequisites, exclusions, or conditional use cases stated, so an agent must infer usage from the tool name and schema.

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.

TDQS

A3.9/5.0
Disambiguation5/5

All tools have clearly distinct purposes: get/list for various resources, mutation tools like attach_plan, track_usage, and special tools like preview_attach and autumn_request for edge cases. No overlap in functionality.

Naming Consistency4/5

Most tools follow a verb_noun pattern (get_customer, list_plans, create_entity), but a few like autumn_request, preview_attach, and open_customer_portal break the pattern. Still, the naming is clear and predictable overall.

Tool Count4/5

18 tools is slightly above the typical 3-15 range, but each tool serves a distinct purpose in the billing domain, covering customers, plans, features, entities, invoices, usage, and portal access. The count is justified by the complexity of the domain.

Completeness4/5

The tool set covers CRUD for most resources (customers, features, plans, entities, invoices) plus billing operations like attach, check, preview, track usage, and customer portal. Missing delete operations and potential detach, but the read-only autumn_request may cover gaps. Minor gaps, not severe.