Skip to main content
Glama

Computed metrics

akkru_metrics
Read-onlyIdempotent

82 metrics computed from each filing (margins, growth, leverage, efficiency, cash flow, valuation), each with its formula and the facts it used. US companies only. Starter plan or higher; formula_override needs Pro.

  • get: one filing's metrics. Name the filing with metric_group_id, filing_id, or ticker and fiscal_year. All metrics by default; metric_names for chosen ones; category for one of six groups. Price-based ratios come at the filing-date price, and also at current_price when you give it; filing_date_price_only skips the current-price block. 158 credits.

  • history: the same metrics over many periods for one ticker, newest or oldest first, up to 5 periods per page. 55 credits plus 148 per period on the page.

  • list: a company's filings that have metrics, with their metric_group_id; give fiscal_year or as_of_date. 10 credits.

  • catalog: every metric name with its unit, plus the operators and options search takes. Free.

  • search: screen every covered company with conditions on metrics (where). Pro plan or higher; 89-1,825 credits depending on the conditions; the response shows the price. Metric names are catalog ids such as gross_margin; a wrong name returns the full list of names.

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": {
      "action": "<action>"
    },
    "name": "akkru_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo(history, search) Page number, from 1; the response's next_page gives the next one.
sortNo(history) "period_end_asc" (default) or "period_end_desc".
whereNo(search) Conditions and sort: {"filter": <tree>, "sort_by"?: <metric id, or "ticker", "period_end", "filing_date", "match_count">, "sort_order"?: "asc" or "desc"}. A tree is a leaf {"metric": <id>, "op": ">", ">=", "<", "<=" or "between", "value": <number, or [low, high] for between>} with at most one of "for_latest", "for_consecutive", "for_at_least": N; or {"and": [...]}, {"or": [...]}, {"not": <tree>}. 1-10 leaves, nesting depth at most 4.
actionYesWhat to do; each action is described in the tool description.
detailNoResponse detail, same price at every level: "full" (default) returns everything; "light" leaves out the bulkiest fields, such as breakdown lists; "minimal" returns only the values and what identifies them, without sources or calculation details. Every action takes it; a call without detail levels ignores it. Try "light" or "minimal" for shorter replies that use less context and fewer tokens.
tickerNo(get, history, list) Company ticker, e.g. "AAPL" (US), "000100" (Korea), "1332" (Japan), "VIRI_F" (Europe), "600519_CN" (China A-share); any symbol the company has traded under.
quarterNo(get, list) "FY", "Q1", "Q2", "Q3" or "Q4". list: filters the list, omit for every quarter; get: needed only when the fiscal year has several filings of the form; the error then lists the quarters on file.
sectorsNo(search) Only companies in these sectors (names from akkru_metrics action "catalog"). Pro plan or higher.
tickersNo(search) Only these companies (up to 100); any symbol a company has traded under. Default: every covered company.
categoryNo(get) One group of metrics: profitability, growth, financial_health, efficiency, cash_flow or valuation.
lookbackNo(search) How many filings back the conditions look (1-120, default 1); cut to your plan's history window.
usd_onlyNo(search) true: only rows whose values are in USD.
filing_idNo(get) Filing id from akkru_filings action "list". One of metric_group_id, filing_id, or ticker with fiscal_year names the filing.
form_typeNo(get) Form, default "10-K": "10-K" or "10-Q" for US filers, "20-F" or "40-F" for foreign issuers filing with the SEC. Korean, Japanese, Chinese and European filings use "10-K" for annual and "10-Q" for interim reports.
page_sizeNo(history, search) history: periods per page, 1-5 (default 3); search: rows per page, 1-100 (default 50), with page times page_size at most 500.
as_of_dateNo(get, history, list, search) Date "YYYY-MM-DD" (not in the future): only what had been filed by that day counts. Default: no cutoff.
form_typesNo(list) Forms to include, e.g. ["10-K", "10-Q"] (up to 8). Default: every form.
fiscal_yearNo(get, list) Fiscal year of the filing (1990-2100).
period_typeNo(history) "quarterly" (default) or "annual". annual covers 10-K, 20-F and 40-F; quarterly covers 10-Q.
metric_namesNo(get, history) Metric ids, e.g. ["gross_margin", "pe_ratio"]. get: only these; history: only these (default all). The names are in action "catalog".
current_priceNo(get) Current share price in USD; price-based ratios are then also computed at it (above 0, at most 10,000,000, at most 4 decimals). With as_of_date it is taken as the price on that day. Without it the current-price block says it is missing.
end_period_endNo(history) Latest period end, "YYYY-MM-DD".
current_fx_rateNo(get) Exchange rate for a foreign-currency filing (above 0, at most 1,000,000, at most 6 decimals). Without as_of_date, used only when the current rate is briefly unavailable; with as_of_date and current_price, required for price-based ratios: the rate on that day.
exclude_tickersNo(search) Leave these companies out (up to 100).
group_by_tickerNo(search) true (default): one row per company; false: one row per filing.
include_metricsNo(search) Extra metric ids to return next to the ones in the conditions (up to 10).
metric_group_idNo(get) Metric set id from action "list". One of metric_group_id, filing_id, or ticker with fiscal_year names the filing.
formula_overrideNo(get, history) Your own formula per metric id, e.g. {"interest_coverage": {"concepts": ["OperatingIncomeLoss", "InterestExpense"], "operators": ["/"]}}. Pro plan or higher.
include_quarterlyNo(search) true: quarterly filings count too; default annual only.
start_period_startNo(history) Earliest period start, "YYYY-MM-DD".
exclude_derivationsNo(search) Conditions ignore metric values derived these ways, e.g. "composite" (the kinds are in action "catalog").
filing_date_price_onlyNo(get) true: price-based ratios at the filing-date price only, without the current-price block; with all metrics or with category valuation.
accept_suggested_formulaNo(get, history) true: compute the metrics that need a formula choice with the suggested formula.
include_metrics_using_filing_date_priceNo(search) false: the 13 price-based valuation ratios cannot be used in conditions or sorting; default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / tickers / description
      Previous value: -"(search) Only these companies (up to 100); any symbol a company has traded under. Default: every company."New value: +"(search) Only these companies (up to 100); any symbol a company has traded under. Default: every covered company."
  2. Changed3 schema fields changed
    • changedInput schema / properties / as_of_date / description
      Previous value: -"(get, history, list, search) Date \"YYYY-MM-DD\": only what had been filed by that day counts. Default: no cutoff."New value: +"(get, history, list, search) Date \"YYYY-MM-DD\" (not in the future): only what had been filed by that day counts. Default: no cutoff."
    • changedInput schema / properties / current_fx_rate / description
      Previous value: -"(get) Fallback exchange rate, used only when the current rate for a foreign-currency filing is briefly unavailable (above 0, at most 1,000,000, at most 6 decimals)."New value: +"(get) Exchange rate for a foreign-currency filing (above 0, at most 1,000,000, at most 6 decimals). Without as_of_date, used only when the current rate is briefly unavailable; with as_of_date and current_price, required for price-based ratios: the rate on that day."
    • changedInput schema / properties / current_price / description
      Previous value: -"(get) Current share price in USD; price-based ratios are then also computed at it (above 0, at most 10,000,000, at most 4 decimals). Without it the current-price block says it is missing."New value: +"(get) Current share price in USD; price-based ratios are then also computed at it (above 0, at most 10,000,000, at most 4 decimals). With as_of_date it is taken as the price on that day. Without it the current-price block says it is missing."
  3. Added

TDQS

A4.1/5.0
Behavior5/5

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

Well beyond the read-only/idempotent annotations, the description discloses credit prices per action (158, 55+148/period, 10, free, 89–1,825), plan requirements, the exact price basis of price-based ratios and the current_price block, the fallback when the current price is absent, and that an unknown metric name returns the full name list. These are the operational facts an agent needs before committing a costly call.

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?

Length is justified by five actions and 34 parameters, and the bullet-per-action layout with bolded action names is easy to scan and front-loaded with a one-line summary of what the 82 metrics are. A few clauses (credit arithmetic for history, repeated plan mentions) could compress further without loss.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 34-parameter, five-action tool with nested filter objects and no output schema, the description covers cost, plan eligibility, price semantics, pagination limits and error behavior. Nothing material an agent needs to invoke it correctly appears to be absent, aside from sibling routing.

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% and the schema itself documents nearly every parameter including the nested where-clause grammar, so the description's parameter work is largely reinforcement. It does add a little: metric names are catalog ids with a self-healing error path, and detail levels ('light'/'minimal') reduce token use at the same price. Baseline 3 is appropriate given the schema already carries the load.

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 opens with a concrete verb-and-resource statement ('82 metrics computed from each filing') and enumerates the six metric families, then breaks the tool into five named actions (get, history, list, catalog, search) with distinct scopes. An agent can tell which action produces what. The one blemish is the 'US companies only' claim, which conflicts with the schema's own ticker documentation covering Korea, Japan, Europe and China A-shares, so the stated coverage is not fully trustworthy.

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

Usage Guidelines4/5

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

Each action carries its own selection criteria — when to name a filing by metric_group_id/filing_id/ticker+fiscal_year, when to use history versus get, and when to use catalog first to learn metric ids. Plan gating (Starter, Pro) and per-action credit costs make the choice explicit. What is missing is routing against siblings: nothing says when to prefer akkru_statements or akkru_facts over computed metrics.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources