Skip to main content
Glama

Remove a lead source

remove_lead_source
DestructiveIdempotent

Remove a lead source for good: its address stops accepting leads right away, so anything still sending to it is lost. Leads it already brought in are kept. To stop it for now, use update_lead_source with enabled false. Admins only. Ask the user to confirm before calling this tool.

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_source_id": "<lead_source_id>"
    },
    "name": "remove_lead_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idNoLeave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace.
lead_source_idYesLead source id from list_lead_sources

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Act in one of this organization's workspaces (id from list_workspaces or create_workspace). Leave empty to act in the connected organization."New value: +"Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
  2. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the bar for extra context is lower. The description does add genuine value beyond them: the address stops accepting leads immediately, inbound leads in flight are lost, previously captured leads are retained, and admin permission plus user confirmation are required. It stops short of describing the response or any failure modes (e.g. what happens to a lead source referenced by active routing).

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

Conciseness5/5

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

Four short sentences, front-loaded with the consequence and the permanent/temporary distinction, then the permission and confirmation constraints. Every clause carries decision-relevant information; none is boilerplate.

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?

For a destructive two-parameter mutation with no output schema, the description covers the states an agent needs before calling: irreversibility, data retention, the softer alternative, authorization, and the confirmation requirement. Nothing material is left for the agent to infer.

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 documentation (workspace_id explains the default-to-connected-organization behavior and points to list_workspaces; lead_source_id points to list_lead_sources). The description adds nothing about parameter meaning, so the baseline 3 applies rather than a higher score.

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?

"Remove a lead source for good" is a specific verb + resource, and the very first clause pins down the scope (permanent removal rather than disabling). It is unambiguous against siblings such as update_lead_source or list_lead_sources.

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 names the alternative for the non-destructive case ("To stop it for now, use update_lead_source with enabled false"), states the actor prerequisite ("Admins only"), and adds a workflow instruction ("Ask the user to confirm before calling this tool"). When-to-use, when-not-to-use, and the alternative are all present.

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