Skip to main content
Glama
Yahoo Finance MCP Server

Yahoo Finance MCP Server

by everdeep

get_capital_gains

Retrieve capital gains distribution history for funds and ETFs by ticker to review past payouts and support tax or investment analysis.

Instructions

Get capital gains distribution history (primarily for funds/ETFs).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ticker": "<ticker>"
    },
    "name": "get_capital_gains"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does almost none of it: no statement about history depth, frequency, whether the call is read-only, or what happens for non-fund tickers. Only the verb "Get" weakly signals a safe read.

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?

One short sentence with the scope qualifier placed where it is read first; nothing is wasted. The brevity is close to under-specification rather than excess, so it is not a 5.

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?

An output schema exists, so return values need not be described, but a no-annotation read tool should still say something about coverage (how far back, distribution frequency) and behavior for non-fund tickers. Given the trivial schema, this is minimally viable rather than complete.

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 single parameter is an undeclared ticker (0% schema coverage), but its meaning is self-evident from the name, and the "funds/ETFs" note usefully hints at the expected ticker domain. For a one-param tool this is adequate rather than rich.

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?

States a specific verb and resource ("Get capital gains distribution history") and scopes it to funds/ETFs, which distinguishes it reasonably from get_dividends. It does not explicitly contrast with the closest sibling, but the resource noun is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The parenthetical "primarily for funds/ETFs" implies when this tool applies, but no explicit when-to-use or when-not guidance is given, and the obvious alternative (get_dividends) is never named. An agent must infer that stock tickers are likely to yield nothing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.