Skip to main content
Glama

MagicLayers

verify_payment

Idempotent

After the user finishes Stripe checkout, verify it with Stripe and activate the paid task. Use the original task reference.

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": "verify_payment"
  }
}

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.2/5.0
Behavior4/5

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

Annotations declare openWorldHint=true, readOnlyHint=false, and idempotentHint=true, and the description is consistent with all three, adding that an external Stripe verification happens and that the paid task is activated as a side effect. It does not describe what happens when verification fails or whether activation is retried, so the behavioral picture is useful but not complete.

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, front-loaded with the trigger condition followed by the action, and no filler wording. Every clause carries information the agent needs.

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?

With an output schema present and full schema coverage on both parameters, the description only needs to supply trigger, action, and reference handling, which it does. Failure-path behavior is the only notable omission, and it is minor for a tool whose idempotency is already declared.

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 parameters are already documented, but 'Use the original task reference' adds real meaning: task_ref must be the reference carried over from the checkout step rather than a freshly generated one. That is a genuine hint beyond the schema's pattern constraint.

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 names a specific verb (verify) and resource (Stripe checkout payment) plus the consequence (activate the paid task), which distinguishes it clearly from siblings like 'checkout' and 'status'. It stops short of naming the sibling it is not, but the 'after the user finishes checkout' framing already separates it from the tool that starts checkout.

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 a clear trigger condition: call this after the user completes Stripe checkout. That is a usable when-to-use rule tied to a concrete lifecycle stage. It omits any when-not guidance, such as what to do if checkout was abandoned or if verification fails.

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