Skip to main content
Glama
imbenrabi

Financial Modeling Prep MCP Server

getForexList

Read-onlyIdempotent

Retrieve the complete list of forex currency pairs traded globally. Use this data to analyze and track currency pair performance for informed investment decisions.

Instructions

Access a comprehensive list of all currency pairs traded on the forex market with the FMP Forex Currency Pairs API. Analyze and track the performance of currency pairs to make informed investment decisions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool registration for 'getForexList'. The handler calls forexClient.getList() which fetches /forex-list from the FMP API, returning all currency pairs as JSON.
    server.tool(
      "getForexList",
      "Access a comprehensive list of all currency pairs traded on the forex market with the FMP Forex Currency Pairs API. Analyze and track the performance of currency pairs to make informed investment decisions.",
      {},
      async () => {
        try {
          const results = await forexClient.getList();
          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,
          };
        }
    });
  • Input schema for 'getForexList' — empty object (no parameters required).
    {},
  • The getList() method on ForexClient that calls super.get('/forex-list') to fetch the list of forex currency pairs.
    async getList(options?: {
      signal?: AbortSignal;
      context?: FMPContext;
    }): Promise<ForexPair[]> {
      return super.get<ForexPair[]>("/forex-list", {}, options);
    }
  • Type definition for ForexPair — the return type of getForexList, containing symbol, fromCurrency, toCurrency, fromName, toName.
    export interface ForexPair {
      symbol: string;
      fromCurrency: string;
      toCurrency: string;
      fromName: string;
      toName: string;
    }
  • Registration of the forex module adapter that loads registerForexTools (which includes getForexList) via toolception's module system.
      forex: createModuleAdapter('forex', registerForexTools),
      statements: createModuleAdapter('statements', registerStatementsTools),
      'form-13f': createModuleAdapter('form-13f', registerForm13FTools),
      indexes: createModuleAdapter('indexes', registerIndexesTools),
      'insider-trades': createModuleAdapter('insider-trades', registerInsiderTradesTools),
    };
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, and the description is consistent with a read-only list retrieval. However, the description adds no additional behavioral context beyond what annotations provide (e.g., rate limits, result size, or refresh frequency). With annotations covering safety, 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 is two sentences and fairly concise. The first sentence clearly states the core purpose. The second sentence ('Analyze and track...') is slightly promotional and could be omitted, but it does not significantly bloat the description. Still front-loaded and readable.

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

Completeness5/5

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

Given the tool has no parameters, no output schema, and a simple purpose (list all forex currency pairs), the description provides sufficient context. It tells the user exactly what the tool returns. No missing information is needed for correct invocation.

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

Parameters4/5

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

The tool has zero parameters and the schema covers 100% of the interface. Per scoring rules, the baseline is 4. The description does not add parameter semantics because there are none, but it implicitly confirms no input is needed. No further explanation is required.

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 clearly states the tool returns a 'comprehensive list of all currency pairs traded on the forex market.' It specifies the verb ('access') and the resource ('list of all currency pairs'), and implicitly differentiates from sibling tools that retrieve quotes or historical data (e.g., getForexQuote, getForexHistoricalFullChart).

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 provides no guidance on when to use this tool versus alternatives. It does not mention when not to use it, prerequisites, or any exclusions. For a simple list tool, some context like 'Use this to get the full set of available currency symbols before querying specific pairs' would improve clarity.

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