Skip to main content
Glama

Create a checkout link

polar_create_checkout_link
Destructive

Create a reusable checkout URL for one or more products — the link you put in a page or an email. Polar: POST /v1/checkout-links/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNoAn internal label for the link.
productsYesProduct ids the link sells.
discount_idNoApply this discount automatically.
success_urlNoWhere to send the buyer after payment.
allow_discount_codesNoLet the buyer enter a discount code. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations only supply destructiveHint=true, so the description does add real value by disclosing the "reusable" nature and the backing endpoint (POST /v1/checkout-links/). It still omits auth/permission requirements, whether a discount id is validated at creation time, and what happens on repeated calls with the same label. Adequate but not rich.

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?

A single tight sentence with the core purpose front-loaded, followed by a short endpoint reference. The endpoint string is marginally useful but borders on trivia for an agent that only needs to pick and parameterize the tool.

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

Completeness3/5

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

No output schema exists, so the description would ideally hint at what a created link returns (URL plus id), which it does not. It covers creation adequately but leaves return shape and permissions unstated for a mutating tool.

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 all five parameters (label, products, discount_id, success_url, allow_discount_codes) are already documented in the schema. The description only restates the cardinality of `products` ("one or more"), adding no format or constraint detail beyond the structured fields.

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 reusable checkout URL"), scopes it to "one or more products", and clarifies intent with "the link you put in a page or an email". An agent can immediately distinguish this from the read-oriented siblings (list_products, get_order) without opening a schema.

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 "the link you put in a page or an email" implies the use case and the analog alternatives (checkout sessions via API), but it never states when to prefer this over another creation path or lists prerequisites such as needing product ids that already exist. Usage is implied, not instructed.

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.