Skip to main content
Glama

Prepare a guide purchase

prepare_guide_purchase
Read-only

Returns buy_url, the zhannett.com page where the customer buys a guide's PDF (and pays on Stripe's page), or, when signed in, says they already own it. Nothing is charged until they pay.

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": {
      "guide_id": "<guide_id>"
    },
    "name": "prepare_guide_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage of the texts: ru, en or pt (default en).
guide_idYesA guide id from list_offerings (kind `guide`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a safe, closed read operation, and the description adds genuinely useful behavior: the payment happens off-site on Stripe's page, and a signed-in user who already owns the guide gets a different outcome. It does not describe the shape of the 'already owned' response, but the added context goes well beyond the annotations.

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 compact sentence that front-loads the return value and appends the important 'no charge' caveat. It is dense but every clause carries information; the parenthetical about Stripe is slightly clunky but earns its place.

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?

There is no output schema, yet the description names the key return field and describes the conditional alternate outcome, which is what an agent needs to branch on. The remaining gap — the exact structure of the already-owned response — is minor for a two-parameter read 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 both parameters (including the locale enum) are already documented in the schema. The description adds no further meaning about `guide_id` or `locale`, so 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 states a specific outcome — returns the `buy_url` where the customer purchases a guide's PDF — with the resource ('guide') named and the alternate outcome ('says they already own it') spelled out. An agent can tell this is the guide-purchase path rather than a booking or subscription path, though it never explicitly contrasts itself with the sibling `prepare_*` tools.

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 establishes the context clearly: use this to obtain the purchase page for a guide, and it explicitly notes that nothing is charged until the customer pays, which tells an agent this is a pre-purchase step rather than a transaction. It offers no explicit when-not-to-use guidance or named alternative for other purchase types.

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