Skip to main content
Glama
ClawyPro

Clawy MCP Server

by ClawyPro

fmp_quote

Retrieve real-time and historical stock quotes for US and global markets using ticker symbols. Access current prices or historical data with date ranges.

Instructions

Get real-time and historical stock quotes from Financial Modeling Prep. Covers US and global markets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock ticker symbol (e.g., AAPL, MSFT, 005930.KS)
historicalNoIf true, return historical price data
fromNoHistorical start date (YYYY-MM-DD)
toNoHistorical end date (YYYY-MM-DD)

Implementation Reference

  • src/tools/fmp.ts:5-15 (registration)
    The fmp_quote tool definition, which specifies the name, input schema, and API endpoint.
    {
      name: "fmp_quote",
      description: "Get real-time and historical stock quotes from Financial Modeling Prep. Covers US and global markets.",
      inputSchema: z.object({
        symbol: z.string().describe("Stock ticker symbol (e.g., AAPL, MSFT, 005930.KS)"),
        historical: z.boolean().optional().describe("If true, return historical price data"),
        from: z.string().optional().describe("Historical start date (YYYY-MM-DD)"),
        to: z.string().optional().describe("Historical end date (YYYY-MM-DD)"),
      }),
      endpoint: "/v1/fmp/quote",
    },
  • The dynamic registration and handler logic for all tools, including fmp_quote. It routes the tool call to the gatewayRequest function based on the endpoint defined in the tool configuration.
    // Register all tools
    for (const tool of allTools) {
      server.tool(
        tool.name,
        tool.description,
        tool.inputSchema.shape,
        async (params) => {
          const method = tool.method || "POST";
          const result = await gatewayRequest(method, tool.endpoint, params as Record<string, unknown>);
    
          if (result.error) {
            return {
              content: [{ type: "text" as const, text: `Error (${result.status}): ${result.error}` }],
              isError: true,
            };
          }
    
          const text = typeof result.data === "string"
            ? result.data
            : JSON.stringify(result.data, null, 2);
    
          return {
            content: [{ type: "text" as const, text }],
          };
        },
      );
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'real-time and historical' data but doesn't cover critical aspects like rate limits, authentication needs, data freshness, error handling, or response format. For a financial data tool with zero annotation coverage, this leaves the agent with insufficient operational context.

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 concise and front-loaded in a single sentence, efficiently stating the core functionality. It avoids redundancy and wastes no words, though it could benefit from a second sentence for usage context.

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

Completeness2/5

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

Given the complexity of financial data retrieval, lack of annotations, and no output schema, the description is incomplete. It doesn't address behavioral traits, usage guidelines, or output expectations, leaving the agent under-informed for effective tool invocation.

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, so the schema fully documents all parameters. The description adds no parameter-specific information beyond implying historical data availability. This meets the baseline of 3, as the schema does the heavy lifting, but the description doesn't enhance parameter understanding.

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's purpose: 'Get real-time and historical stock quotes from Financial Modeling Prep. Covers US and global markets.' It specifies the action ('Get'), resource ('stock quotes'), and data source ('Financial Modeling Prep'), with market scope. However, it doesn't explicitly differentiate from sibling tools like 'finnhub_query' or 'alpha_vantage_query' that might offer similar financial data.

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 mentions coverage of 'US and global markets' but doesn't specify contexts, prerequisites, or exclusions. With sibling tools like 'finnhub_query' and 'alpha_vantage_query' present, the lack of comparative guidance is a significant gap.

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/ClawyPro/clawy-mcp-server'

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