Skip to main content
Glama

Log a lead

create_lead

Record an enquiry that arrived off-platform: a walk-in, a referral, a card taken at an event. Needs at least one of name, email or phone. The source is always "manual" and cannot be set, and source drives attribution and reporting, so a lead recorded here counts as manual even if it really came from a call, a form or an ad. The matching contact is created or linked automatically IN ALMOST EVERY CASE, and the result tells you when it was not. contact_linked false means the lead IS saved but no contact was linked to it, so it is on nobody's timeline and is invisible to contact search. No tool can attach it afterwards, and running create_lead again leaves a duplicate lead behind even when it succeeds. The enquiry itself can still be preserved with a contact for the same person (create_contact) and an activity on that contact (log_activity) saying what they wanted: that puts it on their timeline, which the orphaned lead never will. create_contact alone does not rescue this lead. No new-lead alert is sent. The message you send is recorded as your team's internal note about this person, never as something they wrote: the AI reply draft is told not to quote it, and get_lead, list_leads and get_contact all return it with its authorship attached. It is still your own note, so write it for your team and assume a colleague will read it on the lead's record.

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": "create_lead"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe person name
emailNoEmail address
phoneNoPhone number, any format
messageNoA short note for your own team on what they want. This is stored and surfaced as YOUR note about the person, never as their own words.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / message / description
      Previous value: -"A short note for your own team on what they want. This is stored and surfaced as YOUR note about the person, never as their own words, so it is never quoted back to them: write it plainly rather than trying to phrase it as a quote."New value: +"A short note for your own team on what they want. This is stored and surfaced as YOUR note about the person, never as their own words."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only say non-read-only, non-destructive, closed-world; the description goes far beyond that by disclosing the forced 'manual' source and its attribution/reporting consequences, the absence of a new-lead alert, and the contact_linked false failure mode. The one gap is that it does not describe the rest of the success response, though it partially compensates by telling the agent how to interpret contact_linked.

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

Conciseness3/5

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

The purpose and the orphaned-lead warning are front-loaded and clearly the priority, but the prose is long and restates the same points: the duplicate/no-attach warning is repeated, and three sentences plus writing advice re-explain message authorship already covered by the schema. Capitalized emphasis ('IN ALMOST EVERY CASE', 'IS saved') is loud where plain wording would read better.

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?

No output schema exists, yet the description explains how to read the meaningful part of the result (contact_linked false) and what that implies for timeline visibility and search. For a four-parameter mutation tool with a non-obvious silent failure mode, nothing an agent needs in order to call it safely is missing.

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 would be 3, but the description adds a constraint the schema does not express: at least one of name, email or phone is needed even though all four properties are optional. It also reinforces the unusual authorship semantics of 'message', which the schema mentions but understates in consequence.

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 ('Record an enquiry that arrived off-platform') and immediately scopes it with concrete examples (walk-in, referral, card at an event). It is clearly distinguished from the sibling create_contact path, which is explicitly named.

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?

Explicitly defines when this tool applies (off-platform enquiries only, since source is forced to 'manual') and names alternatives with conditions: create_contact plus log_activity to preserve an enquiry on a timeline. It also states the exclusion that 'create_contact alone does not rescue this lead', closing the obvious wrong path.

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