Skip to main content
Glama
drasticstatic

robinhood-mcp

robinhood_get_fundamentals

Get fundamental data for a stock by providing its ticker symbol, enabling key financial metrics analysis for portfolio research.

Instructions

Get fundamental data for a stock.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock ticker symbol

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for robinhood_get_fundamentals. Decorated with @mcp.tool(), it validates login via _ensure_logged_in() then delegates to get_fundamentals(symbol) from tools.py.
    @mcp.tool()
    def robinhood_get_fundamentals(symbol: str) -> dict:
        """Get fundamental data for a stock.
    
        Args:
            symbol: Stock ticker symbol
    
        Returns fundamentals including P/E ratio, market cap,
        dividend yield, 52-week high/low, and more.
        """
        _ensure_logged_in()
        return get_fundamentals(symbol)
  • Core implementation of get_fundamentals. Normalizes the symbol, calls robin_stocks.robinhood.stocks.get_fundamentals via _safe_call, and returns the first result if it's a list, otherwise raises RobinhoodError.
    def get_fundamentals(symbol: str) -> dict[str, Any]:
        """Get fundamental data for a stock.
    
        Args:
            symbol: Stock ticker symbol.
    
        Returns:
            Fundamentals including pe_ratio, market_cap, dividend_yield, etc.
        """
        symbol = _normalize_symbol(symbol)
        result = _safe_call(rh.stocks.get_fundamentals, symbol)
    
        if isinstance(result, list) and len(result) > 0:
            return result[0]
        raise RobinhoodError(f"No fundamentals found for symbol: {symbol}")
  • Tool registration via @mcp.tool() decorator on the handler function robinhood_get_fundamentals.
    @mcp.tool()
    def robinhood_get_fundamentals(symbol: str) -> dict:
  • Type signature: symbol: str -> dict (typed via the handler's signature).
    @mcp.tool()
Behavior2/5

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

No annotations provided; description lacks behavioral details such as read-only nature, rate limits, or authentication needs. For a data retrieval tool, more transparency is expected.

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

Conciseness3/5

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

The description is a single sentence—efficient but under-specified. It lacks structure or additional detail that could aid the agent.

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?

With an output schema present, the description should at least hint at what fundamental data includes (e.g., metrics). No annotations mean the description must provide more context, which it fails to do.

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 the single parameter 'symbol' already described in the schema. The description adds no additional meaning beyond the schema.

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 gets fundamental data for a stock. The verb 'get' and resource 'fundamental data' are specific, but 'fundamental data' is vague and does not distinguish from siblings like ratings or earnings.

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?

No guidance on when to use this tool versus alternatives like robinhood_get_ratings or robinhood_get_earnings. No when-not-to-use or prerequisite information.

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/drasticstatic/robinhood-mcp'

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