Skip to main content
Glama

EdgarStack

Build a peer comparison Excel workbook

peer_comparison_excel
Read-onlyIdempotent

Build a branded Excel workbook comparing 2–15 US companies from SEC XBRL filings. Sheets: a Summary (companies, skipped tickers, notes); a latest-fiscal-year Comparison with revenue, revenue growth, gross/operating/net margins, diluted EPS, CFO, capex, FCF (CFO − capex) and FCF margin, plus a MEDIAN row and a rank (1 = largest) per column; and Revenue, Operating income, Net income and FCF history sheets (2–10 fiscal years, default 5) where every company-year figure links to the 10-K accession on SEC EDGAR that reported it. Dollars are USD millions; missing data shows n/a, never 0. Companies report on different fiscal calendars, so each row names its own FY end. Pass tickers as an array, pasted text (comma, space, newline or semicolon separated; CSV with a ticker/symbol header works), or a base64 .xlsx/.csv file (2 MB, 500 rows max). The response includes a download link (hosted) or the .xlsx itself, plus a summary listing any skipped tickers. Research tooling, not investment advice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "peer_comparison_excel"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoTicker list separated by commas, spaces, newlines or semicolons; a CSV with a ticker/symbol header also works
yearsNoFiscal years of history on the Revenue, Operating income, Net income and FCF sheets
tickersNo2 to 15 US ticker symbols
filenameNoFile name ending in ".xlsx" or ".csv"; required with fileBase64
fileBase64NoBase64 of a .xlsx or .csv ticker list (2 MB, 500 rows max)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/idempotent/non-destructive; the description goes well beyond them. It specifies the exact sheet inventory, the median row and per-column rank convention (1 = largest), the CFO − capex FCF definition, USD millions units, the 'n/a never 0' rule for missing data, per-row fiscal-year-end handling, EDGAR accession links per company-year, and ingestion limits (2 MB, 500 rows). This is unusually rich behavioral context for what the agent will actually get.

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?

Every sentence carries information — sheet contents, metric list, input modes, response shape, disclaimer — with the purpose front-loaded and little filler. The drawback is that one dense paragraph mixes output structure, input mechanics and caveats without visual separation, making the input-mode rules harder to scan than they should be.

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 describe the return value itself, and it does: hosted download link or the .xlsx file, plus a summary of skipped tickers. Combined with the documented sheet layout, units, and missing-data convention, an agent has everything needed to call this and set expectations for the user.

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, but the description adds real meaning beyond the schema by presenting tickers text, tickers array, and base64 file as interchangeable input modes with the accepted delimiters and CSV header convention. It also restates and reinforces the 2–10 fiscal-year default, which the schema already encodes. The gain is modest but genuine.

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 precise verb+resource+output artifact: 'Build a branded Excel workbook comparing 2–15 US companies from SEC XBRL filings.' That is far more specific than a restated title and the deliverable (a multi-sheet .xlsx) implicitly separates it from data-returning siblings such as peer_compare. It never names an alternative tool, so it stops short of full sibling differentiation.

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

Usage Guidelines3/5

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

The use case is clearly implied (peer comparison of 2–15 US filers over 2–10 fiscal years), and the input-mode rules tell the agent how to invoke it. However there is no explicit when-to-use/when-not guidance and no routing statement pointing to peer_compare or build_financial_model for related needs. Guidance is inferred rather than stated.

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