Project Agent Payment Fields
normalize_agent_payment_protocolUse when an agent encounters an AP2 terminal closed-payment projection, x402 v2 PAYMENT-REQUIRED offer, or explicitly profiled MPP Payment challenge and needs the supported fields projected before an authority check. Map those documented fields into a deterministic MandateShield purchase envelope. X402 requires source-matched network+payTo identity and MPP requires source-matched HTTPS service-origin+method identity; merchant_id alone is insufficient. Evidence references are not independently verified. projection_fields_valid is not full protocol conformance: this tool never verifies delegated authority or a payment credential and always returns enforcement_authorized=false under assurance.
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": {
"adapter": "<adapter>",
"source": "<source>",
"context": "<context>"
},
"name": "normalize_agent_payment_protocol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Raw protocol input: AP2 compact SD-JWT, x402 PAYMENT-REQUIRED base64 JSON, MPP WWW-Authenticate Payment challenge, or the documented decoded object. | |
| adapter | Yes | ||
| context | Yes | ||
| selection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adapter | Yes | ||
| envelope | Yes | ||
| protocol | Yes | ||
| warnings | Yes | ||
| assurance | Yes | ||
| next_step | Yes | ||
| source_digest | Yes | ||
| adapter_version | Yes | ||
| envelope_digest | Yes |