Create agent
create-agentCreate a counterparty record (customer, vendor, employee, etc.). The (source, external_id) pair is a dedup key — a second insert with the same pair returns 409. Use update-agent to patch fields.
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": {
"name": "Acme Office Supplies",
"agent_type": "vendor",
"is_1099_recipient": true
},
"name": "create-agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lei | No | Legal Entity Identifier (ISO 17442). | |
| duns | No | Dun & Bradstreet DUNS number. | |
| name | Yes | Display name shown in lists and on transactions. | |
| No | |||
| phone | No | ||
| source | No | Provenance: 'native' (created in-app), 'quickbooks' / 'xero' / 'plaid' (synced from integration). Drives reconciliation behavior. | native |
| address | No | Free-form address object (e.g. {"line1": "...", "city": "...", "state": "...", "postal_code": "..."}). | |
| metadata | No | ||
| is_active | No | Inactive agents stay in history but can't be picked for new txns. | |
| agent_type | Yes | Relationship category: 'customer' | 'vendor' | 'employee' | 'owner' | 'supplier' | 'government' | 'lender' | 'self' | 'other'. | |
| legal_name | No | Full registered legal name (when different from `name`). | |
| external_id | No | Source system primary key — used to match on subsequent syncs. | |
| is_1099_recipient | No | Marks a vendor as 1099-eligible: a flag a year-end 1099 summary will read. No report reads it yet. | |
| registration_number | No | Registry-issued company number (e.g. state corp file number). |