Look up a company
lookup_companyLook up a company by legal name, or check an EU VAT id. When tax_id is set, VIES is the only source and the row has vies_valid true or false. error vies_unavailable means VIES did not answer and the call is not charged. error bad_tax_id means the number is not an EU VAT id and the call is not charged. Without tax_id, query searches GLEIF by legal name. An empty companies list means no LEI record and still costs 0.05 credit. error gleif_unavailable is not charged. No sample company is ever returned. Key: https://firm.bestsmartgoods.com/signup
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": "lookup_company"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum matches to return. Default 5. Values outside 1 to 20 are clamped. | |
| query | No | Legal name for a GLEIF search. Required when tax_id is omitted. Ignored when tax_id is set. | |
| tax_id | No | EU VAT number. When set, the answer is only the VIES check. A leading country code is used when present. | |
| country | No | Two-letter ISO code, for example HU. Narrows a name search. Used as the VAT country when tax_id has no leading country code. Defaults to HU for a tax id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companies | Yes | Matches, already limited. Empty when nothing matched. | |
| credits_remaining | Yes | Balance after this successful call. |