Skip to main content
Glama

SEC XBRL GAAP Financials MCP

Compare US-GAAP balance sheet metrics

compare_balance_sheet_metrics
Read-onlyIdempotent

Compare latest versus prior-period assets, liabilities, stockholders equity, cash, current assets/liabilities, long-term debt, current ratio, and liabilities-to-equity for a CIK.

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": {
      "cik": "<cik>"
    },
    "name": "compare_balance_sheet_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
cikYesSEC CIK number (e.g. "320193").
formNoSEC filing form ("10-K" or "10-Q"). Default "10-K".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already establish readOnlyHint=true, idempotentHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds that the comparison is 'latest versus prior-period' and enumerates the derived metrics, which is useful behavior context. It does not disclose what happens when prior-period data is missing, whether figures are normalized to a common unit, or how periods are selected from multi-period filings.

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?

A single front-loaded sentence that leads with the verb and the comparison dimension before listing metrics. The metric enumeration is dense but each item earns its place by telling the agent what the output will contain. No filler or redundant restatement of the title.

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?

With no output schema, the description compensates well by enumerating the computed metrics, effectively describing what the agent gets back. For a 2-parameter read-only tool with full annotation coverage, that is nearly everything needed. The only gap is handling of missing or unavailable prior-period data, which is a moderate omission rather than a critical one.

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%, with both cik and form documented in the schema including the 10-K default and enum values. The description adds no meaning beyond that, mentioning only 'for a CIK.' Baseline 3 is appropriate when the schema carries the full parameter burden.

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 names a specific verb (compare) and a well-defined resource (balance sheet metrics for a CIK), then enumerates exactly which line items are compared: assets, liabilities, equity, cash, current ratio, debt-to-equity. This is far more specific than a restatement of the title. It stops short of a 5 because it never distinguishes itself from the sibling fact-retrieval tools (get_company_facts, get_xbrl_frame), leaving the agent to infer why it should pick this over those.

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?

Usage is implied by 'latest versus prior-period,' which suggests the tool is for period-over-period balance sheet comparison rather than raw fact lookup. However, there is no explicit instruction on when to choose this over get_company_facts or get_xbrl_frame, and no stated preconditions or exclusions. The agent must infer the routing decision.

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.