Skip to main content
Glama

Hedgr FX Risk & Hedging

get_data_quality

Read-only

Use this when the user asks why a CSV import failed, why FX P&L is incomplete, or whether their invoice data is complete enough to rely on. Returns safe import and data-quality diagnostics: duplicate invoice IDs, first visible issue rows, missing currency/date/amount fields, missing booking rates, missing spot rates, and per-currency P&L readiness. Do not use for fixing records: Hedgr reads the accounting data and does not write to it. On an unscoped call also returns decision_readiness (workspace ready/limited/blocked verdict with gaps and basis), balance_validation (bank balance source and discrepancy check), scout_currency_quality and data_coverage (invoice lookback and rate-history window held).

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": "get_data_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoISO 4217 code to filter to one currency (e.g. 'EUR', 'USD'). Omit for all currencies.
entity_idNoSpecific entity ID from list_entities. Omit for the whole workspace (all entities).

Output Schema

NameRequiredDescriptionDefault
dataYesTool-specific payload. Null when connection_status.state is 'setup_required'.
connection_statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the description correctly reinforces rather than contradicts them with 'Hedgr reads the accounting data and does not write to it.' It adds genuinely non-annotation behavior: the extra sections returned on an unscoped call (decision_readiness, balance_validation, scout_currency_quality, data_coverage). It stops short of noting cost, latency, or auth prerequisites, which keeps it at 4.

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-loads the triggering situations, then the returned diagnostics, then the exclusion, then the scope-dependent extras, so an agent gets the routing decision in the first sentence. The long enumeration of diagnostic fields is dense but each item conveys a distinct signal; the only soft cost is length for a two-parameter tool.

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?

An output schema exists, so the description need not enumerate return values, yet it does so in enough detail to support selection, and it flags the read-only guarantee and scope-dependent output shape. What it leaves only to the schema is the entity_id prerequisite (an ID from list_entities), a minor gap given full schema coverage.

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?

Schema coverage is 100%, so the schema already explains currency filtering and entity scoping, and the description does not merely repeat that. What it does add is the semantic consequence of scope: an unscoped call additionally returns decision_readiness, balance_validation, and data_coverage. That is meaning an agent would not glean from the schema alone, so it exceeds the baseline 3.

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 and resource ('Returns safe import and data-quality diagnostics') and enumerates the concrete artifacts it surfaces: duplicate invoice IDs, missing currency/date/amount fields, missing booking rates, missing spot rates, and per-currency P&L readiness. It also anchors the purpose to the user questions it answers (failed CSV import, incomplete FX P&L, invoice completeness), so an agent can tell it apart from diagnostic siblings without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit positive triggers ('when the user asks why a CSV import failed, why FX P&L is incomplete, or whether their invoice data is complete enough to rely on') and an explicit exclusion ('Do not use for fixing records'), clarifying that the tool only reads accounting data. That when-to-use/when-not-to-use pairing is what an agent needs to route correctly.

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