Skip to main content
Glama

create_checkout

Create a checkout session for a product and return a URL to redirect customers for payment.

Instructions

Create a checkout session for a product. Returns a checkout URL to redirect customers to.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYesProduct ID to create checkout for
request_idNoOptional request ID to track the payment in your system
success_urlNoURL to redirect after successful payment
customer_emailNoPre-fill customer email
customer_nameNoPre-fill customer name
discount_codeNoApply discount code
unitsNoNumber of seats/units for seat-based billing
metadataNoCustom metadata to attach to the checkout
Behavior2/5

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

No annotations are provided, and the description does not disclose behavioral traits such as side effects (e.g., creating a session), authentication requirements, rate limits, or error handling. The return of a URL is stated, but other behavioral aspects are missing.

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?

Extremely concise at two sentences. The first sentence conveys the core purpose, and the second clarifies the return value. No redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (8 parameters, no output schema, no annotations), the description is too brief. It lacks context about the checkout flow, how to handle the returned URL, expected behavior on errors, and relationships with other tools. Considerable room for improvement.

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?

All 8 parameters are described in the schema (100% coverage), so the description adds no additional meaning beyond what the schema provides. The baseline score of 3 is appropriate.

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?

Description clearly states the action (create) and resource (checkout session for a product), and mentions the return value (checkout URL). Easily distinguishable from sibling tools like get_checkout or create_product.

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 description implies usage for initiating a payment flow, but provides no explicit guidance on when to use this tool versus alternatives like get_checkout or create_customer_portal_link. No when-not-to-use or prerequisites mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Selenium39/mcp-server-creem'

If you have feedback or need assistance with the MCP directory API, please join our Discord server