Skip to main content
Glama
drasticstatic

robinhood-mcp

robinhood_get_dividends

Retrieve all dividend payments received from your Robinhood portfolio, including amount, payable date, record date, and instrument details for portfolio analysis.

Instructions

Get all dividend payments received.

Returns list of dividend payments with amount, payable date, record date, and instrument details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Core implementation of get_dividends() that calls rh.account.get_dividends via _safe_call and returns the result list.
    def get_dividends() -> list[dict[str, Any]]:
        """Get all dividend payments received.
    
        Returns:
            List of dividend payments with amount, payable_date, record_date, etc.
        """
        result = _safe_call(rh.account.get_dividends)
        return result if isinstance(result, list) else []
  • FastMCP tool registration for robinhood_get_dividends - decorated with @mcp.tool(), calls get_dividends() from tools module.
    @mcp.tool()
    def robinhood_get_dividends() -> list:
        """Get all dividend payments received.
    
        Returns list of dividend payments with amount, payable date,
        record date, and instrument details.
        """
        _ensure_logged_in()
        return get_dividends()
  • Helper _safe_call() used to invoke robin_stocks functions with error handling.
    def _safe_call(func: Callable[..., Any], *args, **kwargs) -> Any:
        """Safely call a robin_stocks function with error handling.
    
        Args:
            func: The robin_stocks function to call.
            *args: Positional arguments.
            **kwargs: Keyword arguments.
    
        Returns:
            The function result.
    
        Raises:
            RobinhoodError: If the call fails.
        """
        try:
            result = func(*args, **kwargs)
            if result is None:
                raise RobinhoodError("API returned None - you may need to login first")
            return result
        except RobinhoodError:
            raise
        except Exception as e:
            raise RobinhoodError(f"API call failed: {e}") from e
  • Import of get_dividends from tools module into server.py.
    from .tools import (
        RobinhoodError,
        get_dividends,
        get_earnings,
        get_fundamentals,
        get_historicals,
        get_news,
        get_options_positions,
        get_portfolio,
        get_position,
        get_positions,
        get_quote,
        get_ratings,
        get_watchlist,
        search_symbols,
    )
  • get_dividends imported in the import statement of server.py.
    get_dividends,
Behavior2/5

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

No annotations provided, so description must carry full burden. It states it returns dividend payments, implying a read operation, but lacks details like pagination, time range, or whether it requires specific account permissions.

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?

Two concise sentences, no extraneous text. Every word adds value.

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?

With no parameters and an existing output schema, the description is adequate but lacks depth. It doesn't mention if results are filterable or if there's a limit, which could be important for an agent managing large portfolios.

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?

No parameters; schema coverage is 100%. Per rules, baseline is 4. Description adds no parameter info but none is needed.

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?

Description clearly states 'Get all dividend payments received' and lists returned fields (amount, payable date, record date, instrument details). It is specific and distinct from sibling tools like robinhood_get_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 (e.g., robinhood_get_portfolio for positions, or robinhood_get_historicals for price history). No context on prerequisites or limitations.

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