Skip to main content
Glama

Compare supplier offer history

compare_supplier_offer_history
Read-onlyIdempotent

Compare a supplier's latest two saved offer files: restocks, depletions, cost, availability, ETA and terms changes, new and missing lines. Use it for what-changed questions about a supplier's offers. It never proves a discontinuation from sparse snapshots; for past buying decisions use recall_decisions.

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": {
      "supplier_name": "<supplier_name>"
    },
    "name": "compare_supplier_offer_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum changed rows to return (default 100).
contextNoOptional, analytics only: why you are calling this, in a few words; name roles, never people or figures.
supplier_nameYesSupplier name or key to compare.
conversation_idNoOptional, analytics only: one opaque id reused on every call in this conversation.

Output Schema

NameRequiredDescriptionDefault
changesYes
evidenceYesHow many snapshots back the comparison, and how far they can be trusted.
truncatedYes
currentAsOfYes
evidence_idYes
supplierKeyYes
previousAsOfYes
currentImportIdYes
previousImportIdYes
source_evidence_idsYesWorkspace evidence IDs backing these rows. Empty when the source carries no evidence records.
missingLineQualificationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Optional, for analytics only: in about 15 to 25 words, why this tool is being called and how it serves the person's goal. Describe people and things by role (\"a buyer\", \"a supplier\"); never include names, emails, figures or other details from the conversation or results. It never changes the result."New value: +"Optional, analytics only: why you are calling this, in a few words; name roles, never people or figures."
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Optional, for analytics only: one id for this conversation, such as a random UUID chosen on the first call, passed unchanged on every later call in the same conversation so the calls can be grouped. It never changes the result."New value: +"Optional, analytics only: one opaque id reused on every call in this conversation."
  2. Changed2 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Optional, for analytics only: in about 15 to 25 words, why this tool is being called and how it serves the person's goal. Describe people and things by role (\"a buyer\", \"a supplier\"); never include names, emails, figures or other details from the conversation or results. It never changes the result.",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Optional, for analytics only: one id for this conversation, such as a random UUID chosen on the first call, passed unchanged on every later call in the same conversation so the calls can be grouped. It never changes the result.",
      +  "type": "string"
      +}
  3. Changed12 schema fields changed
    • removedOutput schema / properties / changes / items / properties / sku / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / changes / items / properties / sku / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / changes / items / properties / title / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / changes / items / properties / title / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / currentAsOf / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / currentAsOf / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / currentImportId / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / currentImportId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / previousAsOf / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / previousAsOf / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / previousImportId / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / previousImportId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real behavioral context: it operates on the latest two saved snapshots only, and it warns that sparse snapshots cannot establish discontinuation, which is a substantive epistemic limit rather than a restatement of 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the operation and its scope, followed by routing guidance and the caveat. No filler and no repetition of the title or annotations.

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?

With an output schema present and full schema description coverage, the description need not explain returns, and it covers scope, limits and the sibling alternative. It leaves one operational gap: what happens when a supplier has fewer than two saved offer files, which an agent calling this tool may reasonably need to know.

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 supplier_name, limit and the analytics-only context/conversation_id are already documented in the schema, and the 3 baseline applies. The description's phrase "latest two saved offer files" implies the comparison window is fixed, but it says nothing about the limit or what counts as a valid supplier identifier beyond what the schema supplies.

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 verb (compare) and resource (a supplier's latest two saved offer files) and enumerates the facets compared: restocks, depletions, cost, availability, ETA, terms changes, new and missing lines. That is enough for an agent to separate it from find_supplier or get_inventory_position without opening a schema.

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

Usage Guidelines5/5

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

It states the selecting condition ("what-changed questions about a supplier's offers") and adds an explicit exclusion plus alternative: it never proves discontinuation from sparse snapshots, and past buying decisions belong to recall_decisions. Both when-to-use and when-not-to-use are covered.

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.