vary_match
Determine whether a stored HTTP response can be reused for an incoming request by comparing Vary header fields per RFC 9111 and returning match or miss plus differing fields.
Instructions
Decide whether a stored response can be reused for an incoming request, per RFC 9111 section 4.1. Compares the fields named by the stored Vary value under that field's normalisation policy and returns match hit|miss, the fields that differ, the normalised Vary members, and the rule IDs with their clause references.
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": {
"cached": "<cached>",
"incoming": "<incoming>"
},
"name": "vary_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cached | Yes | ||
| incoming | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | Yes | ||
| reasons | Yes | ||
| normalized_vary | Yes | lowercase header names, ASCII-sorted | |
| differing_headers | Yes | lowercase header names, ASCII-sorted |