Skip to main content
Glama

SEC Fundamentals API

Compare Company to Industry Peers

compare_to_peers
Read-onlyIdempotent

One company's metrics for a fiscal year next to its industry cohort: the percentiles of every metric for each revenue size bucket in its 2-digit SIC group. Use it to judge whether a company's margins, returns or leverage are above or below sector norms; use industry_aggregate for a cohort without a specific company. Cost: $0.05 per call; unpaid calls return a payment-required error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fyYesFiscal year to compare, e.g. 2025.
cikYesSEC Central Index Key (CIK), e.g. 320193 for Apple. Only have a ticker or company name? Call lookup_company first (free).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / cik / description
      Added value: +"SEC Central Index Key (CIK), e.g. 320193 for Apple. Only have a ticker or company name? Call lookup_company first (free)."
    • addedInput schema / properties / fy / description
      Added value: +"Fiscal year to compare, e.g. 2025."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already mark the call as read-only, idempotent, and non-destructive. The description adds meaningful behavioral context beyond that: the cost per call, the payment-required error for unpaid calls, and the specific grouping/revenue-bucket behavior. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: it opens with what the tool returns, then gives the use case and alternative, then the cost/error caveat. Every sentence earns its place and none are redundant.

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 read-only comparison tool with a rich output schema and full parameter documentation, the description covers the core behavior, use case, alternative tool, and a critical payment constraint. Nothing needed to invoke it correctly is missing.

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 reinforces that the tool compares a company's metrics for a fiscal year, but it does not add materially new meaning to the cik or fy parameters beyond what the schema already provides.

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 names the specific resource ('One company's metrics for a fiscal year'), the comparison target ('its industry cohort'), and the actual content ('percentiles of every metric for each revenue size bucket in its 2-digit SIC group'). It also explicitly distinguishes itself from the sibling industry_aggregate, so an agent can select it correctly.

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

Usage Guidelines5/5

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

It states the intended use case ('judge whether a company's margins, returns or leverage are above or below sector norms') and names the alternative for a different need ('use industry_aggregate for a cohort without a specific company'). This is explicit when-to-use and when-not-to-use 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.

Resources