Skip to main content
Glama

sync_campaign_responses

DestructiveIdempotent

Match incoming mails to campaign targets and mark them: bounce reports → bounced, auto-replies → auto_reply (an auto-reply saying the address is gone → bounced), 'kein Interesse'/unsubscribe → not_interested (lead lost, no more mails), any other reply → replied (lead status replied, a follow-up todo, and next_action set so the lead drops out of the next serial follow-up). Also moves targets whose mail went out from pending to sent. Only moves states forward; meeting/won/manual states are never overwritten. Scans mails since since (ISO, default 60 days back) in all mailboxes of the tenant. dry_run=true only reports. Returns per-lead changes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sync_campaign_responses"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoOnly entries from this point in time on (ISO 8601)
dry_runNoOnly simulate and report what would happen; change nothing

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the full state machine: only forward transitions, meeting/won/manual states never overwritten, unsubscribe meaning lead lost with no more mails, and replied triggering a follow-up todo plus next_action so the lead drops out of the next serial follow-up. It also states the return shape ('per-lead changes') and the dry_run no-op behavior, which is exactly the mutation context destructiveHint=true implies.

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?

Front-loaded with the core action and the state mapping, and every clause carries information. It is a dense single block with nested parentheticals, which makes it slightly harder to scan than a bulleted mapping would be, but nothing is redundant.

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

Completeness5/5

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

For a two-parameter mutation tool with no output schema, the description covers inputs, side effects, guardrails on which states are protected, and the return value. An agent has everything needed to decide whether to call it and to predict the outcome.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: `since` defaults to 60 days back and scopes the scan across all tenant mailboxes, and dry_run is described as report-only with no changes. That is useful semantics beyond the schema's own wording.

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 ('Match incoming mails to campaign targets and mark them') and then enumerates the exact state mapping for each mail class, so an agent knows precisely what the tool does. It also covers the secondary effect of moving pending targets to sent, which distinguishes it from a pure mail-reading tool.

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?

Gives clear operating context: it scans all mailboxes of the tenant since `since`, defaults to 60 days back, and dry_run only reports. It does not explicitly name an alternative sibling (e.g. bot_sync_replies or sync_gmail) or state when not to use it, so the routing guidance is implicit rather than explicit.

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.