Skip to main content
Glama

Get a prefilled checkout link

buy_link
Read-onlyIdempotent

Returns a checkout URL with the voucher already in the cart. The user opens it, enters their email and pays on the website. This tool does not purchase anything.

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": {
      "exam_code": "<exam_code>"
    },
    "name": "buy_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
quantityNoNumber of vouchers (default 1)
exam_codeYesExam code, e.g. AZ-900

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 already declare readOnly, idempotent and non-destructive, so the safety burden is partly carried. The description adds genuinely useful behavior beyond that: the return value is a URL, the human must open it, supply an email, and pay externally, and no transaction occurs agent-side. It stops short of link validity/expiry or whether the URL is reusable.

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?

Three short sentences, front-loaded with the return value, followed by the user flow and the scope disclaimer. No filler and nothing an agent must read past to get the key fact.

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?

For a two-parameter, no-output-schema tool, describing the returned URL in prose covers the missing output contract well, and the annotations cover safety. Minor gaps remain around link lifetime and multi-quantity behavior.

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 coverage is 100%, with quantity bounds and default already documented in the schema. The description says the voucher is placed in the cart but does not explain whether quantity is reflected as multiple vouchers in the same link, so it adds nothing beyond structured data.

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: returns a checkout URL with the voucher pre-loaded in the cart. It also preempts the obvious misreading created by the name 'buy_link' with the explicit line 'This tool does not purchase anything', so an agent can tell it apart from retrieval siblings like get_voucher.

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 when this is appropriate — the user needs to complete payment themselves on the website — and rules out treating it as a purchase action. It does not name a sibling alternative (e.g. get_voucher for an already-owned voucher), so the routing guidance is implicit rather than explicit.

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