Check a flight against a travel policy
check_policyChecks a selected flight against your travel policy to determine compliance, flag violations, and identify if approval is required.
Instructions
Evaluates a specific flight (by id from the last search_flights call) against a policy JSON file and returns compliance, violations, and whether it needs approval.
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": {
"flightId": "<flightId>"
},
"name": "check_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flightId | Yes | A flight id returned by search_flights | |
| policyPath | No | Path to the policy JSON file | ./policy.json |