Skip to main content
Glama

First-reported versus current values

compare_versions
Read-onlyIdempotent

For one fiscal period of a company, compare every line item as first reported (the original filing) with its current value (after any restatement, reclassification or correction in later filings), with the proofs of both versions so each can be traced to its filing. The result lists each concept with first_reported, current, changed, delta and delta_percent, and counts how many items changed. Use it for restatement reviews, earnings-quality work and to explain why a number in an old report differs from today's database. Optionally restrict to one concept. Costs two standardized reads.

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": {
      "company": "<company>",
      "statement": "<statement>",
      "fiscal_year": "<fiscal_year>",
      "fiscal_period": "<fiscal_period>"
    },
    "name": "compare_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYesCompany: "ticker:AAPL" (or bare "AAPL", or "ticker:AAPL.XNAS"), "cik:320193", "fmd_01H...", or for a non-SEC EU/UK issuer "lei:<LEI>".
conceptNoOptional: compare only this standardized concept id.
statementYesWhich financial statement.
fiscal_yearYesFiscal year as the filer labels it (for example 2024 for Apple's year ending 2024-09-28).
period_typeNoPeriod basis to search; defaults to annual for FY and quarterly for Q1 to Q4.
fiscal_periodYesFiscal period label: FY for the full year, or Q1, Q2, Q3, Q4.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "company": "ticker:AAPL",
      -    "fiscal_period": "FY",
      -    "fiscal_year": 2023,
      -    "statement": "income_statement"
      -  },
      -  {
      -    "company": "cik:320193",
      -    "concept": "balance_sheet_total_assets",
      -    "fiscal_period": "Q2",
      -    "fiscal_year": 2024,
      -    "statement": "balance_sheet"
      -  }
      -]
    • changedInput schema / properties / company / description
      Previous value: -"Company identifier: a FinancialMD id (\"fmd_01H...\"), an SEC CIK (\"cik:320193\"), or a ticker (\"ticker:AAPL\", optionally with the MIC \"ticker:AAPL.XNAS\"). A bare ticker like \"AAPL\" is accepted and sent as ticker:AAPL. An issuer on an EU or UK regulated market that does not file with the SEC has no CIK: pass its LEI (\"lei:IOG4E947OATN0KJYSD45\") or its fmd_ id."New value: +"Company: \"ticker:AAPL\" (or bare \"AAPL\", or \"ticker:AAPL.XNAS\"), \"cik:320193\", \"fmd_01H...\", or for a non-SEC EU/UK issuer \"lei:<LEI>\"."
    • removedInput schema / properties / company / examples
      Removed value: -[
      -  "ticker:AAPL",
      -  "cik:320193",
      -  "fmd_01HZX8Q3K9W2M4N6P8R0T2V4X6"
      -]
    • removedOutput schema / description
      Removed value: -"The FinancialMD envelope (docs/API.md section 2): data plus meta (request_id, as_of knowledge time, matched company, coverage, pipeline_version, licence, terms, proof_base). Every numeric value inside data is an object with value, unit, currency, period, known interval, restated flag, method and a proof pointing at the filing. On failure the result is isError with an error object instead."
    • removedOutput schema / properties / data / description
      Removed value: -"statement, the matched period, rows with first_reported and current value objects (each with proof), changed_count and row_count."
    • changedOutput schema / properties / data / properties / rows / items / properties / current / anyOf
      Previous value: -[
      -  {
      -    "description": "A proven number: value, unit, currency, decimals, period, known interval, restated, method, calc_type, proof.",
      -    "properties": {
      -      "calc_type": {
      -        "type": "string"
      -      },
      -      "currency": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "decimals": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "known": {
      -        "properties": {
      -          "from": {
      -            "type": "string"
      -          },
      -          "to": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "method": {
      -        "type": "string"
      -      },
      -      "period": {
      -        "type": "object"
      -      },
      -      "proof": {
      -        "description": "Where a value comes from: filing accession, form, filing date, taxonomy and tag, source URL, page and anchor.",
      -        "properties": {
      -          "accession": {
      -            "type": "string"
      -          },
      -          "anchor": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "dims": {},
      -          "filed": {
      -            "type": "string"
      -          },
      -          "form": {
      -            "type": "string"
      -          },
      -          "id": {
      -            "type": "string"
      -          },
      -          "inputs": {
      -            "description": "For derived values (ratios): the proof ids of the inputs.",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "page": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "source_url": {
      -            "type": "string"
      -          },
      -          "tag": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "taxonomy": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "restated": {
      -        "type": "boolean"
      -      },
      -      "unit": {
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "calc_type": {
      +        "type": "string"
      +      },
      +      "currency": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "decimals": {
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "known": {
      +        "properties": {
      +          "from": {
      +            "type": "string"
      +          },
      +          "to": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "method": {
      +        "type": "string"
      +      },
      +      "period": {
      +        "type": "object"
      +      },
      +      "proof": {
      +        "properties": {
      +          "accession": {
      +            "type": "string"
      +          },
      +          "anchor": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "dims": {},
      +          "filed": {
      +            "type": "string"
      +          },
      +          "form": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "inputs": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "page": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "source_url": {
      +            "type": "string"
      +          },
      +          "tag": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "taxonomy": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "restated": {
      +        "type": "boolean"
      +      },
      +      "unit": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / data / properties / rows / items / properties / first_reported / anyOf
      Previous value: -[
      -  {
      -    "description": "A proven number: value, unit, currency, decimals, period, known interval, restated, method, calc_type, proof.",
      -    "properties": {
      -      "calc_type": {
      -        "type": "string"
      -      },
      -      "currency": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "decimals": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "known": {
      -        "properties": {
      -          "from": {
      -            "type": "string"
      -          },
      -          "to": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "method": {
      -        "type": "string"
      -      },
      -      "period": {
      -        "type": "object"
      -      },
      -      "proof": {
      -        "description": "Where a value comes from: filing accession, form, filing date, taxonomy and tag, source URL, page and anchor.",
      -        "properties": {
      -          "accession": {
      -            "type": "string"
      -          },
      -          "anchor": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "dims": {},
      -          "filed": {
      -            "type": "string"
      -          },
      -          "form": {
      -            "type": "string"
      -          },
      -          "id": {
      -            "type": "string"
      -          },
      -          "inputs": {
      -            "description": "For derived values (ratios): the proof ids of the inputs.",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "page": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "source_url": {
      -            "type": "string"
      -          },
      -          "tag": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "taxonomy": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "restated": {
      -        "type": "boolean"
      -      },
      -      "unit": {
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "calc_type": {
      +        "type": "string"
      +      },
      +      "currency": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "decimals": {
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "known": {
      +        "properties": {
      +          "from": {
      +            "type": "string"
      +          },
      +          "to": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "method": {
      +        "type": "string"
      +      },
      +      "period": {
      +        "type": "object"
      +      },
      +      "proof": {
      +        "properties": {
      +          "accession": {
      +            "type": "string"
      +          },
      +          "anchor": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "dims": {},
      +          "filed": {
      +            "type": "string"
      +          },
      +          "form": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "inputs": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "page": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "source_url": {
      +            "type": "string"
      +          },
      +          "tag": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "taxonomy": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "restated": {
      +        "type": "boolean"
      +      },
      +      "unit": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / error / description
      Removed value: -"Present only on isError results: the API error code and message plus remedy hints."
    • removedOutput schema / properties / error / properties
      Removed value: -{
      -  "available_datasets": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "code": {
      -    "type": "string"
      -  },
      -  "docs": {
      -    "type": "string"
      -  },
      -  "message": {
      -    "type": "string"
      -  },
      -  "request_id": {
      -    "type": "string"
      -  },
      -  "retry_after": {
      -    "type": [
      -      "integer",
      -      "string"
      -    ]
      -  },
      -  "status": {
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / meta / description
      Removed value: -"Request metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base."
    • removedOutput schema / properties / meta / properties
      Removed value: -{
      -  "as_of": {
      -    "type": "string"
      -  },
      -  "attribution": {
      -    "description": "Citations a source requires on anything shown from the answer.",
      -    "items": {
      -      "properties": {
      -        "source": {
      -          "type": "string"
      -        },
      -        "text": {
      -          "type": "string"
      -        },
      -        "url": {
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "company": {
      -    "properties": {
      -      "cik": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "fmd_id": {
      -        "type": "string"
      -      },
      -      "matched_by": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "coverage": {
      -    "properties": {
      -      "from": {
      -        "type": "string"
      -      },
      -      "periods": {
      -        "type": "integer"
      -      },
      -      "to": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "licence": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "pipeline_version": {
      -    "type": "string"
      -  },
      -  "proof_base": {
      -    "type": "string"
      -  },
      -  "request_id": {
      -    "type": "string"
      -  },
      -  "terms": {
      -    "type": "string"
      -  }
      -}
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "company": "ticker:AAPL",
      -    "fiscal_period": "FY",
      -    "fiscal_year": 2023,
      -    "statement": "income_statement"
      -  },
      -  {
      -    "company": "cik:320193",
      -    "concept": "total_assets",
      -    "fiscal_period": "Q2",
      -    "fiscal_year": 2024,
      -    "statement": "balance_sheet"
      -  }
      -]New value: +[
      +  {
      +    "company": "ticker:AAPL",
      +    "fiscal_period": "FY",
      +    "fiscal_year": 2023,
      +    "statement": "income_statement"
      +  },
      +  {
      +    "company": "cik:320193",
      +    "concept": "balance_sheet_total_assets",
      +    "fiscal_period": "Q2",
      +    "fiscal_year": 2024,
      +    "statement": "balance_sheet"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / company / description
      Previous value: -"Company identifier: a FinancialMD id (\"fmd_01H...\"), an SEC CIK (\"cik:320193\"), or a ticker (\"ticker:AAPL\", optionally with the MIC \"ticker:AAPL.XNAS\"). A bare ticker like \"AAPL\" is accepted and sent as ticker:AAPL."New value: +"Company identifier: a FinancialMD id (\"fmd_01H...\"), an SEC CIK (\"cik:320193\"), or a ticker (\"ticker:AAPL\", optionally with the MIC \"ticker:AAPL.XNAS\"). A bare ticker like \"AAPL\" is accepted and sent as ticker:AAPL. An issuer on an EU or UK regulated market that does not file with the SEC has no CIK: pass its LEI (\"lei:IOG4E947OATN0KJYSD45\") or its fmd_ id."
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world and non-destructive behavior, so the bar is lower; the description still adds real value by disclosing the cost ('two standardized reads') and that each version carries proofs traceable to its filing. It does not say what happens when no restatement exists or how large result sets are bounded.

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?

Front-loaded with the core comparison, then use cases, then the optional filter and cost. The enumeration of result fields (first_reported, current, changed, delta, delta_percent) partly duplicates the output schema, which is mild waste in an otherwise dense passage.

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 an output schema and full schema coverage, the description covers purpose, use cases, cost and traceability adequately for a read-only comparison tool. The remaining gap is positional: it never relates itself to the as-reported and changes-since siblings an agent would otherwise weigh.

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 schema already documents company, statement, fiscal_year, fiscal_period and period_type. The description only restates the optional concept filter, adding no syntax or defaulting detail beyond the schema; baseline 3 applies.

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?

States a specific verb (compare) and precise resources (first-reported vs current line items for one fiscal period), and pins the scope to a single company/statement/period. The as-reported-versus-restated framing distinguishes it from plain financials siblings without needing their schemas.

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?

Gives concrete use cases: restatement reviews, earnings-quality work, and explaining why an old report differs from today's database. It does not name a sibling alternative or state when not to use it (e.g. versus changes_since or financials_as_reported), so routing to the right tool still requires inference.

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