Skip to main content
Glama
imbenrabi

Financial Modeling Prep MCP Server

getCIKList

Read-onlyIdempotent

Get CIK numbers for SEC-registered entities. Supports regulatory compliance, financial transactions, and investment research. Optionally limit the number of results.

Instructions

Access a comprehensive database of CIK (Central Index Key) numbers for SEC-registered entities with the FMP CIK List API. This endpoint is essential for businesses, financial professionals, and individuals who need quick access to CIK numbers for regulatory compliance, financial transactions, and investment research.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOptional limit on number of results (default: 1000)

Implementation Reference

  • The MCP tool registration for 'getCIKList' containing the handler function that calls directoryClient.getCIKList(limit) and returns results as JSON.
    server.tool(
      "getCIKList",
      "Access a comprehensive database of CIK (Central Index Key) numbers for SEC-registered entities with the FMP CIK List API. This endpoint is essential for businesses, financial professionals, and individuals who need quick access to CIK numbers for regulatory compliance, financial transactions, and investment research.",
      {
        limit: z
          .number()
          .optional()
          .describe("Optional limit on number of results (default: 1000)"),
      },
      async ({ limit }) => {
        try {
          const results = await directoryClient.getCIKList(limit);
          return {
            content: [{ type: "text", text: JSON.stringify(results, null, 2) }],
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text",
                text: `Error: ${
                  error instanceof Error ? error.message : String(error)
                }`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • The TypeScript interface for CIKEntry, the return type of the getCIKList API call, with fields: cik (string) and companyName (string).
    export interface CIKEntry {
      cik: string;
      companyName: string;
    }
  • Registration of the directory module (containing getCIKList) via toolception adapter, mapping the 'directory' module to registerDirectoryTools.
    directory: createModuleAdapter('directory', registerDirectoryTools),
  • The DirectoryClient.getCIKList method that calls the FMP API endpoint '/cik-list' with an optional limit parameter, returning Promise<CIKEntry[]>.
    async getCIKList(
      limit?: number,
      options?: {
        signal?: AbortSignal;
        context?: FMPContext;
      }
    ): Promise<CIKEntry[]> {
      return super.get<CIKEntry[]>("/cik-list", { limit }, options);
    }
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=true. The description adds no new behavioral context beyond labeling it a 'comprehensive database'. With annotations covering the safety profile, a score of 3 is appropriate.

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?

The description contains two sentences: one stating the purpose and one touting importance. It is fairly concise, but the second sentence is somewhat marketing-heavy and could be omitted or condensed without loss of functional information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one optional parameter, no output schema), the description provides the core purpose. However, it does not mention output format, authentication requirements, or how it differs from similar sibling tools like 'searchCIK'. This leaves some gaps but is minimally adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the parameter 'limit' is fully documented in the schema. The description does not add any additional meaning or context about the parameter, resulting in a baseline score of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool provides CIK numbers for SEC-registered entities. The verb 'access' is vague, but the context of a database lookup is clear. However, it does not distinguish from the sibling tool 'searchCIK', which likely serves a similar purpose with filtering.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions it is 'essential' for those needing CIK numbers but provides no guidance on when to use this tool versus alternatives like 'searchCIK'. There are no explicit conditions, exclusions, or comparisons to siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/imbenrabi/Financial-Modeling-Prep-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server