Skip to main content
Glama

Plan an AI phone call to a lead

plan_ai_call
Read-only

Use this when the owner asks for the AI to phone one of their leads about something. Prepare an AI call to one CRM lead with its own goal (find the lead with find_crm_leads). Runs every check first: they agreed to calls, are not on do-not-call, it is 8am-9pm where they are, the daily limit, a number to call from. Optionally names ONE guide (guide_id from get_ai_caller) the AI may email them as a thank-you or to help them decide. Places NOTHING: returns what will happen and a change_token for place_ai_call. A real person's phone will ring: confirm with the user first.

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": {
      "lead_id": "<lead_id>",
      "goal": "<goal>"
    },
    "name": "plan_ai_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYesWhat this call should achieve, in plain words, e.g. "Get her to book a strategy call this week". Up to 600 characters.
notesNoAnything the AI should know or bring up on this call. Up to 1000 characters.
clientNoClient website slug (or id). Required for platform-scoped keys.
lead_idYesFrom find_crm_leads.
guide_idNoA guide from get_ai_caller the AI may email them. Leave out for none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with 'Places NOTHING' while adding substantial behavior beyond the annotations: the full precheck list (call consent, do-not-call status, 8am-9pm local time, daily limit, from-number), the optional guide email, and the returned change_token. The one soft spot is that the guide email side effect is only hinted at and could be read as conflicting with the read-only framing, but the tool itself is clearly non-mutating.

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 safety warning about a real phone ringing is front-loaded and every sentence carries information (trigger, prechecks, return, caveat). The precheck clause is slightly telegraphic ('they agreed to calls, are not on do-not-call, it is 8am-9pm where they are'), which costs a little readability but not substance.

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

Completeness5/5

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

With no output schema, the description still says what comes back ('what will happen and a change_token'), lists the gating checks that determine success, and warns that a human confirmation is required before proceeding. That is enough for an agent to plan and sequence the call correctly against place_ai_call.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema already says lead_id comes 'From find_crm_leads' and guide_id is 'A guide from get_ai_caller,' so the description mostly restates rather than extends that. It does add the constraint that only ONE guide may be named and that omitting it means none, which is modestly useful but close to baseline when the schema carries the load.

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?

The description states a specific verb and resource ('Prepare an AI call to one CRM lead with its own goal') and explicitly separates this tool from its closest sibling by noting 'Places NOTHING: returns what will happen and a change_token for place_ai_call.' An agent can distinguish plan_ai_call from place_ai_call without inspecting either schema.

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?

It gives an explicit trigger ('Use this when the owner asks for the AI to phone one of their leads about something') and routes the agent to the right helpers for prerequisites: find_crm_leads for the lead and get_ai_caller for the guide. The exclusion/next-step condition is also stated, since placing the call requires place_ai_call with the returned change_token.

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.

Resources