Skip to main content
Glama

Risk signals

risk_signals
Read-only

Legal entities matching tax debt, bankruptcy, liquidation, enforcement, restructuring or distress signals. Use cursor pagination for company lists. kind=tax_debt_trend returns observed monthly debt stock, joined/left observations and latest active-cohort sector/county incidence: top 10 by incidence rate. Estonian Classification of Economic Activities (EMTAK) and county filters affect incidence rows only; both return separate aggregates. Sector codes map to two-digit divisions; shorter prefixes match divisions. Trends have no cursor; newest months are retained with totals and truncation flags. Baselines and gaps are excluded. Absence is not debt-free; scheduled and disputed amounts remain separate. Amounts withheld below 100 EUR or source-suppressed differ from zero or no published list. Estonian Tax and Customs Board (EMTA) attribution accompanies results; old snapshots return empty lists. Use check_counterparty for one code. Do not look up natural persons.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "risk_signals"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoOmit for all feed kinds. registered: registrations; procurement_award: dated awards; report_overdue: overdue report deadlines at snapshot date; tax_debt_trend: national months and filtered incidence; tax_debt: current debt; tax_debt_new: newly observed debt; tax_debt_growing: growing debt; tax_debt_cleared: observed clearance; bankruptcy: bankruptcy notices; liquidation: liquidation notices; enforcement: enforcement notices; restructuring: restructuring notices; distress_high: high distress; high: alias for distress_high; distress_moderate: moderate distress; moderate: alias for distress_moderate; distress: high or moderate distress; distress_up: rising distress.
emtakNoEstonian Classification of Economic Activities (EMTAK) code or prefix
limitNoAt most 25 signals
countyNoCounty name or alias. Valid: Ida-Viru maakond, Lääne-Viru maakond, Harju maakond, Hiiu maakond, Jõgeva maakond, Järva maakond, Lääne maakond, Põlva maakond, Pärnu maakond, Rapla maakond, Saare maakond, Tartu maakond, Valga maakond, Viljandi maakond, Võru maakond, Maakond puudu.
cursorNoOpaque cursor from a previous next_cursor for the next page

Output Schema

NameRequiredDescriptionDefault
endNo
hintNoTrend incidence ranking and county/emtak filter guidance for fetching omitted rows.
noteNo
as_ofYes
scopeNo
startNo
cohortNo
monthsNo
signalsNo
sourcesYes
incidenceNoTop incidence rates across counties and sectors, or rows selected by county/emtak. Both filters select separate aggregate rows, not a county-sector intersection. Months remain national.
row_countNo
truncatedNo
disclaimerYes
next_cursorNo
snapshot_idYes
cohort_as_ofNo
missing_daysNo
months_totalNoNumber of months in the full national history before size budgeting.
disclaimer_enNoEnglish disclaimer: extract of official public open data; not an official register extract, legal advice, or a credit decision.
observed_daysNo
threshold_eurNo
source_detailsYesFull attribution and acquisition evidence: source_metadata(source_key).
incidence_top_nNoActual number of incidence rows returned, ranked by share_pct descending, unknown rates last; at most 10 and possibly fewer under the 8,000-byte envelope.
incidence_totalNoNumber of incidence rows matching county/emtak filters, or all rows when unfiltered, before top-N selection.
months_returnedNoNumber of returned months; newest months are retained in chronological order.
incidence_cohortNo
months_truncatedNoTrue when oldest months were omitted to fit the 8,000-byte envelope.
omitted_sectionsNoSections removed to fit the response budget, including default sections. Request one named section to retrieve it. Present only when truncated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / disclaimer_en
      Added value: +{
      +  "description": "English disclaimer: extract of official public open data; not an official register extract, legal advice, or a credit decision.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / signals / items / properties / score_max
      Added value: +{
      +  "description": "Distress score scale maximum (points); scores run 0-100. Present only on distress-kind rows.",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / source_details / description
      Previous value: -"Full attribution and acquisition evidence: source_metadata(key)."New value: +"Full attribution and acquisition evidence: source_metadata(source_key)."
  3. Changed1 schema field changed
    • addedOutput schema / properties / sources / items / properties / as_of_basis
      Added value: +{
      +  "description": "As of basis. privacy._sources: compact source attribution; absent clocks are omitted.",
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • changedInput schema / properties / kind / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "tax_debt_trend",
      -      "distress_high",
      -      "high",
      -      "distress_moderate",
      -      "moderate",
      -      "distress",
      -      "distress_up",
      -      "tax_debt",
      -      "tax_debt_new",
      -      "tax_debt_growing",
      -      "tax_debt_cleared",
      -      "bankruptcy",
      -      "liquidation",
      -      "enforcement",
      -      "restructuring"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "tax_debt_trend",
      +      "registered",
      +      "procurement_award",
      +      "report_overdue",
      +      "distress_high",
      +      "high",
      +      "distress_moderate",
      +      "moderate",
      +      "distress",
      +      "distress_up",
      +      "tax_debt",
      +      "tax_debt_new",
      +      "tax_debt_growing",
      +      "tax_debt_cleared",
      +      "bankruptcy",
      +      "liquidation",
      +      "enforcement",
      +      "restructuring"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / kind / description
      Previous value: -"Omit for all feed kinds. tax_debt_trend: national months and filtered incidence; tax_debt: current debt; tax_debt_new: newly observed debt; tax_debt_growing: growing debt; tax_debt_cleared: observed clearance; bankruptcy: bankruptcy notices; liquidation: liquidation notices; enforcement: enforcement notices; restructuring: restructuring notices; distress_high: high distress; high: alias for distress_high; distress_moderate: moderate distress; moderate: alias for distress_moderate; distress: high or moderate distress; distress_up: rising distress."New value: +"Omit for all feed kinds. registered: registrations; procurement_award: dated awards; report_overdue: overdue report deadlines at snapshot date; tax_debt_trend: national months and filtered incidence; tax_debt: current debt; tax_debt_new: newly observed debt; tax_debt_growing: growing debt; tax_debt_cleared: observed clearance; bankruptcy: bankruptcy notices; liquidation: liquidation notices; enforcement: enforcement notices; restructuring: restructuring notices; distress_high: high distress; high: alias for distress_high; distress_moderate: moderate distress; moderate: alias for distress_moderate; distress: high or moderate distress; distress_up: rising distress."
  5. Changed2 schema fields changed
    • changedInput schema / properties / kind / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "tax_debt_trend",
      +      "distress_high",
      +      "high",
      +      "distress_moderate",
      +      "moderate",
      +      "distress",
      +      "distress_up",
      +      "tax_debt",
      +      "tax_debt_new",
      +      "tax_debt_growing",
      +      "tax_debt_cleared",
      +      "bankruptcy",
      +      "liquidation",
      +      "enforcement",
      +      "restructuring"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / kind / description
      Previous value: -"tax_debt_trend (national months; county/emtak filter incidence), tax_debt, bankruptcy, liquidation, enforcement, restructuring, distress_high, or distress_moderate"New value: +"Omit for all feed kinds. tax_debt_trend: national months and filtered incidence; tax_debt: current debt; tax_debt_new: newly observed debt; tax_debt_growing: growing debt; tax_debt_cleared: observed clearance; bankruptcy: bankruptcy notices; liquidation: liquidation notices; enforcement: enforcement notices; restructuring: restructuring notices; distress_high: high distress; high: alias for distress_high; distress_moderate: moderate distress; moderate: alias for distress_moderate; distress: high or moderate distress; distress_up: rising distress."
  6. Changed5 schema fields changed
    • addedOutput schema / properties / omitted_sections
      Added value: +{
      +  "description": "Sections removed to fit the response budget, including default sections. Request one named section to retrieve it. Present only when truncated.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / source_details
      Added value: +{
      +  "description": "Full attribution and acquisition evidence: source_metadata(key).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / as_of
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / key
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "snapshot_id",
      -  "as_of",
      -  "sources",
      -  "disclaimer"
      -]New value: +[
      +  "snapshot_id",
      +  "as_of",
      +  "sources",
      +  "source_details",
      +  "disclaimer"
      +]
  7. Changed1 schema field changed
    • addedOutput schema / properties / signals / items / properties / bankruptcy_phase
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  8. Changed1 schema field changed
    • changedInput schema / properties / emtak / description
      Previous value: -"EMTAK code or prefix"New value: +"Estonian Classification of Economic Activities (EMTAK) code or prefix"
  9. Changed22 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"tax_debt, bankruptcy, liquidation, enforcement, restructuring, distress_high, or distress_moderate"New value: +"tax_debt_trend (national months; county/emtak filter incidence), tax_debt, bankruptcy, liquidation, enforcement, restructuring, distress_high, or distress_moderate"
    • addedOutput schema / properties / cohort
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / cohort_as_of
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / end
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / hint
      Added value: +{
      +  "description": "Trend incidence ranking and county/emtak filter guidance for fetching omitted rows.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / incidence
      Added value: +{
      +  "description": "Top incidence rates across counties and sectors, or rows selected by county/emtak. Both filters select separate aggregate rows, not a county-sector intersection. Months remain national.",
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "companies": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "denominator": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "dimension": {
      +        "enum": [
      +          "county",
      +          "sector"
      +        ]
      +      },
      +      "share_pct": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / incidence_cohort
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / incidence_top_n
      Added value: +{
      +  "description": "Actual number of incidence rows returned, ranked by share_pct descending, unknown rates last; at most 10 and possibly fewer under the 8,000-byte envelope.",
      +  "maximum": 10,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / incidence_total
      Added value: +{
      +  "description": "Number of incidence rows matching county/emtak filters, or all rows when unfiltered, before top-N selection.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / missing_days
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / months
      Added value: +{
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "companies": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "compared_days": {
      +        "type": "integer"
      +      },
      +      "date": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "debt_amount": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "debt_amount_reason": {
      +        "description": "withheld (below €100 or source-suppressed); no_list_published = no list published; null = numeric amount available, including zero.",
      +        "enum": [
      +          "withheld",
      +          "no_list_published",
      +          null
      +        ]
      +      },
      +      "disputed_amount": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "disputed_amount_reason": {
      +        "description": "withheld (below €100 or source-suppressed); no_list_published = no list published; null = numeric amount available, including zero.",
      +        "enum": [
      +          "withheld",
      +          "no_list_published",
      +          null
      +        ]
      +      },
      +      "joined": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "left_count": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "missing_days": {
      +        "type": "integer"
      +      },
      +      "month": {
      +        "type": "string"
      +      },
      +      "observed_days": {
      +        "type": "integer"
      +      },
      +      "scheduled_amount": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "scheduled_amount_reason": {
      +        "description": "withheld (below €100 or source-suppressed); no_list_published = no list published; null = numeric amount available, including zero.",
      +        "enum": [
      +          "withheld",
      +          "no_list_published",
      +          null
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / months_returned
      Added value: +{
      +  "description": "Number of returned months; newest months are retained in chronological order.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / months_total
      Added value: +{
      +  "description": "Number of months in the full national history before size budgeting.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / months_truncated
      Added value: +{
      +  "description": "True when oldest months were omitted to fit the 8,000-byte envelope.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / note
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / observed_days
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / scope
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / licence_checked_at
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / licence_evidence_url
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / rights_status
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / start
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / threshold_eur
      Added value: +{
      +  "type": "integer"
      +}
  10. Changed1 schema field changed
    • changedInput schema / properties / kind / description
      Previous value: -"tax_debt, bankruptcy, liquidation, distress_high, or distress_moderate"New value: +"tax_debt, bankruptcy, liquidation, enforcement, restructuring, distress_high, or distress_moderate"
  11. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "as_of": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "disclaimer": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "row_count": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "signals": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "amount": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "amount_unit": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "county": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "emtak_code": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "event_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "kind": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "label": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "registry_code": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "risk_level": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "score": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "snapshot_id": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "sources": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "attribution": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "licence": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "licence_url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "truncated": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "snapshot_id",
      +    "as_of",
      +    "sources",
      +    "disclaimer"
      +  ],
      +  "title": "risk_signalsOutput",
      +  "type": "object"
      +}
  12. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, yet the description still adds substantial operational context: absence of a record is not proof of no debt, scheduled and disputed amounts are reported separately, amounts below 100 EUR or source-suppressed are withheld rather than zero, and stale snapshots return empty lists. It also discloses that trends retain only the newest months with totals and truncation flags and exclude baselines and gaps — exactly the caveats an agent needs to avoid misreading results.

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?

Purpose is front-loaded and every clause carries information — no filler or marketing language. The trade-off is density: long semicolon-chained sentences about the trend mode pack several distinct rules together, which costs some scanability for an agent parsing quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter tool with eighteen kind values and an output schema, the description covers the mode split, filter scoping, pagination behavior, and result caveats. Return-value structure is legitimately delegated to the output schema, so nothing an agent needs before calling is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a 3 would be the floor, but the description adds real meaning beyond the schema: EMTAK prefixes shorter than a division match at the division level, county and EMTAK filters apply only to incidence rows while national aggregates are returned separately, and cursor semantics differ by mode (company lists paginate; trends do not). These are cross-parameter interactions the schema cannot express.

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?

Opens with a specific resource statement — legal entities matching enumerated signal types (tax debt, bankruptcy, liquidation, enforcement, restructuring, distress) — so the agent knows what comes back. The verb is implicit (list/retrieve rather than look up a single entity), and the distinction from check_counterparty appears later, but the core purpose is unambiguous.

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 a concrete alternative ('Use check_counterparty for one code'), an explicit exclusion ('Do not look up natural persons'), a pagination rule ('Use cursor pagination for company lists'), and notes that trends have no cursor. It does not distinguish this from other list-style siblings such as find_companies or company_procurement, but the named alternative and exclusion set clear boundaries.

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