Skip to main content
Glama
imbenrabi

Financial Modeling Prep MCP Server

searchCompaniesBySymbol

Read-onlyIdempotent

Find company information and SEC filings by stock symbol. Access essential details and regulatory documents from the Financial Modeling Prep API.

Instructions

Find company information and regulatory filings using a stock symbol with the FMP SEC Filings Company Search By Symbol API. Quickly access essential company details based on stock ticker symbols.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock symbol

Implementation Reference

  • MCP tool registration and handler for 'searchCompaniesBySymbol'. Defines the tool with Zod schema (symbol: string), calls the client method, and returns JSON-serialized results.
    server.tool(
      "searchCompaniesBySymbol",
      "Find company information and regulatory filings using a stock symbol with the FMP SEC Filings Company Search By Symbol API. Quickly access essential company details based on stock ticker symbols.",
      {
        symbol: z.string().describe("Stock symbol"),
      },
      async ({ symbol }) => {
        try {
          const results = await secFilingsClient.searchCompaniesBySymbol({
            symbol,
          });
          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,
          };
        }
      }
    );
  • Client method that makes the actual HTTP GET request to the FMP API endpoint `/sec-filings-company-search/symbol` with the symbol parameter.
    async searchCompaniesBySymbol(
      params: CompanySymbolSearchParams,
      options?: {
        signal?: AbortSignal;
        context?: FMPContext;
      }
    ): Promise<CompanySearchResult[]> {
      return this.get<CompanySearchResult[]>(
        `/sec-filings-company-search/symbol`,
        {
          symbol: params.symbol,
        },
        options
      );
    }
  • Type definition for the input parameters to searchCompaniesBySymbol, containing a single required `symbol` string field.
    export interface CompanySymbolSearchParams {
      symbol: string;
    }
  • Type definition for the return value of searchCompaniesBySymbol (CompanySearchResult[]). Contains company details like symbol, name, CIK, SIC code, industry, address, and phone.
    export interface CompanySearchResult {
      symbol: string;
      name: string;
      cik: string;
      sicCode: string;
      industryTitle: string;
      businessAddress: string;
      phoneNumber: string;
    }
  • Registration function that sets up the SECFilingsClient and registers all SEC filings tools (including searchCompaniesBySymbol) on the MCP server.
    export function registerSECFilingsTools(
      server: McpServer,
      accessToken?: string
    ): void {
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds context about using the FMP SEC Filings API and quick access, which provides additional behavioral insight beyond the annotations. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no wasted words. The verb 'Find' is front-loaded, and the purpose is immediately clear. Well-structured.

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

Completeness4/5

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

The description covers the basic purpose and parameter, but lacks details on the output (e.g., what company information is returned). With no output schema, a bit more about the return value would improve completeness. However, the safe read nature mitigates this gap.

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?

The input schema has 100% description coverage for the single parameter 'symbol'. The description repeats that it uses a stock symbol, adding no new meaning beyond the schema.

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

Purpose5/5

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

The description specifies finding company information and regulatory filings using a stock symbol, which is a clear verb+resource action. It distinguishes from sibling tools like searchCompaniesByName by focusing on symbol-based search.

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

Usage Guidelines4/5

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

The description implies usage when a stock symbol is available, but does not explicitly state when to use this tool versus alternatives like searchCIK or searchSymbol. Context is clear, but exclusions are missing.

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