postgrid_estimate_cost
Estimate mailing costs for letters and checks before sending. Input type, page count, color, quantity, and mailing class to calculate postage using PostGrid's rate table.
Instructions
Estimate the cost of sending a letter or check without making an API call. Uses PostGrid's published rate table.
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": {
"type": "<type>"
},
"name": "postgrid_estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type: 'letter' or 'cheque' | |
| color | No | Color printing (default: false, letters only) | |
| quantity | No | Number of items to send (default: 1) | |
| pageCount | No | Number of pages (default: 1, letters only) | |
| mailingClass | No | Mailing class: 'first_class', 'standard_class', 'certified', 'certified_return_receipt' (letters only) |