Skip to main content
Glama

MagicLayers

checkout

Idempotent

Return a private MagicLayers checkout link, valid for one hour. Show the link to the user who submitted the task so they can pay with Stripe and open the task in their browser.

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": {
      "task_id": "<task_id>"
    },
    "name": "checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYesThe compact or full UUIDv7 returned by MagicLayers.
task_refNoThe private task reference. Omit only when the MCP client supplies task authorization in its HTTP header.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare the safety profile (non-read-only, open-world, non-destructive, idempotent), so the description is not needed for that. It still adds genuinely new facts: the link is private, expires in one hour, and must be surfaced to the submitting user rather than used directly. It stops short of saying whether a new call invalidates a prior link or what happens after expiry, which would matter for retry behavior.

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 tight sentences: the first front-loads what is returned and its lifetime, the second states the required agent behavior. There is no redundancy or filler.

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?

With an output schema present, return-value detail is unnecessary, and the annotations cover safety semantics. The description supplies privacy, TTL, and display guidance, which is nearly everything an agent needs for this two-parameter tool. Only edge behavior on expiry or repeated calls is missing.

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%, with task_id and task_ref both documented including the header-authorization fallback for omitting task_ref. The description adds nothing about either parameter, so the schema does all the work and the baseline 3 applies.

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 opens with a specific verb and resource ('Return a private MagicLayers checkout link') and adds a validity window, so the agent knows exactly what is produced. It does not, however, differentiate itself from siblings such as 'payment' or 'verify_payment', leaving the agent to infer which stage of the flow this belongs to.

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?

It gives clear operational context: the link must be shown to the user who submitted the task so they can pay via Stripe and open the task in a browser. That tells the agent what to do after the call, but there is no explicit when-not condition or named alternative for the payment/verification steps handled by sibling tools.

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