Skip to main content
Glama

list_campaign_target_contacts_tool

Read-only

Lists a campaign's leads (target contacts) with full search, filtering (name, company, tags, statuses, steps sent, the arm an A/B split routed them to via splitArm), sorting and pagination. Returns each lead's targetContactId — use it for lead activity or activating/deactivating a lead.

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": {
      "campaignId": "<campaignId>"
    },
    "name": "list_campaign_target_contacts_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
tagsNo
limitNo
searchNo
sortByNo
outcomesNo
splitArmNoOnly the contacts an A/B split (splitStepId) routed to one arm ('a' or 'b').
statusesNo
openCountNo
sentStepsNo
sortOrderNo
campaignIdYes
clickCountNo
nameSearchNo
openCountMaxNo
openCountMinNo
sentBySearchNo
sentStepsMaxNo
sentStepsMinNo
clickCountMaxNo
clickCountMinNo
companySearchNo
templateTypesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered by structured data. The description adds value beyond that by disclosing the key return field (targetContactId) and its intended reuse, plus noting pagination and sorting exist — though it omits pagination defaults and the maximum page size of 100.

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?

Two sentences, front-loaded with the core action and scope, then the return-value hook. The long parenthetical filter enumeration is dense but each item maps to a real parameter family, so little is wasted.

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 23-parameter read tool with no output schema, the description covers purpose, filter families, and the main return identifier, which is a reasonable high-level summary. It is still incomplete on roughly a third of the parameters and on pagination limits, which an agent would need to call the tool well.

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?

With 23 parameters and only 4% schema description coverage, the description must carry the burden, and it compensates only at the family level: name, company, tags, statuses, steps sent, splitArm, sorting, pagination. It leaves the related but distinct params (search vs nameSearch vs companySearch, outcomes, templateTypes, and the openCount/clickCount/sentSteps min-max range pairs) unexplained, so an agent still has to infer their behavior from bare schema.

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 and resource ('Lists a campaign's leads (target contacts)') and scopes it to a campaign via the required campaignId. It also states the distinctive output field (targetContactId), so an agent can distinguish this from campaign-level or analytics siblings without opening the schema.

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 gives a concrete downstream usage statement: use the returned targetContactId 'for lead activity or activating/deactivating a lead', which implicitly routes to the activity and activate/deactivate siblings. It does not state explicit exclusions (e.g., when to prefer a broader contact search instead), so it falls short of full when/when-not guidance.

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.