Skip to main content
Glama

Hedgr FX Risk & Hedging

get_payment_patterns

Read-only

Use this when the user asks which customers or suppliers pay late or early, and in which currency. Returns detected payment timing patterns by counterparty and currency where available, or derives a conservative summary from settled invoice dates. Do not use for realised FX gains or losses: this tool reports timing only.

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_payment_patterns"
  }
}

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.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: the tool may fall back to a derived, conservative summary from settled invoice dates when detected patterns are unavailable, and it is scoped to timing rather than monetary FX impact. It does not discuss data freshness or coverage gaps, keeping 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 load-bearing: the first front-loads the use case and the returned grouping, the second front-loads the exclusion. No restatement of the title or the parameter list, and nothing an agent would need to skip.

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, return values need not be explained, and the annotations plus schema cover safety and scope filters. The description covers purpose, exclusions and the derivation fallback, but does not state the default aggregation scope (whole workspace when entity_id is omitted), which matters for interpreting the report.

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 both parameters (currency ISO code, entity_id from list_entities) and the omit-for-all default are already fully documented in the schema. The description reinforces the currency dimension ('in which currency') and counterparty grouping but adds no format or scoping detail beyond the schema, which is the baseline 3 case.

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?

The description states a specific resource and output shape: 'detected payment timing patterns by counterparty and currency', with a stated fallback of 'a conservative summary from settled invoice dates'. It also carves out a boundary against FX tools ('reports timing only'), so an agent can separate it from get_fx_exposure or get_fx_guidance without inspecting schemas.

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?

It gives an explicit trigger ('when the user asks which customers or suppliers pay late or early, and in which currency') and an explicit exclusion ('Do not use for realised FX gains or losses'). Both the when and the when-not are stated, which is the strongest form of routing guidance.

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