Skip to main content
Glama

leads_campaign_log_change_status

Manually transition the status of a specific CampaignLog. Allowed transitions: SENT <-> FAILED <-> REPLIED (bidirectional), APPROVED -> CREATED. Blocked when a later sequence step already exists for the same lead+campaign. Moving to REPLIED (40) records a reply: it stamps replied_at, cancels the rest of the sequence, and marks a lead that was NEW / IN_PROGRESS / COMPLETED as REPLIED. Moving away from REPLIED clears replied_at.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/campaign-logs/{campaign_log_sqid}/change-status/

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_log_sqid": "<campaign_log_sqid>",
      "sqid": "<sqid>",
      "lead_name": "<lead_name>"
    },
    "name": "leads_campaign_log_change_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes
notesNo
statusNoLead lifecycle stage: NEW → IN_PROGRESS → REPLIED / INTERESTED / NOT_INTERESTED (a person replied; REPLIED = needs a human to read it) or COMPLETED (campaign finished without a reply); also UNSUBSCRIBED, FAILED, ARCHIVED. Set automatically from replies; override to record your own judgement of a reply (e.g. REPLIED → INTERESTED). UNSUBSCRIBED is permanent: an opt-out can't be changed back. * `NEW` - New * `IN_PROGRESS` - In Progress * `REPLIED` - Replied * `INTERESTED` - Interested * `NOT_INTERESTED` - Not Interested * `COMPLETED` - Completed * `FAILED` - Failed * `UNSUBSCRIBED` - Unsubscribed * `ARCHIVED` - Archived
contactNoPrimary contact value — an email address when contact_type='email', a phone number or LinkedIn URL otherwise.
contextNoFree-form JSON object for workspace-defined custom fields (see context_fields). Keys referenced as ${field_key} in sequence step templates. PATCH this via the 'context' action to merge rather than replace.
lead_nameYesDisplay name (usually 'First Last' or company name for company-only leads).
contact_typeNoChannel: 'email', 'phone', or 'linkedin'. Email is the only channel that can drive campaigns. * `EMAIL` - Email * `PHONE` - Phone * `LINKEDIN` - LinkedIn * `OTHER` - Other
last_sale_atNoDate of the last sale to this recipient.
prior_customerNoThe recipient bought from you before (existing-customer rules).
role_relevanceNoOne sentence on why the offer fits this person's job. Required by some countries' rules for named addresses.
declared_countryNoCountry you state for this recipient: ISO 2-letter code or English name. It can make the result stricter, never looser, when other sources disagree. Changing it re-resolves recipient_country.
campaign_log_sqidYes
discovery_person_guidNoGUID of the discovery Person this lead was sourced from (if any). Must reference a GUID the workspace has access to. Set to null to unlink.
discovery_company_guidNoGUID of the discovery Company this lead was sourced from (if any). Used by enrichments to look up company metadata. Must reference a GUID the workspace has access to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses that moving to REPLIED stamps `replied_at`, cancels the remainder of the sequence, and rewrites the lead status, that moving away clears `replied_at`, and that the operation is blocked by later sequence steps. These are exactly the side effects an agent cannot infer from the schema.

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?

Three tightly packed sentences: transition rules first, blocking condition second, side effects third. Nearly every clause earns its place; the trailing `Method:` line restates routing information that is already implicit in the tool definition and could be dropped.

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 14-parameter mutation with no annotations and no output schema, the description covers the mutation semantics and side effects thoroughly. The remaining shortfall is that it says nothing about what the call returns or that `lead_name` is required, and the status-vocabulary mismatch with the schema leaves one required parameter under-explained.

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 79%, so the enums and field meanings are already largely documented; the description's added value is the transition constraints and the reply side effects. However, the transitions it lists (SENT, APPROVED, CREATED) do not appear in the `status` enum the schema exposes (NEW, IN_PROGRESS, REPLIED, ...), leaving it ambiguous whether `status` is the campaign-log status or the lead status — a gap the description should close.

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?

States a specific verb and resource ('Manually transition the status of a specific CampaignLog') and pins the scope to a campaign log rather than a lead, which separates it from leads_update and other lead-level siblings. The transition table immediately tells the agent what the tool's domain actually is.

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?

Explicitly enumerates which transitions will succeed (SENT <-> FAILED <-> REPLIED, APPROVED -> CREATED) and the condition under which the call is blocked (a later sequence step exists for the same lead+campaign). That is strong when/when-not guidance, but it never names an alternative tool for the cases this one refuses.

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.