Skip to main content
Glama

log_call

Destructive

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

NameRequiredDescriptionDefault
notesNoFree-text notes
lead_idNoWho it was. Omit for an incoming call from a number you could not identify.
outcomeNoResult of the call as free text
successNo1 = successful call, 0 = not successful
directionNooutbound (default) | inbound
to_numberNoRecipient phone number
from_numberNoThe calling number, for an inbound call. Any spelling — the search normalises it.
duration_secNoCall duration in seconds
next_call_atNoNext call time (ISO 8601)
call_status_codeNoStatus code of the call

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / call_status_code / description
      Added value: +"Status code of the call"
    • addedInput schema / properties / duration_sec / description
      Added value: +"Call duration in seconds"
    • addedInput schema / properties / next_call_at / description
      Added value: +"Next call time (ISO 8601)"
    • addedInput schema / properties / notes / description
      Added value: +"Free-text notes"
    • addedInput schema / properties / outcome / description
      Added value: +"Result of the call as free text"
    • addedInput schema / properties / success / description
      Added value: +"1 = successful call, 0 = not successful"
    • addedInput schema / properties / to_number / description
      Added value: +"Recipient phone number"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=false, so the safety profile is partly covered. The description adds meaningful behavior the annotations cannot: that lead_id is optional and that records without a lead are deliberately valuable to later phone lookups. It does not mention that repeat calls create duplicate records (idempotentHint=false), which is the one behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and the inbound rule are front-loaded, and no sentence is filler. The middle sentence about the persistent prospect versus the call centre is longer and more rhetorical than strictly necessary, though it does convey the rationale for the no-lead case.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a ten-parameter, all-optional mutation tool with no output schema, the description covers the decision an agent actually has to make: direction, number, and whether to attach lead_id. Return shape and duplicate-creation behavior are unstated, which are the remaining gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3 and the schema already documents all ten fields. The description still adds cross-parameter meaning: direction and from_number are tied to inbound calls, lead_id carries an explicit omission rule, and success is shown as 1/0. That is genuine semantic value beyond per-field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Log a call record") and immediately distinguishes the inbound case, including the unidentified-caller variant. It also names find_by_phone's call_history as the consumer of these records, so the agent can see why this tool exists rather than just what it does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit conditional guidance: pass direction:'inbound' and from_number for incoming calls, pass lead_id only when identity is known, and an explicit prohibition ("Do not attach it to a lead you are only guessing at"). That is a real when/when-not rule, not an implied one.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.