Skip to main content
Glama

Buyer history

buyer_history
Read-onlyIdempotent

Use this to learn how a buyer behaves before bidding: what it awarded, to which suppliers, how many bidders its tenders draw (median_bidders, single_bidder_share) and how awards compare with the estimate (median_award_to_estimate). Pass tender_id from search_tenders, or buyer_name, or buyer_id. Built from the buyer's awarded tenders in Open Contracting (OCDS) data; period, sources and computed_at are in each match. An empty matches list comes with a note saying why. Access: needs an identified agent key (free, self-service at https://pass.andesprotocol.com).

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_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum profiles to return (1 to 10).
buyer_idNoA buyer id or tax id, as an alternative.
tender_idNoA tender whose buyer to look up (from `search_tenders`).
buyer_nameNoThe buyer's official name, as an alternative.
preferred_languageNoThe user's BCP-47 tag, for `note` and `limits`.en-US

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / buyer_id / description
      Added value: +"A buyer id or tax id, as an alternative."
    • addedInput schema / properties / buyer_name / description
      Added value: +"The buyer's official name, as an alternative."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum profiles to return (1 to 10)."
    • addedInput schema / properties / preferred_language / description
      Added value: +"The user's BCP-47 tag, for `note` and `limits`."
    • addedInput schema / properties / tender_id / description
      Added value: +"A tender whose buyer to look up (from `search_tenders`)."
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful context beyond that: the OCDS awarded-tender provenance, the fact that period/sources/computed_at accompany each match, that an empty result carries an explanatory note, and the identified-agent-key access requirement with a URL. It does not describe result ordering or how profiles are ranked when limit > 1, which keeps it at a solid 3 rather than higher.

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?

It is a single dense paragraph that front-loads the purpose before the mechanics, and each sentence carries real information (metrics, input keys, provenance, empty-result behaviour, auth). The run-on style packs a lot into one block and could be split for scanability, but there is no filler.

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?

An output schema exists, so return values need no explanation, and the description still covers what an agent needs to call it correctly: which key to pass, what the response contains, why an empty result occurs, and the auth prerequisite. Nothing material is missing for a read-only, five-parameter lookup.

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% and every parameter is already documented, including the '(from search_tenders)' provenance of tender_id. The description's restatement of the three lookup keys as alternatives adds little the schema does not already say, 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 names a specific resource (buyer) and states precisely what the output characterises: awards, suppliers, median_bidders, single_bidder_share, median_award_to_estimate. That is far more than a restatement of the name. It stops short of explicitly contrasting itself with the sibling supplier_history, so the agent must infer the buyer-vs-supplier split.

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?

"Use this to learn how a buyer behaves before bidding" gives a clear situational trigger, and the description enumerates the three mutually alternative lookup keys so the agent knows any one suffices. There is no explicit when-not-to-use clause or named alternative for the supplier-side question.

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