Skip to main content
Glama

Get leads

smartwebchat_get_leads
Read-only

Retrieve the leads a website chatbot captured from visitors — contact requests, appointment bookings and callback requests, with the visitor's message and contact details. Appointment requests saved as bookings come after the leads as entries with type 'booking', with the requested service and time; their status is new, forwarded, confirmed or cancelled, and smartwebchat_update_lead does not change it. Without botId, returns the leads of every chatbot in the account. Needs an API key. Also accepts an OAuth access token with scope leads:read (without botId also assistant:read).

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

Input Schema

NameRequiredDescriptionDefault
botIdNoOptional: only return leads of this chatbot. Omit for all chatbots in the account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, the description discloses authentication requirements (API key, or OAuth token with leads:read, plus assistant:read when botId is omitted), the enumerable booking statuses (new, forwarded, confirmed, cancelled), and the crucially non-obvious fact that update_lead cannot change a booking's status. These are behavior details an agent could not derive from the structured fields.

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?

Content is front-loaded with the resource and record types, then moves to the booking caveat and finally auth. Slightly dense and run-on in the booking/status sentence, but no filler or redundancy relative to the information conveyed.

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 read-only list tool with no output schema, the description covers returned entry types, scoping, auth, and a cross-tool caveat, which is nearly everything needed. It omits result-size or pagination behavior, the one gap an agent calling a potentially large list endpoint might hit.

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 only parameter (botId) is already fully documented in the schema as 'Omit for all chatbots in the account'. The description restates this scoping rule rather than adding format or edge-case detail, so it lands at the baseline for a well-documented single parameter.

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 — 'Retrieve the leads a website chatbot captured' — and enumerates the concrete record kinds (contact requests, appointment bookings, callback requests) plus field contents. It also clarifies that booking entries appear as type 'booking' inside this same result, which prevents an agent from hunting for a separate bookings tool.

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

Usage Guidelines3/5

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

Usage is implied through the botId scoping rule ('Without botId, returns the leads of every chatbot in the account') and the note that smartwebchat_update_lead does not change booking status. However, there is no explicit when-to-use guidance against sibling readers such as smartwebchat_get_fit or smartwebchat_get_quote, so the agent must infer which tool answers which question.

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