List suppliers, forwarders and customers
list_companiesThe 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
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Only suppliers, forwarders or customers. Omit for all companies. | |
| limit | No | How many results to return, 1 to 100. | |
| query | No | Part of a company name or of one of its other spellings. | |
| erp_code | No | The company's code in the organization's ERP, matched exactly (case aside). Use it to find the company an ERP record belongs to. | |
| starting_after | No | Paging cursor: the id of the last result of the previous page. Only when has_more was true. |