lookup_record
Search an array of records by field and value to find a specific invoice or supplier. Returns the first match or all matches with optional comparison operators.
Instructions
Find a record by field value — like VLOOKUP/XLOOKUP. Returns the first match or all matches. Use for finding a specific invoice, supplier, etc.
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": {
"records": "<records>",
"field": "<field>",
"value": "<value>"
},
"name": "lookup_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field to search in. | |
| value | Yes | Value to match. | |
| records | Yes | Array of record objects. | |
| operator | No | Comparison operator (default: eq). | eq |
| return_all | No | Return all matches (true) or just first (false). |