Skip to main content
Glama

Washawash

create_membership_checkout

Idempotent

Create a hosted recurring subscription checkout after the customer approves the chosen plan and billing cycle. Requires OAuth scope memberships:write.

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": {
      "plan_id": "<plan_id>",
      "cycle": "<cycle>",
      "approved": "<approved>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "create_membership_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
cycleYes
plan_idYes
approvedYes
idempotency_keyYes

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing the required OAuth scope 'memberships:write' and the 'hosted' nature of the checkout, which implies the caller must handle a redirect. It does not explain the idempotency contract or retry behavior, keeping it from a 5.

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 short sentences, no filler, with the core action and its precondition front-loaded and the auth requirement as a trailing constraint. Every clause earns its place.

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?

An output schema exists, so return values need not be described, and the OAuth scope plus required approval gate cover the main operational facts. The gap is the undocumented idempotency_key, which is material for a tool that is annotated idempotent, but overall the description is adequate for this mutation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four required parameters, so the description must carry the burden. It hints at plan_id, cycle and the approved gate, but never mentions idempotency_key at all — a required, pattern-constrained parameter whose meaning and reuse semantics are essential to calling this correctly.

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 ('Create a hosted recurring subscription checkout') plus the precondition (customer approved plan and cycle), which is far more precise than a tautology. It does not name a sibling such as create_order_draft or compare_memberships to distinguish itself, so it stops short of a 5.

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?

The phrase 'after the customer approves the chosen plan and billing cycle' implies the correct sequence of use (inspect plans, get approval, then create). There is no explicit when-not-to-use guidance, no mention of which sibling supplies the plans, and no statement about what to do if approval hasn't happened.

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.

Resources