search_sec_companies
Find SEC-registered companies by name to retrieve CIK numbers, company names, and filing counts for accessing SEC filings.
Instructions
Search for companies registered with the SEC by name. Returns CIK numbers, company names, and filing counts. Useful for finding a company's CIK before searching their filings.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | Yes | Company name to search for (at least 2 characters) |
Implementation Reference
- src/tools/sec.ts:158-198 (handler)Handler implementation and registration for "search_sec_companies" tool.
server.registerTool( "search_sec_companies", { title: "Search SEC Companies", description: "Search for companies registered with the SEC by name. Returns CIK numbers, " + "company names, and filing counts. Useful for finding a company's CIK before " + "searching their filings.", inputSchema: { search: z .string() .min(2) .describe("Company name to search for (at least 2 characters)"), }, }, async ({ search }) => { const res = await apiGet<SecCompaniesResponse>("/api/v1/sec/companies", { search, }); if (!res.ok) { return { content: [ { type: "text" as const, text: `API error (${res.status}): ${JSON.stringify(res.data)}`, }, ], isError: true, }; } const { count, data } = res.data; const summary = `Found ${count} compan${count === 1 ? "y" : "ies"}.`; const json = JSON.stringify(data, null, 2); return { content: [{ type: "text" as const, text: `${summary}\n\n${json}` }], }; }, );