Skip to main content
Glama

Get a lead

get_lead
Read-onlyIdempotent

Get one lead of an agent: name, phone, status, the AI's summary, custom fields, who it is assigned to, whether it is pinned, the contact_id and conversation_id it came from, and where that conversation came from (attribution: the origin touch, with the ad's title and Meta id when it was an ad). Get the lead's id from list_leads.

Input Schema

NameRequiredDescriptionDefault
lead_idYesA lead of the agent. Another agent's lead is `404 not_found`.
agent_idYesThe agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered by structured data. The description adds genuine behavioral context beyond that by spelling out what fields come back, including attribution details (origin touch, ad title, Meta id) that annotations cannot convey.

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?

Front-loaded with the verb and the single-object scope, followed by a compact returned-field inventory and a short id-sourcing pointer. The field list is long but every item is meaningful payload information, with no filler sentences.

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 takes on the return-value burden and does so thoroughly, enumerating fields and nested attribution. Required params, error codes, and id provenance are covered between the description and the schema, leaving nothing an agent needs to call it correctly.

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 both parameters carry their own 404/403 semantics in the schema, so the description need not document them. It contributes only the indirect hint that lead_id comes from list_leads, which is the baseline 3 when the schema does the heavy lifting.

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 ('Get one lead of an agent') and enumerates the payload it returns (name, phone, status, AI summary, custom fields, assignment, pin state, ids, attribution origin). It also distinguishes itself from list_leads, so an agent can separate the single-lead fetch from the bulk listing.

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

Usage Guidelines4/5

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

The closing sentence 'Get the lead's id from list_leads' gives clear, actionable context for when and how to reach this tool, chaining it after the listing call. It offers no explicit when-not or exclusion cases, which keeps it short of a 5.

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