Skip to main content
Glama

Mark a lead

leads_mark
Idempotent

Marks one lead as the owner does on Taseli's Leads page: good, bad (not relevant), closed (became a customer; value = what the deal was worth, in the business's currency) or new again. It changes the business's own lead record, never an ad account; good leads and deals then teach Google and Meta which leads matter, where the owner switched that on. The owner, an admin or a manager only. The lead's id comes from the list of leads.

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": {
      "id": "<id>",
      "status": "<status>"
    },
    "name": "leads_mark"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe lead's id, from the list of leads.
quoteNoIn Taseli's own chat: the person's own words asking for it in this message, as they wrote them.
valueNoclosed only: what the deal was worth.
statusYesgood, bad (not relevant), closed (a customer) or new.
languageNoAnswer language. The business's language by default.

Output Schema

NameRequiredDescriptionDefault
idNo
noteNoA plain note instead of data (nothing connected yet, not available here).
errorNoquote, role, id, status, value, not_found or unavailable.
valueNo
statusNo
truncatedNo
truncatedNoteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (which already declare non-read-only, idempotent, non-destructive, closed-world), the description adds substantive behavior: the change is confined to Taseli's lead record, never the ad platform, and good/closed markers propagate as conversion signals to Google and Meta where enabled. It omits reversible-vs-not and any rate limits, but the side-effect surface is well disclosed.

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?

The purpose is front-loaded in the first clause, followed by status definitions, permissions and data-source note in a logical order. The middle clause about teaching Google and Meta is slightly long and clause-stacked, but each sentence still carries information an agent needs.

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 write tool with an output schema and full annotation coverage, this covers the essentials: legal status values, who can call it, where the id originates, and how value is denominated. The remaining gap is the quote/language parameters, which are only explained in the schema, not the description.

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 coverage is 100%, so the schema already documents all five parameters and both enums, making 3 the baseline. The description adds only two genuinely new bits of meaning: that value is denominated in the business's currency and that value applies to the closed state. The quote and language parameters are not discussed at all.

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?

The description names a specific verb (marks) and resource (one lead) and enumerates the four resulting states with plain-language meanings (good, bad/not relevant, closed/became a customer, new again). It also distinguishes the target of the write (the business's own lead record, never an ad account), so an agent can tell it apart from sibling read tools like leads_list without opening schemas.

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?

It states who may call it (owner, admin or manager only) and where the required id comes from (the list of leads), which is actionable context. It does not explicitly route the agent away from neighboring tools such as lead_quality or lead_access_status, but the trigger conditions for each status are clear enough to act on.

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