get_company
Retrieve comprehensive Swiss company details using its ZEFIX internal ID. Find the ID through company search to access official registration information.
Instructions
Get full details of a Swiss company by its ZEFIX internal ID (ehraid). Use search_companies first to find the ehraid — it is returned in company search results.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ehraid | Yes | Company internal ZEFIX ID (ehraid integer, e.g. 119283). Returned by search_companies. |
Implementation Reference
- src/modules/companies.ts:86-92 (handler)Handler logic for "get_company" tool that fetches company details using the ehraid.
case "get_company": { // ZEFIX firm/{id}.json uses the internal ehraid integer (not CHE uid) const ehraid = args.ehraid as number; const url = `${BASE}/firm/${ehraid}.json`; const data = await fetchJSON<unknown>(url); return JSON.stringify(data, null, 2); } - src/modules/companies.ts:20-30 (schema)Registration and input schema definition for "get_company" tool.
{ name: "get_company", description: "Get full details of a Swiss company by its ZEFIX internal ID (ehraid). Use search_companies first to find the ehraid — it is returned in company search results.", inputSchema: { type: "object", required: ["ehraid"], properties: { ehraid: { type: "number", description: "Company internal ZEFIX ID (ehraid integer, e.g. 119283). Returned by search_companies." }, }, }, },