Skip to main content
Glama

Find supplier

find_supplier
Read-onlyIdempotent

Resolve a supplier name, fragment or acronym to the workspace's suppliers, with catalogue-product and open-recommendation counts. Use it before filtering by supplier, or with no query and order_by open_recommendations to rank suppliers by what awaits action. For a supplier's products use search_catalogue.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum suppliers to return (1 to 50).
queryNoSupplier name, fragment or acronym; omit to list every supplier.
contextNoOptional, analytics only: why you are calling this, in a few words; name roles, never people or figures.
order_byNoproducts (default) = most catalogue products first; open_recommendations = most open recommendations first, for a ranking by what awaits action.
email_domainNoA sender's email domain or address (acme.com.au or rep@acme.com.au), matched exactly against the domains on supplier profiles instead of the name. Use instead of query, not with it.
conversation_idNoOptional, analytics only: one opaque id reused on every call in this conversation.

Output Schema

NameRequiredDescriptionDefault
scopeYes
suppliersYesMatching suppliers with catalogue-product and open-recommendation counts.
truncatedYesTrue when more rows matched than were returned.
ordered_byYes
evidence_idYesHandle for these rows within this call's results. Not a citation.
domain_matchNoFor an email_domain lookup: unique = exactly one supplier lists the domain; ambiguous = several do, choose with the person; none = no supplier in the remit lists it.
email_domainNoFor an email_domain lookup: the normalized domain compared, or null when the input was not a usable domain.
returned_rowsYesRows in this response.
domain_match_noteNoFor an email_domain lookup: what the match status means for choosing a supplier.
source_evidence_idsYesWorkspace evidence IDs backing these rows. Empty when the source carries no evidence records.
total_matching_rowsYesRows that matched before any limit.
total_open_recommendationsNoOpen recommendations across every supplier in the remit.

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. Changed2 schema fields changed
    • removedOutput schema / properties / email_domain / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / email_domain / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. Changed4 schema fields changed
    • addedInput schema / properties / email_domain
      Added value: +{
      +  "description": "A sender's email domain or address (acme.com.au or rep@acme.com.au), matched exactly against the domains on supplier profiles instead of the name. Use instead of query, not with it.",
      +  "maxLength": 320,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / domain_match
      Added value: +{
      +  "description": "For an email_domain lookup: unique = exactly one supplier lists the domain; ambiguous = several do, choose with the person; none = no supplier in the remit lists it.",
      +  "enum": [
      +    "unique",
      +    "ambiguous",
      +    "none"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / domain_match_note
      Added value: +{
      +  "description": "For an email_domain lookup: what the match status means for choosing a supplier.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / email_domain
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "For an email_domain lookup: the normalized domain compared, or null when the input was not a usable domain."
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum suppliers to return (1–50)."New value: +"Maximum suppliers to return (1 to 50)."
  6. First observed

TDQS

A4.7/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 adds behavioral value by disclosing that results carry catalogue-product and open-recommendation counts and that ranking changes with order_by; it does not discuss matching fallbacks (e.g. what happens when a fragment matches several suppliers) or result limits, which keeps it from a 5.

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 short sentences, front-loaded with the core action and result shape, followed by usage and the redirect to search_catalogue. No filler or restatement of the title.

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 six optional parameters, full schema coverage, an output schema and read-only annotations, the remaining burden is purpose, routing and invocation patterns, all of which are covered. Nothing an agent needs in order to call this correctly appears to be missing.

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 is 3, but the description adds meaning beyond the schema: it frames query as a resolution input (name, fragment or acronym) and describes the no-query + open_recommendations combination as a deliberate ranking mode. It does not explain how query and email_domain interact beyond the schema's own note.

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?

States a specific verb and resource ('Resolve a supplier name, fragment or acronym to the workspace's suppliers') and adds what comes back (catalogue-product and open-recommendation counts). It explicitly separates itself from search_catalogue, so an agent can route between them without opening schemas.

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?

Gives two concrete invocation patterns: call it before filtering by supplier, or call it with no query plus order_by=open_recommendations to rank suppliers by pending work. It also names the alternative for a related need ('For a supplier's products use search_catalogue'), covering both when-to-use and where-to-go-instead.

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.