Skip to main content
Glama

Update lead status

smartwebchat_update_lead
DestructiveIdempotent

Change the status of a captured lead, for example to mark it as contacted or closed. Writes to the account. Needs a key with full access; a read-only key gets 403 here. Also accepts an OAuth access token with scope leads:write.

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": {
      "botId": "<botId>",
      "leadId": "<leadId>",
      "status": "<status>"
    },
    "name": "smartwebchat_update_lead"
  }
}

Input Schema

NameRequiredDescriptionDefault
botIdYesID of the chatbot the lead belongs to
leadIdYesID of the lead
statusYesNew status: 'new', 'contacted' or 'closed'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=true, idempotentHint=true), so the bar is lower; the description still adds real value by spelling out auth requirements — full-access key required, read-only keys get 403, OAuth token needs the leads:write scope. It does not explain what a 'destructive' status change actually overwrites or whether prior status is recoverable.

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?

Three tight sentences, front-loaded with purpose then auth constraints, with no filler. The auth sentences are slightly dense but each carries distinct information the agent needs before calling.

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 simple three-required-parameter mutation with full schema coverage and rich annotations, the description covers purpose and the auth failure mode, which is the main practical blocker. It omits return behavior and any failure modes beyond 403, but there is no output schema requiring explanation.

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% with an enum on status, so the schema already carries param meaning; the description only echoes the enum values as examples. Baseline 3 is appropriate since no additional semantics (e.g., transition rules, ID formats) are contributed.

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

Purpose4/5

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

States a specific verb and resource ('Change the status of a captured lead') plus concrete example statuses, which clearly separates it from read-oriented siblings like smartwebchat_get_leads. It stops short of naming an alternative tool explicitly, but the mutation intent is unambiguous.

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?

Gives usage context through examples ('mark it as contacted or closed') but never states when NOT to use it, whether other lead tools must be called first, or what to do if a status transition is invalid. Guidance is implied rather than explicit.

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