Get agreement state
get_agreement_stateRetrieve the current state of an agreement by its record ID. Use this to check progress after submitting an input or to monitor state transitions.
Instructions
Returns the current state of an agreement. For deployed agreements, interpret the state against the states defined in the authored agreement lifecycle (execution.states). Use this to poll for transitions after submitting an input.
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": {
"agreementId": "<agreementId>"
},
"name": "get_agreement_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agreementId | Yes | Agreement record ID, as returned by list_agreements (not the on-chain address). |