Skip to main content
Glama
JerBouma

Finance Toolkit

profitability

Read-onlyIdempotent

Fetch pre-calculated profit margins and returns (gross margin, ROE, ROIC) for tickers, eliminating the need for raw financial statement analysis.

Instructions

Pre-computed profitability ratios (gross margin, operating margin, net margin, ROE, ROA, ROIC, ROCE). Requires tickers='AAPL' — use comma-separated values for multiple tickers. Use instead of raw financial statements. Supports quarterly=true and start_date/end_date.

Input Schema

NameRequiredDescriptionDefault
lagNoNumber of periods to lag when computing growth rates.
limitNoThe rows to return, like head and tail: 5 for the first five, -5 for the last five (the most recent of a time series). A table with its periods as columns (financial statements, ratios) keeps its first or last periods instead. For ETF holdings the largest (or, negative, the smallest) by weight, and for a list (e.g. news or a screener) its length.
growthNoReturn period-over-period growth rates instead of absolute values.
tickersNoComma-separated ticker symbols, e.g. 'AAPL,MSFT,GOOGL'.
end_dateNoEnd of the date range in YYYY-MM-DD format.2026-10-27
trailingNoTrailing window size in number of periods. Sums the raw values over the trailing N periods (e.g. trailing=4 on quarterly data gives a trailing-4-quarter / TTM-style sum) instead of returning one value per period.
indicatorYesName of the specific metric to calculate, one of the listed values. Required — search_metrics finds the indicator (and its tool) for a metric by name.
quarterlyNoReturn quarterly data instead of annual when True.
start_dateNoStart of the date range in YYYY-MM-DD format.2021-10-28
standardizeNoReturn the Z-Score (standard score) instead of the raw values, i.e. how many standard deviations each value is from the mean of its own series. When combined with growth=True, the growth values are standardized instead of the raw values.
show_columnsNoComma-separated names to filter the output. For historical data use the key names visible in any response record (e.g. 'Close,Volume,Return'). For financial statements use the 'metric' field values from the response (e.g. 'Revenue,Net Income,EBITDA'). Call the tool once without this parameter to see all available names, then repeat with show_columns to reduce response size and token usage.
benchmark_tickerNoTicker used as the market benchmark, e.g. 'SPY' or '^GSPC'.SPY

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.3.0
    • removedInput schema / properties / dividend_adjusted
      Removed value: -{
      -  "default": true,
      -  "description": "Whether to adjust the net operating profit after taxes with the dividends paid.",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-10-14"New value: +"2026-10-27"
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-10-15"New value: +"2021-10-28"
  2. Changed22 schema fields changedv2.2.3
    • removedInput schema / properties / benchmark_ticker / title
      Removed value: -"Benchmark Ticker"
    • changedInput schema / properties / dividend_adjusted / description
      Previous value: -"Value for dividend_adjusted."New value: +"Whether to adjust the net operating profit after taxes with the dividends paid."
    • removedInput schema / properties / dividend_adjusted / title
      Removed value: -"Dividend Adjusted"
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-10-02"New value: +"2026-10-14"
    • removedInput schema / properties / end_date / title
      Removed value: -"End Date"
    • removedInput schema / properties / growth / title
      Removed value: -"Growth"
    • changedInput schema / properties / indicator / description
      Previous value: -"Name of the specific metric to calculate, e.g. 'get_asset_turnover_ratio'. Required — omitting it returns the list of available indicators."New value: +"Name of the specific metric to calculate, one of the listed values. Required — search_metrics finds the indicator (and its tool) for a metric by name."
    • removedInput schema / properties / indicator / title
      Removed value: -"Indicator"
    • addedInput schema / properties / lag / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "items": {
      +      "type": "integer"
      +    },
      +    "type": "array"
      +  }
      +]
    • removedInput schema / properties / lag / title
      Removed value: -"Lag"
    • removedInput schema / properties / lag / type
      Removed value: -"integer"
    • addedInput schema / properties / limit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The rows to return, like head and tail: 5 for the first five, -5 for the last five (the most recent of a time series). A table with its periods as columns (financial statements, ratios) keeps its first or last periods instead. For ETF holdings the largest (or, negative, the smallest) by weight, and for a list (e.g. news or a screener) its length."
      +}
    • removedInput schema / properties / quarterly / title
      Removed value: -"Quarterly"
    • removedInput schema / properties / show_columns / title
      Removed value: -"Show Columns"
    • removedInput schema / properties / standardize / title
      Removed value: -"Standardize"
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-10-03"New value: +"2021-10-15"
    • removedInput schema / properties / start_date / title
      Removed value: -"Start Date"
    • addedInput schema / properties / tickers / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • removedInput schema / properties / tickers / title
      Removed value: -"Tickers"
    • removedInput schema / properties / tickers / type
      Removed value: -"string"
    • removedInput schema / properties / trailing / title
      Removed value: -"Trailing"
    • removedInput schema / title
      Removed value: -"profitabilityArguments"
  3. Changed2 schema fields changedv2.2.1
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-08-19"New value: +"2026-10-02"
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-08-20"New value: +"2021-10-03"
  4. Changed3 schema fields changedv2.2.0
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-07-14"New value: +"2026-08-19"
    • changedInput schema / properties / indicator / enum
      Previous value: -[
      -  "get_gross_margin",
      -  "get_operating_margin",
      -  "get_net_profit_margin",
      -  "get_interest_coverage_ratio",
      -  "get_income_before_tax_profit_margin",
      -  "get_effective_tax_rate",
      -  "get_return_on_assets",
      -  "get_return_on_equity",
      -  "get_return_on_invested_capital",
      -  "get_return_on_capital_employed",
      -  "get_return_on_tangible_assets",
      -  "get_income_quality_ratio",
      -  "get_net_income_per_ebt",
      -  "get_free_cash_flow_operating_cash_flow_ratio",
      -  "get_EBT_to_EBIT",
      -  "get_EBIT_to_revenue",
      -  "get_cash_tax_rate",
      -  "get_tax_rate_divergence"
      -]New value: +[
      +  "get_gross_margin",
      +  "get_operating_margin",
      +  "get_net_profit_margin",
      +  "get_ebitda_margin",
      +  "get_free_cash_flow_margin",
      +  "get_interest_coverage_ratio",
      +  "get_income_before_tax_profit_margin",
      +  "get_effective_tax_rate",
      +  "get_return_on_assets",
      +  "get_cash_return_on_assets",
      +  "get_return_on_equity",
      +  "get_return_on_invested_capital",
      +  "get_return_on_capital_employed",
      +  "get_return_on_tangible_assets",
      +  "get_income_quality_ratio",
      +  "get_net_income_per_ebt",
      +  "get_free_cash_flow_operating_cash_flow_ratio",
      +  "get_EBT_to_EBIT",
      +  "get_EBIT_to_revenue",
      +  "get_cash_tax_rate",
      +  "get_tax_rate_divergence",
      +  "get_interest_burden_ratio",
      +  "get_tax_burden_ratio"
      +]
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-07-15"New value: +"2021-08-20"
  5. Changed5 schema fields changed
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-07-09"New value: +"2026-07-14"
    • changedInput schema / properties / indicator / enum
      Previous value: -[
      -  "get_gross_margin",
      -  "get_operating_margin",
      -  "get_net_profit_margin",
      -  "get_interest_coverage_ratio",
      -  "get_income_before_tax_profit_margin",
      -  "get_effective_tax_rate",
      -  "get_return_on_assets",
      -  "get_return_on_equity",
      -  "get_return_on_invested_capital",
      -  "get_return_on_capital_employed",
      -  "get_return_on_tangible_assets",
      -  "get_income_quality_ratio",
      -  "get_net_income_per_ebt",
      -  "get_free_cash_flow_operating_cash_flow_ratio",
      -  "get_EBT_to_EBIT",
      -  "get_EBIT_to_revenue"
      -]New value: +[
      +  "get_gross_margin",
      +  "get_operating_margin",
      +  "get_net_profit_margin",
      +  "get_interest_coverage_ratio",
      +  "get_income_before_tax_profit_margin",
      +  "get_effective_tax_rate",
      +  "get_return_on_assets",
      +  "get_return_on_equity",
      +  "get_return_on_invested_capital",
      +  "get_return_on_capital_employed",
      +  "get_return_on_tangible_assets",
      +  "get_income_quality_ratio",
      +  "get_net_income_per_ebt",
      +  "get_free_cash_flow_operating_cash_flow_ratio",
      +  "get_EBT_to_EBIT",
      +  "get_EBIT_to_revenue",
      +  "get_cash_tax_rate",
      +  "get_tax_rate_divergence"
      +]
    • addedInput schema / properties / standardize
      Added value: +{
      +  "default": false,
      +  "description": "Return the Z-Score (standard score) instead of the raw values, i.e. how many standard deviations each value is from the mean of its own series. When combined with growth=True, the growth values are standardized instead of the raw values.",
      +  "title": "Standardize",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-07-10"New value: +"2021-07-15"
    • changedInput schema / properties / trailing / description
      Previous value: -"Number of trailing periods for rolling-window calculations."New value: +"Trailing window size in number of periods. Sums the raw values over the trailing N periods (e.g. trailing=4 on quarterly data gives a trailing-4-quarter / TTM-style sum) instead of returning one value per period."
  6. Changed2 schema fields changedv2.1.4
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-06-27"New value: +"2026-07-09"
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-06-28"New value: +"2021-07-10"
  7. Changed2 schema fields changedv2.1.3
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-06-23"New value: +"2026-06-27"
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-06-24"New value: +"2021-06-28"
  8. Changed4 schema fields changedv0.1.2
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-06-22"New value: +"2026-06-23"
    • removedInput schema / properties / rounding
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Number of decimal places to round results to.",
      -  "title": "Rounding"
      -}
    • addedInput schema / properties / show_columns
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Comma-separated names to filter the output. For historical data use the key names visible in any response record (e.g. 'Close,Volume,Return'). For financial statements use the 'metric' field values from the response (e.g. 'Revenue,Net Income,EBITDA'). Call the tool once without this parameter to see all available names, then repeat with show_columns to reduce response size and token usage.",
      +  "title": "Show Columns"
      +}
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-06-23"New value: +"2021-06-24"
  9. Addedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds that values are pre-computed rather than derived from raw statements and that quarterly/date filtering is supported, but says nothing about provider dependency, missing-ticker behavior, or what happens when an indicator is unsupported for a company.

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?

Three short sentences, front-loaded with the metric list and the call constraint. The parenthetical indicator list partially duplicates the enum, but it usefully signals scope before the agent opens the schema.

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?

For a 12-parameter tool with a full output schema, the description does enough: it names the metric family, the ticker format, and the primary modifiers (quarterly, date range). The remaining parameters (lag, trailing, growth, standardize, benchmark_ticker) are fully documented in the schema, so their absence from the description is acceptable.

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 baseline is 3. The description only restates tickers formatting and quarterly/start_date/end_date support, which the schema already documents in more detail, and it never mentions the required 'indicator' enum that actually drives the call. It adds no meaning beyond the schema and slightly misstates which parameter is mandatory.

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+resource ('Pre-computed profitability ratios') and enumerates the metric family (gross/operating/net margin, ROE, ROA, ROIC, ROCE), which lets an agent place it in the ratio-tool family. It does not explicitly distinguish itself from the sibling ratio tools (efficiency, liquidity, solvency, valuation), so an agent must infer the boundary from the word 'profitability'.

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?

'Use instead of raw financial statements' gives one explicit alternative, and 'use comma-separated values for multiple tickers' covers batching. But there is no guidance on when to choose this over the sibling ratio tools, and the sentence 'Requires tickers' is misleading since the schema's only required field is 'indicator' (tickers defaults to empty).

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