Skip to main content
Glama

Top customers by spend

top_customers
Read-only

The seller's customers ranked by lifetime spend, with order counts.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many, 1-100. Default 20.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds only that results are ranked by lifetime spend and include order counts, and it offers no context on ordering direction, pagination, or how far back lifetime spend is measured.

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 front-loaded sentence with no wasted words, though its terseness leaves little structure to route the agent beyond the ranking criterion.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 carries the burden of describing return values and does mention lifetime spend and order counts, which is adequate for a simple ranked-list tool. It still omits ordering direction and any note on how many records come back relative to limit.

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 both limit (1-100, default 20) and account (id from list_accounts) fully documented in the schema. The description contributes no additional meaning such as whether limit truncates only the ranked list or affects aggregation.

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?

States the resource (the seller's customers) and the ranking criterion (lifetime spend) plus an included metric (order counts), which separates it from generic siblings like account_summary or revenue_by_month. It does not explicitly contrast itself with any sibling, but the resource+ranking is specific enough to identify the tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance is given; nothing says to prefer list_accounts before passing account, or which sibling answers revenue questions instead. The agent must infer that this is a reporting/ranking call from the phrasing alone.

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.