Update agent
update-agentPatch counterparty fields. Only supplied fields are updated. Set is_active=false to deactivate (agents are never deleted — they are reference data referenced by events and transactions). classification_element_id sets the account this counterparty's bank lines are suggested (an empty string clears it), and classification_mode='always_ask' stops suggesting one for a counterparty whose lines go to different accounts; its still-open lines are re-suggested at once. Each entity of a group keeps its own default, on its own chart: classification_entity_id names the one these fields are for, omitted the group parent. A default is also learned as lines are committed, so set one by hand only to correct it.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "agt_01HVF8T0M2YTAY3BBNRH0V0",
"is_1099_recipient": true
},
"name": "update-agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lei | No | ||
| duns | No | ||
| name | No | ||
| No | |||
| phone | No | ||
| address | No | ||
| agent_id | Yes | The agent to update. | |
| is_active | No | Toggle activation. Inactive agents are hidden from new-transaction pickers. | |
| legal_name | No | ||
| metadata_patch | No | Deep-merged into agent.metadata. Pass `{}` to leave unchanged. The default classification is set with the fields above, not here. | |
| is_1099_recipient | No | ||
| classification_mode | No | `suggest` offers the default on each line; `always_ask` offers none, for a counterparty whose lines go to different accounts. Omit to keep. | |
| registration_number | No | ||
| classification_entity_id | No | The entity whose bank lines the default above is for. Each entity keeps its own default, on its own chart. Omit for the group parent. | |
| classification_element_id | No | The chart account this counterparty's bank lines are usually classified to, suggested on each new line. An empty string clears it. Its still-open lines are re-suggested at once. Omit to keep. |