log_call
Log a call record. Optional: outcome, notes, call_status_code, success (1/0), duration_sec, to_number, next_call_at (ISO). For an INCOMING call pass direction:'inbound' and from_number — and lead_id only if you know who it was. An unidentified incoming call is worth recording WITHOUT a lead: that is what makes find_by_phone's call_history answer 'this number has rung six times before', which is the difference between a persistent prospect and a call centre. Do not attach it to a lead you are only guessing at.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "log_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-text notes | |
| lead_id | No | Who it was. Omit for an incoming call from a number you could not identify. | |
| outcome | No | Result of the call as free text | |
| success | No | 1 = successful call, 0 = not successful | |
| direction | No | outbound (default) | inbound | |
| to_number | No | Recipient phone number | |
| from_number | No | The calling number, for an inbound call. Any spelling — the search normalises it. | |
| duration_sec | No | Call duration in seconds | |
| next_call_at | No | Next call time (ISO 8601) | |
| call_status_code | No | Status code of the call |