Skip to main content
Glama

Wrendex

create_checkout_session

Create a Stripe Checkout link that subscribes the workspace to a plan. Returns {url, sessionId}. Nothing is charged until a person opens the url and completes payment, so hand it to whoever owns the workspace. A workspace a person signed up for has zero credits and cannot crawl until a plan or credit pack is on the account; one created through POST /api/agent/signup starts with a one-time free grant and can crawl until it runs out. The caller must be an OWNER or ADMIN of the tenant. An agent-created workspace must be claimed by a person first: until then this returns 409 WORKSPACE_UNCLAIMED with the claimUrl to send them. Plan prices and monthly credits: GET /api/pricing (no token needed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tenantIdYesPath parameter tenantId.
priceTierYesPlan to subscribe to. base is the cheapest; studio and agency carry more monthly credits and storage.
returnUrlNoWhere Stripe sends the person after checkout. Must be a page on the dashboard origin; defaults to the workspace's billing page. Leave it out unless you have a reason.

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?

With no annotations, the description carries the full burden and does so thoroughly: no charge occurs until a human opens the URL, the return shape is {url, sessionId}, caller must be OWNER or ADMIN, and an unclaimed agent workspace yields 409 WORKSPACE_UNCLAIMED with a claimUrl. It also explains the credit-state consequences of subscribing, which is rich behavioral context beyond any structured field.

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?

The action and return value are front-loaded, then constraints and failure mode. It is long, and the credit-grant/crawl-eligibility sentences border on tangential, but each sentence supplies a fact an agent needs to avoid a wrong call.

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?

No output schema exists, and the description compensates by naming the return fields, the no-charge semantics, the authorization requirement, and the specific error/claim flow. Nothing an agent needs in order to invoke or interpret the result correctly 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 domain meaning the schema lacks: it explains what subscribing actually grants (monthly credits, ability to crawl) and why one would need it, indirectly clarifying priceTier selection. tenantId gets no added semantics, keeping it short of a 5.

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 and resource ("Create a Stripe Checkout link") plus the effect ("subscribes the workspace to a plan"), and names the return payload. No sibling tool touches billing, so this is unambiguously distinguishable from the crawl/alert/site tools.

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 context for use: hand the URL to whoever owns the workspace, and points to GET /api/pricing for plan prices. It also states the prerequisite authority (OWNER or ADMIN). It stops short of explicit when-not-to-use/counterpart routing, but there is no sibling alternative to route to for billing.

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