Skip to main content
Glama
AI Infra Filings MCP

AI Infra Filings MCP

by zurvaaziz56

Compare metric

compare_metric
Read-only

Compare capex, revenue, R&D expense, or operating income across companies for matching calendar quarters or years, aligning different fiscal periods for direct SEC filing-based analysis.

Instructions

Compare one metric across companies for the same calendar quarters (CY2025Q2) or years (CY2025). Fiscal quarters are mapped to the calendar quarter they mostly cover, so companies with different fiscal years line up. A year (CY2025) is each company's fiscal year that mostly falls in 2025, so the 12 months differ by company: check period_start and period_end. For a January to December total, add up the four calendar quarters instead.

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": {
      "companies": "<companies>",
      "metric": "<metric>",
      "calendar_periods": "<calendar_periods>"
    },
    "name": "compare_metric"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricYes
companiesYes
calendar_periodsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds important behavioral detail about fiscal-quarter mapping and warns that a CY year can cover different 12-month windows per company. Telling the agent to check period_start and period_end is valuable context beyond the annotations, though it does not mention rate limits or other operational constraints.

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 description is four front-loaded sentences focused on the non-obvious period semantics, with little wasted wording. Parenthetical examples help, and the density is acceptable for the complexity of the caveats.

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 read-only comparison tool with no output schema, the description covers the main interpretive risk: fiscal versus calendar periods. It does not document return fields or parameter limits, but the schema supplies the limits and the description gives enough context to call the tool correctly.

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?

With low schema description coverage, the description carries most of the meaning for calendar_periods by explaining CY2025Q2, CY2025 fiscal-year mapping, and the period_start/period_end caveat. It adds less for metric, whose enum is in the schema, and companies, which the schema already illustrates.

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?

States a specific verb ('Compare') and resource ('one metric across companies') with the scope limited to matching calendar quarters or years. It implicitly distinguishes itself from get_metric by being a multi-company comparison, but it does not explicitly name a sibling tool or exclusion.

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?

Explains how periods are aligned and gives a concrete alternative for a January-to-December total by summing the four calendar quarters. However, it does not explicitly say when to choose compare_metric over get_metric or the other sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.