Skip to main content
Glama
lkcair

yfinance-ai MCP server

by lkcair

get_ttm_financials

Read-onlyIdempotent

Fetches trailing-twelve-month income statement and cash flow data for a stock ticker, returning revenue, profit, EBITDA, EPS, and cash flow figures.

Instructions

Get trailing-twelve-month (TTM) income statement and cash flow.

Args: ticker: Stock ticker symbol

Returns: Key TTM lines: revenue, gross profit, operating income, net income, EBITDA, EPS, cash flows

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
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description adds nothing about data freshness, source, or rate limits; its only extra content is a summary of returned fields, which the output schema already provides.

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?

Front-loaded purpose sentence followed by compact Args/Returns blocks; no filler. The Returns block is arguably redundant given the output schema, but it is short and readable.

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?

For a single-parameter read tool with an output schema and full annotation coverage, the definition is callable, but the biggest real gap — how this differs from get_income_statement and get_cash_flow — is left entirely unaddressed in a very crowded sibling namespace.

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?

One parameter at 0% schema description coverage, so the description must compensate. It labels ticker as 'Stock ticker symbol', which is a marginal clarification, but adds no format rules (exchange suffix, case, symbol lookup via search_ticker/validate_ticker).

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 names a specific verb and resource combination — trailing-twelve-month income statement plus cash flow — which is materially more precise than the bare tool name. It does not, however, distinguish itself from close siblings like get_income_statement, get_cash_flow, or get_financial_summary, which an agent must resolve on its own.

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?

There is no when-to-use guidance, no exclusions, and no mention of the sibling tools that return the same underlying statements on a different period basis. The agent must infer from the word 'TTM' alone that this is the period-aggregated alternative.

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