Skip to main content
Glama

How a buyer found you

buyer_journey
Read-only

One buyer's whole path, oldest first: each visit (where it came from: the post, search, AI assistant or email, with its campaign or ?ref= tag), the pages they read and buttons they clicked, when they started checking out, what they paid, the order bump, and every upsell they took or turned down. Give an order id (from list_orders) or the buyer's email. Sales from before visitor tracking show the order only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "buyer_journey"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoThe buyer's email, if there's no order id.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.
order_idNoAn order id from list_orders.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed world), and the description adds genuine context beyond them: results are ordered oldest first, and sales predating visitor tracking return the order alone with no journey. It does not address edge cases such as an unknown email or a buyer with multiple orders, which keeps it at a 4.

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?

The content enumerating what the journey returns is front-loaded in the first sentence, and the identifier instruction follows. It is one long clause-heavy sentence, but nearly every clause carries distinct information about the returned payload, so there is little waste.

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 no output schema, the description must describe what comes back, and it does so thoroughly, including the reduced shape for pre-tracking sales. For a read-only, three-parameter lookup tool, an agent has enough to call it correctly and interpret the result.

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%, so all three parameters are already documented, including that order_id comes from list_orders and email is the fallback. The description echoes that same relationship but adds nothing new, and the account parameter is not mentioned at all. Baseline 3 applies when the schema does the work.

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?

The description names a specific resource (one buyer's full path) and enumerates exactly what it contains: visits with source/campaign/ref tag, pages read, clicks, checkout start, payment, order bump, and upsells taken or declined. That enumeration makes it distinguishable from list_orders, which supplies the order id rather than the journey.

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 routes the agent on identifiers clearly — use an order id from list_orders, or the buyer's email — which is real usage guidance. It does not state when this tool is the wrong choice or describe a when-not condition, so it falls short of a 5.

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.