Skip to main content
Glama
imbenrabi

Financial Modeling Prep MCP Server

getHolderIndustryBreakdown

Read-onlyIdempotent

Analyze how institutional investors distribute holdings across industries and sectors. Input CIK, year, and quarter to track changes in investment strategies over time.

Instructions

The Holders Industry Breakdown API provides an overview of the sectors and industries that institutional holders are investing in. This API helps analyze how institutional investors distribute their holdings across different industries and track changes in their investment strategies over time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cikYesCIK number
yearYesYear of filing
quarterYesQuarter of filing (1-4)

Implementation Reference

  • Server.tool registration and handler for getHolderIndustryBreakdown. Calls form13fClient.getHolderIndustryBreakdown(cik, year, quarter) and returns JSON-stringified results.
    server.tool(
      "getHolderIndustryBreakdown",
      "The Holders Industry Breakdown API provides an overview of the sectors and industries that institutional holders are investing in. This API helps analyze how institutional investors distribute their holdings across different industries and track changes in their investment strategies over time.",
      {
        cik: z.string().describe("CIK number"),
        year: z.union([z.string(), z.number()]).describe("Year of filing"),
        quarter: z
          .union([z.string(), z.number()])
          .describe("Quarter of filing (1-4)"),
      },
      async ({ cik, year, quarter }) => {
        try {
          const results = await form13fClient.getHolderIndustryBreakdown(
            cik,
            year,
            quarter
          );
          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,
          };
        }
      }
  • HolderIndustryBreakdown interface defining the response shape: date, cik, investorName, industryTitle, weight, lastWeight, changeInWeight, changeInWeightPercentage, performance, performancePercentage, lastPerformance, changeInPerformance.
    export interface HolderIndustryBreakdown {
      date: string;
      cik: string;
      investorName: string;
      industryTitle: string;
      weight: number;
      lastWeight: number;
      changeInWeight: number;
      changeInWeightPercentage: number;
      performance: number;
      performancePercentage: number;
      lastPerformance: number;
      changeInPerformance: number;
    }
  • Server.tool call registering 'getHolderIndustryBreakdown' with zod schema (cik, year, quarter) and the async handler. The registration is within the registerForm13FTools function.
    server.tool(
      "getHolderIndustryBreakdown",
      "The Holders Industry Breakdown API provides an overview of the sectors and industries that institutional holders are investing in. This API helps analyze how institutional investors distribute their holdings across different industries and track changes in their investment strategies over time.",
      {
        cik: z.string().describe("CIK number"),
        year: z.union([z.string(), z.number()]).describe("Year of filing"),
        quarter: z
          .union([z.string(), z.number()])
          .describe("Quarter of filing (1-4)"),
      },
      async ({ cik, year, quarter }) => {
        try {
          const results = await form13fClient.getHolderIndustryBreakdown(
            cik,
            year,
            quarter
          );
          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,
          };
        }
      }
    );
  • API client method getHolderIndustryBreakdown that calls GET /institutional-ownership/holder-industry-breakdown with cik, year, quarter parameters, returning Promise<HolderIndustryBreakdown[]>.
    async getHolderIndustryBreakdown(
      cik: string,
      year: string | number,
      quarter: string | number,
      options?: {
        signal?: AbortSignal;
        context?: FMPContext;
      }
    ): Promise<HolderIndustryBreakdown[]> {
      return super.get<HolderIndustryBreakdown[]>(
        "/institutional-ownership/holder-industry-breakdown",
        {
          cik,
          year,
          quarter,
        },
        options
      );
    }
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint. The description adds context about tracking changes over time, which is not in annotations. However, it does not disclose any behavioral traits like data aggregation, pagination, or rate limits. It provides modest added value beyond annotations.

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 is two sentences, concise and front-loaded. It avoids fluff and clearly states the tool's purpose. Minor inefficiency: 'The Holders Industry Breakdown API provides' could be shortened to 'Provides'.

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 simple three-parameter input with full schema descriptions and annotations, the description is adequate for basic understanding. However, it lacks usage guidelines and differentiation from siblings, which would improve completeness for an agent selecting among many similar tools.

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%, with all parameters (cik, year, quarter) having descriptions. The description does not add any additional parameter meaning beyond what the schema already provides. Therefore, the baseline of 3 is appropriate.

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 an overview of sectors and industries that institutional holders invest in. It mentions analyzing distribution and tracking changes. However, it could be more specific about what data is returned (e.g., for a given holder by CIK and time period). It is not a tautology and distinguishes from some siblings like getFundSectorWeighting.

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 does not provide any guidance on when to use this tool versus alternatives like getHolderPerformanceSummary or getFundSectorWeighting. It only describes the tool's functionality without context on when it is appropriate or not.

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