Skip to main content
Glama

EdgarStack

Compare financial metrics across companies

peer_compare
Read-onlyIdempotent

Compare one to six SEC XBRL metrics for 2–15 US companies. Periods are aligned by actual end date (within 183 days for annual or 45 days for quarterly) to handle different fiscal calendars; the reference date and each row's actual period end are returned. Rankings are descending, skip missing values, and use competition ranks for ties. Available metrics: revenue, grossProfit, operatingIncome, netIncome, epsBasic, epsDiluted, totalAssets, currentAssets, totalLiabilities, currentLiabilities, longTermDebt, totalEquity, cashAndEquivalents, operatingCashFlow, capex, rdExpense, sharesOutstanding, dividendsPerShare, dividendsPaid, stockBasedCompensation, deferredRevenue, goodwill, intangibleAssets, depreciationAmortization, costOfGoodsSold, sellingGeneralAndAdministrative, interestExpense, otherNonoperatingIncomeExpense, pretaxIncome, incomeTaxExpense, liabilitiesAndEquity, assetImpairment, shortTermInvestments, weightedAverageDilutedShares, shareRepurchases, accountsReceivable, inventory, accountsPayable, propertyPlantEquipment, investingCashFlow, financingCashFlow, grossInterestIncome, netInterestIncome, noninterestIncome, currentDebt, debtIssued, debtRepaid, weightedAverageBasicShares, otherCurrentAssets, otherCurrentLiabilities. There's no default metric — if the user's request doesn't name one (e.g. "compare Apple and Microsoft" with no metric specified), ask which they want before calling rather than guessing.

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>",
      "metrics": "<metrics>"
    },
    "name": "peer_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoannual
metricsYes
tickersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / metrics / items / enum
      Previous value: -[
      -  "revenue",
      -  "grossProfit",
      -  "operatingIncome",
      -  "netIncome",
      -  "epsBasic",
      -  "epsDiluted",
      -  "totalAssets",
      -  "currentAssets",
      -  "totalLiabilities",
      -  "currentLiabilities",
      -  "longTermDebt",
      -  "totalEquity",
      -  "cashAndEquivalents",
      -  "operatingCashFlow",
      -  "capex",
      -  "rdExpense",
      -  "sharesOutstanding",
      -  "dividendsPerShare",
      -  "dividendsPaid",
      -  "stockBasedCompensation",
      -  "deferredRevenue",
      -  "goodwill",
      -  "intangibleAssets",
      -  "depreciationAmortization",
      -  "costOfGoodsSold",
      -  "sellingGeneralAndAdministrative",
      -  "interestExpense",
      -  "otherNonoperatingIncomeExpense",
      -  "pretaxIncome",
      -  "incomeTaxExpense",
      -  "liabilitiesAndEquity",
      -  "assetImpairment",
      -  "shortTermInvestments",
      -  "weightedAverageDilutedShares",
      -  "shareRepurchases",
      -  "accountsReceivable",
      -  "inventory",
      -  "accountsPayable",
      -  "propertyPlantEquipment",
      -  "investingCashFlow",
      -  "financingCashFlow",
      -  "grossInterestIncome",
      -  "netInterestIncome",
      -  "noninterestIncome"
      -]New value: +[
      +  "revenue",
      +  "grossProfit",
      +  "operatingIncome",
      +  "netIncome",
      +  "epsBasic",
      +  "epsDiluted",
      +  "totalAssets",
      +  "currentAssets",
      +  "totalLiabilities",
      +  "currentLiabilities",
      +  "longTermDebt",
      +  "totalEquity",
      +  "cashAndEquivalents",
      +  "operatingCashFlow",
      +  "capex",
      +  "rdExpense",
      +  "sharesOutstanding",
      +  "dividendsPerShare",
      +  "dividendsPaid",
      +  "stockBasedCompensation",
      +  "deferredRevenue",
      +  "goodwill",
      +  "intangibleAssets",
      +  "depreciationAmortization",
      +  "costOfGoodsSold",
      +  "sellingGeneralAndAdministrative",
      +  "interestExpense",
      +  "otherNonoperatingIncomeExpense",
      +  "pretaxIncome",
      +  "incomeTaxExpense",
      +  "liabilitiesAndEquity",
      +  "assetImpairment",
      +  "shortTermInvestments",
      +  "weightedAverageDilutedShares",
      +  "shareRepurchases",
      +  "accountsReceivable",
      +  "inventory",
      +  "accountsPayable",
      +  "propertyPlantEquipment",
      +  "investingCashFlow",
      +  "financingCashFlow",
      +  "grossInterestIncome",
      +  "netInterestIncome",
      +  "noninterestIncome",
      +  "currentDebt",
      +  "debtIssued",
      +  "debtRepaid",
      +  "weightedAverageBasicShares",
      +  "otherCurrentAssets",
      +  "otherCurrentLiabilities"
      +]
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

With readOnlyHint, idempotentHint and destructiveHint=false already declared, the description adds genuinely useful behavior: period alignment tolerances (183 days annual, 45 days quarterly), descending ranking, missing-value skipping, competition ranks for ties, and that reference and actual period-end dates are returned. That is a strong contribution for a read-only tool; only the response shape remains undisclosed.

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

Conciseness3/5

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

The behavioral rules are front-loaded and dense, but roughly fifty metric names are reproduced verbatim from the schema enum, which duplicates structured data the agent already has and inflates the text considerably. Trimming that list would make the definition markedly tighter without losing information.

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 three-parameter, read-only comparison tool with no output schema, the definition covers constraints, period alignment, ranking semantics, and the no-default-metric prompt rule. What is missing is a description of the returned row structure beyond the dates, which matters when no output schema exists.

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 description coverage is 0%, so the description must carry the load, and it does: it states the 1–6 metric bound, the 2–15 ticker bound, and explains the period enum indirectly through the annual/quarterly alignment windows. It still never explicitly defines the 'period' parameter as an annual-vs-quarterly switch, leaving one gap.

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 opens with a specific verb and resource - 'Compare one to six SEC XBRL metrics for 2–15 US companies' - and names the exact limits and data domain. This clearly separates it from single-company retrieval tools like get_financials and from ratio-computing siblings like compute_ratios.

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 explicit when-not guidance: there is no default metric, and if the request lacks one, ask the user rather than guessing. It does not, however, say when to prefer this over get_financials or compute_ratios, so an agent must infer the alternative routing.

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