Skip to main content
Glama

Atribuir responsável

assign_prospects

Set who sends the WhatsApp tasks of people in ONE campaign: their owner ("Responsável"), a member of the workspace. With owner, the people in prospectIds go to that member (owner null takes it off: nobody). With distributeAmong, the people in prospectIds, or without prospectIds everyone in the campaign with no owner yet, are dealt in turn among those members (round-robin, oldest first). Members are named by first name, full name, e-mail or user id; a name that matches nobody, or more than one member, answers with the workspace's members and changes nothing. Only the WhatsApp tasks follow the owner: e-mail and LinkedIn keep going from the campaign's sender. Free, and nothing is sent.

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": "assign_prospects"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerNoThe member who gets them (name, e-mail or user id), or null for nobody.
campaignIdYesExact campaign UUID.
prospectIdsNoThe people to change. Required with owner; with distributeAmong, omit to deal everyone in the campaign without an owner.
distributeAmongNoMembers to deal the people among, in turn (names, e-mails or user ids).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), the description discloses the blast radius (only WhatsApp tasks move; e-mail and LinkedIn are unaffected), the round-robin ordering rule, the null-owner meaning ('nobody'), the failure mode for ambiguous or unmatched member names (returns workspace members, changes nothing), and that the call is free with nothing sent. That is substantial behavioral context the annotations cannot carry.

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?

Purpose is front-loaded in the first clause, and each subsequent sentence covers a distinct rule (modes, member naming, channel scope, cost). It is dense and slightly over-packed into a single paragraph, and a little restates identifier forms already in the schema, but there is no filler.

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 four-parameter mutation with no output schema, the description covers both invocation paths, error behavior, and side-effect scope, which is what an agent needs to call it correctly. The only gap is that the success response (what is returned on a successful assignment) is never described.

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 schema already documents all four parameters and the baseline is 3. The description adds genuine meaning on top: how owner and distributeAmong interact, that prospectIds is required with owner but omittable with distributeAmong (scoping to unowned prospects), and accepted member identifier forms including ambiguity resolution — details the schema only hints at.

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 states a concrete verb and resource — setting the owner who sends WhatsApp tasks for prospects in one campaign — and bounds the scope ('ONE campaign', 'Only the WhatsApp tasks follow the owner: e-mail and LinkedIn keep going from the campaign's sender'). That channel scoping lets an agent distinguish this from campaign/prospect-list siblings without opening any 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 lays out two mutually exclusive invocation modes clearly: owner (+ required prospectIds) versus distributeAmong (prospectIds optional, defaulting to everyone unowned, round-robin oldest first). It also states the when-not case via ambiguity handling. It stops short of naming a sibling alternative for rebalancing versus, say, add_prospects_to_campaign, so it is not a full 5.

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.