Skip to main content
Glama

Edgar Ratio Screen

edgar_ratio_screen
Read-onlyIdempotent

SCREEN every SEC filer by a ratio of two reported values: finds the companies whose numerator / denominator, for one period, falls in a range or near a target. Built for "which company had cash to total assets of 3.49 percent", "filers with debt over 80 percent of assets", "net income to revenue between 20 and 30 percent". numerator and denominator are US-GAAP tags (e.g. "CashAndCashEquivalentsAtCarryingValue" over "Assets"), period is a calendar frame ("CY2023Q4I" for balance-sheet items at year end, "CY2023" for a full year). Give min_pct and/or max_pct, or target_pct with tolerance_pct (default 0.01). Joins two SEC XBRL frames by company (two SEC calls per question, no bulk pull) and returns matching filers with both values and the ratio in percent. Values are as filed; a filer reporting only one of the two tags is skipped and counted.

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": {
      "limit": 5,
      "period": "CY2023Q4I",
      "max_pct": 3.5,
      "min_pct": 3.4,
      "numerator": "CashAndCashEquivalentsAtCarryingValue",
      "denominator": "Assets"
    },
    "name": "edgar_ratio_screen"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoUnit of both tags (default "USD").
limitNoMax filers returned (1-100, default 25), those closest to the target (or the range middle) first.
periodYesCalendar frame: "CY2023Q4I" (instant), "CY2023" (year), "CY2023Q1" (quarter). Both tags are read for this same frame.
max_pctNoHighest ratio to include, in percent (e.g. 4).
min_pctNoLowest ratio to include, in percent (e.g. 3.4).
numeratorYesUS-GAAP tag for the top of the ratio, e.g. "CashAndCashEquivalentsAtCarryingValue", "NetIncomeLoss", "Liabilities".
target_pctNoRatio to match, in percent; with tolerance_pct sets min and max. Use instead of min/max.
denominatorYesUS-GAAP tag for the bottom, e.g. "Assets", "Revenues".
tolerance_pctNoWith target_pct: allowed distance in percentage points (default 0.01).

Output Schema

NameRequiredDescriptionDefault
hintNo
noteNo
unitNo
foundNo
periodNo
reasonNo
sourceNo
matchesNo
messageNo
returnedNo
companiesNo
numeratorNo
range_pctNo
denominatorNo
filers_with_bothNo
numerator_filersNo
denominator_filersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive, so the description correctly spends its words elsewhere: it discloses the join mechanism ('joins two SEC XBRL frames by company'), the cost ('two SEC calls per question, no bulk pull'), the as-filed value caveat, and the skip-and-count rule for filers reporting only one tag. That is meaningful behavior beyond the annotations, though it says nothing about error handling or ordering caveats beyond the schema's 'closest first'.

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 opening sentence is long but front-loads the core action, and the following sentences each add distinct information (examples, parameter shape, join mechanics, skip behavior). No filler or repetition, though the first sentence could be split for faster scanning.

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 nine-parameter, open-world screening tool with annotations and an output schema, the description covers the essentials: what is compared, how the frame is chosen, how the range is expressed, and how results are filtered and counted. Return-value details are rightly left to the output schema.

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 coverage is 100%, so the schema already documents all nine parameters including units, defaults and the min/max vs target/tolerance relationship. The description reinforces the 'give min_pct and/or max_pct, or target_pct with tolerance_pct' combinatorics and the calendar-frame syntax, but adds little that the schema does not already say.

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?

States a specific verb and resource ('SCREEN every SEC filer by a ratio of two reported values') and immediately bounds the operation (numerator/denominator, one period, range or target). The three quoted example questions make the purpose unmistakable and separate it from raw frame retrieval siblings like edgar_xbrl_frames.

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?

Gives concrete trigger questions ('which company had cash to total assets of 3.49 percent', 'filers with debt over 80 percent of assets') and states the filter-shape choice (min/max or target+tolerance). It also notes 'no bulk pull' as a cost consideration, but never explicitly names an alternative tool or a when-not-to-use case.

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.