Skip to main content
Glama

Financial ratios and health score

lookup_financial_ratios
Read-onlyIdempotent

Financial analysis of a Romanian company: multi-year revenue trend (YoY, 3/5/10-year CAGR), margins, headcount, solvency and liquidity ratios, a 0–100 health score with its rule-by-rule breakdown, red flags, and peer percentiles within the same CAEN activity and county. Verdict: 'growing', 'stable' or 'distressed'. The raw yearly figures are in the annual financial statements.

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": {
      "cui": "<cui>"
    },
    "name": "lookup_financial_ratios"
  }
}

Input Schema

NameRequiredDescriptionDefault
cuiYesRomanian tax identification number (CUI), e.g. '2816464'; 'RO' and leading zeros are accepted.

Output Schema

NameRequiredDescriptionDefault
cuiNoThe company's CUI.
asOfNoWhat to cite: registry (ONRC snapshot date), financialYear (fiscal year of the figures), anaf (day of the ANAF data), snapshot, published, source.
errorNoSet only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted.
flagsNoRed flags.
foundNoWhether any filing is on record.
peersNoPercentiles within the same CAEN activity and county.
totalNoNumber of fiscal years used.
yearsNoPer fiscal year figures and margins.
ratiosNoMargins, equity ratio, debt to equity, liquidity, returns.
sourceNoData source: onrc (registry) or mfp (Ministry of Finance filings).
historyNoYears on record, loss years, revenue peak.
messageNoA sentence for the caller.
signalsNoThe distress signals found.
verdictNogrowing, stable or distressed.
distressNotrue when the distress signals fire.
headcountNoLatest headcount and its change.
attributionNoThe credit line to keep when redistributing the data (CC BY 4.0).
healthScoreNo0-100 score, band and its rule-by-rule components.
revenueTrendNoLatest revenue, YoY growth, 3/5/10-year CAGR, trend label.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / cui / description
      Previous value: -"The firm's CUI."New value: +"The company's CUI."
  2. Changed1 schema field changed
    • changedOutput schema / description
      Previous value: -"Derived financial intelligence and a verdict."New value: +"Financial ratios, a health score, peer percentiles and a verdict."
  3. Changed2 schema fields changed
    • addedInput schema / properties / cui / description
      Added value: +"Romanian tax identification number (CUI), e.g. '2816464'; 'RO' and leading zeros are accepted."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Derived financial intelligence and a verdict.",
      +  "properties": {
      +    "asOf": {
      +      "description": "What to cite: registry (ONRC snapshot date), financialYear (fiscal year of the figures), anaf (day of the ANAF data), snapshot, published, source.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "attribution": {
      +      "description": "The credit line to keep when redistributing the data (CC BY 4.0).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "cui": {
      +      "description": "The firm's CUI.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "distress": {
      +      "description": "true when the distress signals fire.",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Set only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "flags": {
      +      "description": "Red flags.",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "found": {
      +      "description": "Whether any filing is on record.",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "headcount": {
      +      "description": "Latest headcount and its change.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "healthScore": {
      +      "description": "0-100 score, band and its rule-by-rule components.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "history": {
      +      "description": "Years on record, loss years, revenue peak.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "description": "A sentence for the caller.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "peers": {
      +      "description": "Percentiles within the same CAEN activity and county.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "ratios": {
      +      "description": "Margins, equity ratio, debt to equity, liquidity, returns.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "revenueTrend": {
      +      "description": "Latest revenue, YoY growth, 3/5/10-year CAGR, trend label.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "signals": {
      +      "description": "The distress signals found.",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "description": "Data source: onrc (registry) or mfp (Ministry of Finance filings).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "total": {
      +      "description": "Number of fiscal years used.",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "verdict": {
      +      "description": "growing, stable or distressed.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "years": {
      +      "description": "Per fiscal year figures and margins.",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: the scoring is rule-based with a 'rule-by-rule breakdown', peer comparison is scoped to the same CAEN activity and county, and the verdict is constrained to three named categories. It does not mention data recency, cost, or behavior when the CUI is unknown, which keeps it short of a 5.

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

Conciseness5/5

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

Two sentences, both front-loaded: the first packs the full output inventory into one scannable list, the second redirects to raw statements. No filler, no restatement of the title, and the most decision-relevant content (what analysis is produced) comes first.

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 present and rich annotations, the description need not explain return values, and it still adds scope (Romanian companies, CAEN/county peer set) and the verdict taxonomy. The remaining gap is edge-case behavior, such as what happens for a CUI with no filings or how stale the underlying statements may be.

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?

There is a single parameter with 100% schema description coverage, and the schema already explains the CUI format including the 'RO' prefix and leading-zero tolerance. The description adds no parameter-level meaning, so the baseline of 3 for high-coverage schemas applies.

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 specific verb+resource ('Financial analysis of a Romanian company') and enumerates the concrete outputs: revenue trend with CAGR windows, margins, headcount, solvency/liquidity ratios, a 0-100 health score, red flags, and peer percentiles. An agent knows exactly what it gets back. It does not, however, distinguish itself from the sibling 'lookup_financials', which by name sounds adjacent, so the boundary is left to inference.

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 only implied: the closing line 'The raw yearly figures are in the annual financial statements' signals that this tool is for derived analysis rather than raw statements, but it never names the alternative tool or states an explicit when-to-use/when-not-to-use condition. The agent must infer the routing rule from a hint rather than a directive.

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