Record Agent Decision
metrx_record_decisionRecord a management decision for an agent (expand, re_specify, combine, retire) with a rationale, so the choice is logged as evidence on the agent page. Supply an idempotency key to prevent duplicate submissions.
Instructions
Record a management decision about an agent (expand, re_specify, combine, retire) with a rationale. The record carries the governing contract version and the scorecard at decision time as evidence, and appears on the agent page. The same decision within 60 seconds is refused as a double submit; pass idempotency_key to make a retry return the first record. Use a new key for each new decision: a key reused with a different decision is refused. Requires an API key with the 'write' scope.
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": {
"agent_key": "<agent_key>",
"decision": "<decision>",
"rationale": "<rationale>"
},
"name": "metrx_record_decision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decision | Yes | expand | re_specify | combine | retire. | |
| agent_key | Yes | The agent the decision is about. | |
| rationale | Yes | Why, in at least 20 characters; stored on the record and shown on the agent page. | |
| idempotency_key | No | Optional. Retrying with the same key returns the first record instead of a second one. | |
| combined_into_agent_id | No | For 'combine' only: the agent (row id) this one folds into. |