query_warehouse
Retrieve a merchant's dispute history, including total cases, resolution breakdown, and individual case records.
Instructions
Retrieve the dispute history for a merchant from the data warehouse.
Args: merchant_id: The merchant identifier (e.g. "MER-001").
Returns: A dict containing: merchant_id – the queried ID merchant_name – registered name (or None) total_cases – total number of dispute cases on record resolutions – breakdown: {merchant_won, merchant_lost, settled, pending} cases – list of individual case records (date, amount, type, res)
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": {
"merchant_id": "<merchant_id>"
},
"name": "query_warehouse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merchant_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||