Skip to main content
Glama

Get supplier constraints

get_supplier_constraints
Read-onlyIdempotent

Read a named supplier's lines in the open task (or every line) with the supply constraints and stock each carries: lead time, carton quantity, on order and stock on hand where the task holds them, plus cost and margin. A missing field means the task does not carry it, not that the supplier has none. Use it for lead-time, pack-size and inventory-capital questions about those lines. To resolve a supplier name use find_supplier; for changes in their offers use compare_supplier_offer_history.

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

Input Schema

NameRequiredDescriptionDefault
contextNoOptional, analytics only: why you are calling this, in a few words; name roles, never people or figures.
entity_nameNoEntity name exactly as the user wrote it.
supplier_nameNoA supplier, matched as find_supplier matches one (exact, whole word or acronym), never as a fragment of product text. The result says how many lines the supplier has beyond the visible ones.
conversation_idNoOptional, analytics only: one opaque id reused on every call in this conversation.
include_stock_valueNoMarks an inventory-capital question. The rows carry whatever stock measures the task holds either way.

Output Schema

NameRequiredDescriptionDefault
rowsYesOne row per product line: sku, product, category, supplier, then the line's own measures.
scopeYesWhat population the rows were read from.
truncatedYesTrue when more rows matched than were returned.
populationNoPresent on an unfiltered read: a reminder the rows are a slice, not the whole business.
evidence_idYesHandle for these rows within this call's results. Not a citation.
completenessNoPresent when nothing matched: what the empty result does and does not mean.
returned_rowsYesRows in this response.
inputs_not_appliedNoInputs the snapshot could not apply.
source_evidence_idsYesWorkspace evidence IDs backing these rows. Empty when the source carries no evidence records.
total_matching_rowsYesRows that matched before any limit.
excluded_rows_without_metricNoRows left out of a ranking because they carry no figure for the metric.

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. Changed3 schema fields changed
    • changedInput schema / properties / include_stock_value / description
      Previous value: -"Marks an inventory-capital question. The rows carry whatever stock measures the work unit holds either way."New value: +"Marks an inventory-capital question. The rows carry whatever stock measures the task holds either way."
    • addedInput schema / properties / supplier_name
      Added value: +{
      +  "description": "A supplier, matched as find_supplier matches one (exact, whole word or acronym), never as a fragment of product text. The result says how many lines the supplier has beyond the visible ones.",
      +  "type": "string"
      +}
    • changedOutput schema / description
      Previous value: -"Rows from the current work-unit snapshot."New value: +"Rows from the current task snapshot."
  4. Changed1 schema field changed
    • changedInput schema / properties / include_stock_value / description
      Previous value: -"True to include the stock value held per supplier, for inventory-capital questions."New value: +"Marks an inventory-capital question. The rows carry whatever stock measures the work unit holds either way."
  5. First observed

TDQS

A4.3/5.0
Behavior3/5

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

The annotations already declare this a safe, idempotent, closed-world read, and the description adds a genuinely useful data-completeness caveat: a missing field means the task does not carry it, not that the supplier has none. It also notes availability is conditional ('where the task holds them'). Beyond that it says nothing about row counts, truncation or ordering, so it adds context but not a rich behavioral picture.

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?

Three sentences, front-loaded with scope, then the caveat, then routing. Every sentence earns its place, though the first sentence is long enough that the lead-time/stock/margin payload is a little buried in a parenthetical.

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?

Complete for a read tool whose annotations cover safety and which has an output schema, so return-shape explanation is unnecessary. Scope, null semantics and sibling routing are all present; only pagination or volume behavior is left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema does not: omitting supplier_name returns every line, and the include_stock_value flag corresponds to framing the call as an inventory-capital question. The remaining clarifications live in the schema, so it is an increment rather than a full account.

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 opens with a specific verb and resource ('Read a named supplier's lines in the open task (or every line)') and enumerates exactly what each row carries: lead time, carton quantity, on order, stock on hand, cost and margin. That is enough for an agent to distinguish it from get_inventory_position or get_product_master without opening any 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 names both the use cases ('lead-time, pack-size and inventory-capital questions') and the two alternatives: find_supplier to resolve a name, compare_supplier_offer_history for changes in offers. When-to-use, when-to-delegate and which sibling to pick are all stated explicitly.

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.