Skip to main content
Glama
benethos-hub

Yahoo Finance MCP Server

by benethos-hub

Shares outstanding

get_shares
Read-only

Retrieve the shares-outstanding history for a Yahoo ticker or ISIN, returning dated data points. Limit results or set start/end dates to analyze older series beyond 18 months.

Instructions

Get the shares-outstanding history for a Yahoo symbol.

Each point is a date and the reported shares outstanding. Only the most recent limit points are returned. Without start the series covers the last 18 months, so pass one for anything older.

Input Schema

NameRequiredDescriptionDefault
endNoEnd date 'YYYY-MM-DD' to bound the series (optional), after 'start'.
limitNoMaximum number of (most recent) data points to return.
startNoStart date 'YYYY-MM-DD'. Without it the series covers the last 18 months only.
symbolYesA Yahoo ticker or an ISIN, e.g. 'AAPL', 'SAP.DE' or 'US0378331005'. For a company name, use 'search' first.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.8.6
    • removedInput schema / properties / end / title
      Removed value: -"End"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / start / title
      Removed value: -"Start"
    • removedInput schema / properties / symbol / title
      Removed value: -"Symbol"
    • removedInput schema / title
      Removed value: -"get_sharesArguments"
    • removedOutput schema / title
      Removed value: -"get_sharesDictOutput"
  2. Changed2 schema fields changedv0.7.0
    • changedInput schema / properties / end / description
      Previous value: -"End date 'YYYY-MM-DD' to bound the series (optional)."New value: +"End date 'YYYY-MM-DD' to bound the series (optional), after 'start'."
    • addedInput schema / properties / symbol / maxLength
      Added value: +32
  3. Changed1 schema field changedv0.6.0
    • changedInput schema / properties / start / description
      Previous value: -"Start date 'YYYY-MM-DD' to bound the series (optional)."New value: +"Start date 'YYYY-MM-DD'. Without it the series covers the last 18 months only."
  4. Changed1 schema field changedv0.4.0
    • changedInput schema / properties / symbol / description
      Previous value: -"A native Yahoo Finance ticker symbol, e.g. 'AAPL', 'MSFT', 'SAP.DE', or 'BMW.DE'. This is NOT an ISIN, a WKN, or a company name, and must NOT be built by appending an exchange suffix to an ISIN (e.g. 'US0378331005.DE' is invalid). If you only have a name or ISIN, call the 'search' tool first and pass the 'symbol' value it returns."New value: +"A Yahoo ticker or an ISIN, e.g. 'AAPL', 'SAP.DE' or 'US0378331005'. For a company name, use 'search' first."
  5. First observedv0.2.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description adds real behavioral context: the return shape (date + shares outstanding), that only the most recent `limit` points come back, and the 18-month default window. It doesn't mention pagination beyond limit or rate limits, so it stops short of a 5.

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?

Three tight sentences with zero waste: purpose first, then return shape, then the limiting constraint and its remedy. The most actionable caveat (18-month window) is front-loaded enough to be caught before calling.

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

Completeness4/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 needn't explain return values in depth, and it covers purpose, windowing, and limit behavior adequately. The only gap is the absence of routing guidance relative to sibling history/fundamental tools, which is minor given the clear resource name.

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 description coverage is 100%, so the schema already documents every parameter. The description's notes on limit being most-recent-only and start defaulting to 18 months largely restate what the schema says, adding little new meaning. Baseline 3 applies.

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?

States a specific verb and resource — 'Get the shares-outstanding history for a Yahoo symbol' — which is distinct from siblings like get_financials and get_holders. An agent can tell at a glance this returns a time series of share counts, not a snapshot.

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 description gives conditional guidance for the start parameter ('pass one for anything older' than 18 months), which is useful. However, it never names an alternative tool or says when to prefer get_shares over get_financials/get_holders, so usage is implied rather than stated.

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