Skip to main content
Glama

Assign Leads To Campaign

assign_leads_to_campaign

Assign one or more of the user's existing leads to one of the user's campaigns (both must be owned by the caller). Returns how many were assigned. Idempotent. Requires authentication.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lead_idsYesLead ids to assign (from search_outreach_leads).
campaign_idYesTarget campaign id (from list_outreach_campaigns).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "text": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "text"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Added

TDQS

A3.5/5.0
Behavior1/5

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

The description claims 'Idempotent' while the annotation idempotentHint is false. This is a direct contradiction, which severely misleads an agent about the tool's behavior. Any other behavioral notes (returns count, requires auth) are overshadowed by this inconsistency.

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?

The description is a single efficient sentence with all key facts front-loaded: action, ownership, return value, idempotency, and auth. No wasted words.

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 tool, the description covers the essentials, but the contradiction on idempotency leaves the agent uncertain about retry behavior. This gap prevents full completeness.

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% with descriptions pointing to source tools for both parameters. The description adds the ownership constraint that applies to both parameters, but no further parameter-level detail. Baseline 3 is appropriate.

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 clearly states the action (assign), the resource (leads to campaign), and the ownership constraint. It distinguishes from sibling tools like search_outreach_leads or create_outreach_campaign by specifying 'existing leads' and 'existing campaigns' owned by the caller.

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?

The description implies usage by indicating leads and campaigns must already exist and be owned by the caller, which is a prerequisite. It doesn't explicitly name alternatives, but the context is clear enough for an agent to know when to apply this tool versus others.

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