Skip to main content
Glama

Apply an action to DM conversations

apply_conversation_actions

Applies one action to up to 100 DM conversations: mark done or open, mark read or unread, add or remove tags, set the sentiment, assign to a team member or remove the assignee (up to 50; the assignee is notified in replient.ai and by email unless they are the caller), add a team note (one conversation; mentioned team members are notified), or stop the running DM automation. Marking done or read also marks the conversation as seen on Instagram and Facebook where the platform allows it, so the contact may see "Seen". Returns one result per id (ok, skipped when nothing changed, failed with the reason). Every change is logged in the conversation's activity protocol with this app as its origin. Each id counts against the rate limit.

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": {
      "brand": "<brand>",
      "ids": "<ids>",
      "action": "<action>"
    },
    "name": "apply_conversation_actions"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesConversation ids (1-100); one conversation is ids: [id].
brandYes
actionYesmark_done, mark_open: status. mark_read, mark_unread: read state. add_tags, remove_tags: team tags (params.tags; remove also removes AI tags). set_sentiment: params.sentiment. assign: to "me" or a team member who can open DMs (params.userId, up to 50 ids; the assignee is notified in replient.ai and by email unless they are the caller). unassign: removes the assignee. add_note: a team note visible to the whole team (params.text, optional params.mentionUserIds; one id; mentioned people are notified). stop_automation: stops the running DM automation for this contact; the automation stays on for everyone else and a stopped run cannot be resumed.
paramsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the generic profile (readOnly=false, destructive=false, idempotent=false, openWorld=true), and the description goes well beyond them: platform "Seen" side effects on Instagram/Facebook, email and in-app notifications to assignees and mentioned members, activity-protocol logging with this app as origin, per-id rate-limit cost, and the irreversibility of stop_automation. It also discloses the return shape (one result per id: ok, skipped, failed with reason).

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?

It is front-loaded with the action list and then behavior, so an agent can scan it quickly despite the density. There is mild redundancy with the schema (assignee notification is stated both here and in the userId property, and the ids/handling text repeats schema wording), but no sentence is wasted.

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 batch mutation tool with no output schema, the description covers everything an agent needs: allowed actions, per-action parameter expectations, batch limits, side effects, rate-limit cost, and whether changes are reversible. The only unaddressed element is the `brand` scope parameter, a minor omission.

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?

With 50% schema coverage, the description compensates well: it explains which action consumes tags, sentiment, userId ("me" or a team member who can open DMs), text, and mentionUserIds, plus the notification consequences of the latter two. Gaps remain for the required `brand` parameter and the tags array's max of 10, which appear only in the 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 opens with a specific verb and resource ("Applies one action to up to 100 DM conversations") and then enumerates every supported action. The scoping to "DM conversations" distinguishes it from the sibling comment and message action tools without needing to name them.

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 clearly states the operational context: one action per call, batched over 1-100 ids, with per-action constraints such as add_note requiring exactly one id. It does not explicitly say when to prefer the comment/message equivalents or when not to use this tool, so routing is implied by resource type rather than stated.

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