Skip to main content
Glama
ClawyPro

Clawy MCP Server

by ClawyPro

alpha_vantage_query

Query financial market data including stock time series, forex rates, crypto prices, and economic indicators from Alpha Vantage.

Instructions

Query financial market data from Alpha Vantage. Stock time series, forex rates, crypto prices, and economic indicators.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
functionYesAPI function (e.g., TIME_SERIES_DAILY, FX_DAILY, DIGITAL_CURRENCY_DAILY, REAL_GDP)
symbolNoStock/crypto symbol (e.g., AAPL, BTC)
from_currencyNoFrom currency for forex (e.g., USD)
to_currencyNoTo currency for forex (e.g., KRW)
intervalNoInterval for intraday (1min, 5min, 15min, 30min, 60min)
outputsizeNocompact=100 points, full=all (default compact)

Implementation Reference

  • Schema definition for the alpha_vantage_query tool.
    export const alphaVantageTools: ToolDef[] = [
      {
        name: "alpha_vantage_query",
        description: "Query financial market data from Alpha Vantage. Stock time series, forex rates, crypto prices, and economic indicators.",
        inputSchema: z.object({
          function: z.string().describe("API function (e.g., TIME_SERIES_DAILY, FX_DAILY, DIGITAL_CURRENCY_DAILY, REAL_GDP)"),
          symbol: z.string().optional().describe("Stock/crypto symbol (e.g., AAPL, BTC)"),
          from_currency: z.string().optional().describe("From currency for forex (e.g., USD)"),
          to_currency: z.string().optional().describe("To currency for forex (e.g., KRW)"),
          interval: z.string().optional().describe("Interval for intraday (1min, 5min, 15min, 30min, 60min)"),
          outputsize: z.enum(["compact", "full"]).optional().describe("compact=100 points, full=all (default compact)"),
        }),
        endpoint: "/v1/alpha-vantage/query",
      },
  • Generic MCP tool registration logic that handles calling the API endpoint for alpha_vantage_query.
    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?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states this is a query operation (implying read-only), but doesn't mention authentication requirements, rate limits, error handling, response formats, or any constraints like data freshness or availability. For a financial API tool with 6 parameters, this leaves significant behavioral gaps.

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?

The description is extremely concise - just two sentences that efficiently communicate the tool's purpose and scope. The first sentence states the core function, and the second enumerates the data categories without unnecessary elaboration. Every word earns its place, and the information is front-loaded appropriately.

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?

For a financial data query tool with 6 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the tool returns, how results are structured, any limitations or constraints, or how this tool differs from similar financial data tools in the server. The description provides only basic purpose information without the contextual details needed for effective tool selection and use.

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 schema description coverage is 100%, so all parameters are documented in the schema. The description adds minimal value beyond the schema - it mentions the categories of data (stock, forex, crypto, economic indicators) which loosely maps to parameter usage, but doesn't provide additional semantic context about how parameters interact or when specific combinations are needed. The baseline of 3 is appropriate given the comprehensive schema documentation.

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: 'Query financial market data from Alpha Vantage' with specific examples of data types (stock time series, forex rates, crypto prices, economic indicators). It uses a specific verb ('query') and identifies the resource ('financial market data'), but doesn't distinguish this tool from sibling tools like 'finnhub_query' or 'fmp_financial' which appear to serve similar financial data domains.

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. While it lists data categories (stock, forex, crypto, economic indicators), it doesn't specify when to choose this over sibling tools like 'finnhub_query' or 'fmp_financial', nor does it mention any prerequisites, limitations, or typical use cases beyond the broad category of financial data querying.

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