Skip to main content
Glama

Company fundamentals by filing date

Compare companies side by side

compare_companies
Read-onlyIdempotent

The latest filed value of one to 5 metrics for up to 10 companies, side by side, each value with its period (fy, fp, end), filing date, basis (consolidated, solo or reported), unit and source register. Values are as filed, in each company's own currency and unit, never converted; compare fy, fp, end and basis before reading two values together. Inputs: tickers (list), metric (comma-separated, e.g. revenue,net_income), as_of (only filings dated on or before that day; needs a licence key), compact (true leaves out market_notes). Each company counts as one call against the rate limit and, for a key with a company limit, as one company read. Figures are as filed, each keyed to its filing date (filed) as its market records it (how each market dates a filing: https://www.tradingagentapp.com/fundamentals/methodology). .TW quarterly values are already SINGLE-QUARTER amounts, so differencing adjacent quarters gives wrong figures. For a quarterly row (US, Taiwan) fy and fp are the CALENDAR quarter containing the period end, not the company's fiscal quarter. Each reply's market_notes and schema state the per-market caveats (solo or group accounts, lawful gaps, charities, flags in form). Detailed line items follow local accounting rules and keep the filed sign (capex is negative in Taiwan and Japan); get_data_dictionary defines them per market. The source licences require each reply's attribution and licence notices to accompany the figures.

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": {
      "tickers": "<tickers>",
      "metric": "<metric>"
    },
    "name": "compare_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoFiling-date cut-off, YYYY-MM-DD: only filings dated on or before that day
metricYes1-5 comma-separated metrics, e.g. revenue,net_income,assets
compactNotrue leaves out the long per-market notes (market_notes, schema) to save tokens; default false
tickersYes1-10 tickers, e.g. ["AAPL", "MSFT"] or ["0403091220.BE", "775670417.FR"]

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?

Annotations already cover the read-only, idempotent, closed-world safety profile, and the description adds substantial context beyond them: each company counts as one call against the rate limit and as one company read for keyed limits, values are never currency-converted, signs follow local convention (capex negative in Taiwan/Japan), and attribution/licence notices must accompany the figures.

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 core purpose is front-loaded and nearly every sentence carries a caveat an agent would otherwise get wrong. It is a dense run-on paragraph with several stacked qualifications (quarter semantics, signs, licensing), so structure is serviceable but not scannable.

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?

There is no output schema, so the description must carry return-value semantics — and it does, enumerating the per-value fields, market_notes and schema caveats, and the attribution/licence notices. For a cross-market comparison tool with fiscal-period quirks, this is essentially complete.

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 baseline is 3; the description still adds value by noting the comma-separated metric example, the 1-5 metric / 1-10 company bounds, and that as_of requires a licence key — a constraint absent from the schema. The compact flag's effect is repeated rather than extended.

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 first sentence gives a precise verb and resource: the latest filed value of 1-5 metrics for up to 10 companies, side by side. The multi-company scope and per-value metadata (period, filing date, basis, unit, source register) clearly separate it from single-company siblings like get_latest_fundamentals.

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 real operational guidance: compare fy, fp, end and basis before reading two values together, don't difference .TW quarters, and as_of requires a licence key. It stops short of explicitly naming an alternative tool to use when a single company or a historical series is wanted, so it is strong but not complete routing guidance.

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.