Skip to main content
Glama

One reported line by label and period

line_item
Read-onlyIdempotent

Find one line of a company's own reporting by its name and period, when the standardized statements do not carry it: detail lines of the income statement, balance sheet and cash flow statement (for example interest expense on debt, deferred revenue, purchases of intangibles), segment and geographic figures, company-defined metrics and the company's own guidance. label is matched by words against XBRL tag names, segment members, metric names and guidance metrics; no model is used. Give period_end, or fiscal_year with fiscal_period (FY, Q1 to Q4); without a period each line answers with its newest value. dataset narrows the search to as_reported, segment, kpi or guidance. original true returns the first-reported figure instead of the latest filed. Each item carries its dataset, the label matched, a score (1 = the label is the whole name) and a value with its proof. Check the label and score before you repeat a number, and name the line as the company tagged it. Lines a filer tagged with its own extension tag are not held; an empty answer means not found here, not zero.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "label": "interest expense",
      "company": "ticker:AAPL",
      "fiscal_year": 2024
    },
    "name": "line_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoKnowledge date or timestamp (YYYY-MM-DD or RFC 3339). The answer is what FinancialMD knew at that instant: only facts whose known interval contains as_of. Omit for the current view.
labelYesThe line as a report would name it, for example "interest expense" or "cloud revenue".
limitNoItems to return, best match first; default 10.
companyYesCompany identifier: a FinancialMD id ("fmd_01H..."), an SEC CIK ("cik:320193"), or a ticker ("ticker:AAPL", optionally with the MIC "ticker:AAPL.XNAS"). A bare ticker like "AAPL" is accepted and sent as ticker:AAPL. An issuer on an EU or UK regulated market that does not file with the SEC has no CIK: pass its LEI ("lei:IOG4E947OATN0KJYSD45") or its fmd_ id.
datasetNoComma-separated: as_reported, segment, kpi, guidance. Default all four.
originalNotrue = the first-reported figure; default the latest filed.
period_endNoPeriod end date; a few days of slack cover 52/53-week years (YYYY-MM-DD).
fiscal_yearNoFiscal year as the company numbers it; use with fiscal_period, not with period_end.
period_typeNoLength of the period; default annual for FY and quarterly for a fiscal quarter.
fiscal_periodNoDefault FY when fiscal_year is given.

Output Schema

NameRequiredDescriptionDefault
dataNo{ query { q, words, period_end, fiscal_year, fiscal_period, period_type, datasets, original }, items: [{ dataset, label, score, period_end, period_start, tag, standardized_as, value: value object with proof (as_reported and segment) | metric fields with value (kpi) | low, mid, high with source sentence (guidance) }], matched, next_cursor, note }
metaNoRequest metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base.
errorNoPresent only on isError results: the API error code and message plus remedy hints.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the read-only and idempotent annotations, the description discloses the matching method (word matching against XBRL tags, segment members, metric names, and guidance metrics; no model), period fallback behavior, original-vs-latest filing behavior, returned fields including score and proof, and the limitation that extension-tagged lines are not held.

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?

The description is dense but front-loaded, starting with the core purpose and then covering matching, period behavior, dataset filtering, and caveats. It is appropriately sized for a 10-parameter tool, though the single long paragraph could be slightly easier to scan.

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?

Given the tool's complexity, 10 parameters, and existing output schema, the description is complete enough for an agent to call it correctly. It covers matching behavior, period rules, dataset scope, original-vs-latest semantics, return interpretation, and the key limitation around extension tags and empty results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents each parameter. The description still adds cross-parameter meaning: label matching semantics, the period_end versus fiscal_year/fiscal_period choice, dataset narrowing, original=true behavior, and how to interpret the returned score.

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?

The description states a specific verb and resource: "Find one line of a company's own reporting by its name and period." It immediately distinguishes the tool from standardized statements by saying it is for cases "when the standardized statements do not carry it," and it enumerates the kinds of lines covered.

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?

It gives clear usage context: use this when standardized statements lack the line, and use dataset to narrow to as_reported, segment, kpi, or guidance. It also explains period selection and the meaning of an empty result. It does not explicitly name a sibling tool such as financials_standardized, but the condition for choosing this tool is clear.

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