Skip to main content
Glama

add_lead_to_campaign

Destructive

Add a lead to a campaign (creates a campaign_targets row). No-op if already present.

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": {
      "campaign_id": "<campaign_id>",
      "lead_id": "<lead_id>"
    },
    "name": "add_lead_to_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
lead_idYesID of the lead
campaign_idYesID of the campaign

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / campaign_id / description
      Added value: +"ID of the campaign"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
  2. First observed

TDQS

B3.3/5.0
Behavior2/5

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

The description adds real value by disclosing the write target (a campaign_targets row) and the duplicate-handling behavior, which the annotations do not express. But "No-op if already present" describes effectively idempotent behavior while the annotation declares idempotentHint=false, and destructiveHint=true is never explained (nothing suggests data is removed), leaving the agent with conflicting retry-safety signals.

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?

Two short clauses, zero filler, with the core action stated first and the side-effect plus duplicate behavior immediately after. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter write tool with no output schema and full schema coverage, the description covers what is created and what happens on repeats. It is not complete enough on the safety side: the destructiveHint flag is unaddressed and the idempotency conflict is left unresolved for the caller.

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% and both required parameters are documented in-schema, so the baseline is 3. The description adds only the relational framing (a lead_id is added to a campaign_id); it offers no extra detail on ID format or source, which is acceptable given the schema already covers it.

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?

"Add a lead to a campaign" names a specific verb and resource, and the parenthetical "creates a campaign_targets row" pins down the underlying record being written, so the operation is unambiguous. It does not distinguish itself from adjacent lead tools (create_lead, update_lead, add_lead_message), but the purpose itself is precise.

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?

The "No-op if already present" note implies this is the tool to call when you want to attach an existing lead to a campaign, and that calling it on an existing membership is harmless. However, no alternatives are named and no prerequisites (campaign must exist, lead must exist, required permissions) are stated, so the agent must infer when this beats update_lead or create_lead.

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.