get_purchase_document
Fetch a purchase document and optionally attach its line items to consolidate data.
Instructions
Fetch a purchase document, optionally with its line items merged.
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": {
"id": "<id>"
},
"name": "get_purchase_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Purchase document id. | |
| include_lines | No | If true, fetch line items separately and attach under `lines`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||