Skip to main content
Glama

List suppliers, forwarders and customers

list_companies
Read-onlyIdempotent

The organization's companies: suppliers, freight forwarders and customers, newest first. Use it for "who is our supplier Progum", "which forwarders do we use" or to turn a name into the id that search_shipments takes as supplier, forwarder or customer ("what is coming for customer X"). erp_code finds the company an ERP knows by that code. query matches the name or any other spelling of it (a company is known by every spelling seen on documents). Each company has an id such as "cmp_12", its roles, aliases (the other spellings), country, ERP code, and open_shipments: how many live shipments it is the supplier, forwarder or customer of. role limits the list to one role and leaves out the organization's own companies (own is true for those). Results are paged: when has_more is true, pass the last id as starting_after. Use get_company to read one company by id.

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

Input Schema

NameRequiredDescriptionDefault
roleNoOnly suppliers, forwarders or customers. Omit for all companies.
limitNoHow many results to return, 1 to 100.
queryNoPart of a company name or of one of its other spellings.
erp_codeNoThe company's code in the organization's ERP, matched exactly (case aside). Use it to find the company an ERP record belongs to.
starting_afterNoPaging cursor: the id of the last result of the previous page. Only when has_more was true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / erp_code
      Added value: +{
      +  "description": "The company's code in the organization's ERP, matched exactly (case aside). Use it to find the company an ERP record belongs to.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavior: paging semantics (when has_more is true, pass the last id as starting_after) and the non-obvious rule that `role` excludes the organization's own companies. It doesn't discuss rate limits or result-size cost, which is the only notable gap.

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?

Front-loads the resource and ordering before use cases, then moves to parameters, return shape, and paging — a logical progression. It is dense as one paragraph with several quoted examples, but essentially every sentence carries non-redundant information, so only minor trimming is possible.

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?

There is no output schema, so the description carries the return-value burden and does: it lists id format (cmp_12), roles, aliases, country, ERP code, and open_shipments with its meaning. Combined with paging instructions and the get_company hand-off, an agent has everything needed to call it and interpret results.

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 goes beyond it by explaining that `query` matches any spelling a company is known by on documents (linking to the aliases concept) and that `role` silently drops own companies — a filtering side effect the schema does not state. That added meaning justifies a 4 rather than a plain baseline.

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?

Names a specific resource (the organization's companies) with its concrete subtypes (suppliers, freight forwarders, customers) and ordering (newest first). It explicitly distinguishes itself from get_company ('Use get_company to read one company by id') and positions itself as the id-resolution step for search_shipments, so an agent can separate it from siblings 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?

Gives concrete trigger phrases ('who is our supplier Progum', 'which forwarders do we use') plus the downstream purpose of turning a name into the supplier/forwarder/customer id that search_shipments accepts. It also routes single-record lookups to get_company and explains the erp_code path, so when-to-use and when-to-use-something-else are both 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.

Resources