Build Contributor Query Response
aps_build_contributor_queryVerifies a contributor's share from a signed SettlementRecord and DID, returning per-axis weights, counts, Merkle paths, and roots for third-party validation.
Instructions
Build a contributor-query response: given a signed SettlementRecord and a contributor DID, return per-axis (total_weight, contribution_count, merkle_path, axis_root) plus the full signed record so a third party can verify the contributor's share end-to-end without trusting the gateway beyond its public key. Returns null if the contributor has no share in the period.
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": {
"record": "<record>",
"contributor_did": "<contributor_did>"
},
"name": "aps_build_contributor_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | A signed SettlementRecord | |
| gateway_jwks | No | Advisory JWKS URL; not part of the signed material | |
| contributor_did | Yes | Contributor DID (data source, compute provider, governance signer, or protocol module identifier) |