Skip to main content
Glama

set_engagement_control

Idempotent

End or restore engagement between one agent and a specific consumer without blocking their whole tenant, optionally returning a fixed message and applying a day-based expiry.

Instructions

End or restore the engagement between one agent and one consumer, without blocking the consumer tenant-wide. Evaluated after the tenant denylist and before session control

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": {
      "agent_id": "<agent_id>",
      "user_key": "<user_key>",
      "action": "<action>"
    },
    "name": "set_engagement_control"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYescanned stops engagement and returns the fixed message; engage resumes engagement
reasonNoShort operational reason
messageNoRequired for canned mode. Plain text without links or HTML.
agent_idYesAgent UUID
user_keyYesConsumer identity, using the same key as consumer_key and person-scoped memory
expires_in_daysNoControl expiry in days; omit for no expiry

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.2.4
    • changedInput schema / properties / action / description
      Previous value: -"canned = parar de engajar e responder message; engage = reabrir"New value: +"canned stops engagement and returns the fixed message; engage resumes engagement"
    • changedInput schema / properties / agent_id / description
      Previous value: -"UUID do agente"New value: +"Agent UUID"
    • changedInput schema / properties / expires_in_days / description
      Previous value: -"Prazo do bloqueio em dias. Omitido = sem prazo."New value: +"Control expiry in days; omit for no expiry"
    • changedInput schema / properties / message / description
      Previous value: -"Obrigatória com canned. Texto puro, sem links/HTML."New value: +"Required for canned mode. Plain text without links or HTML."
    • changedInput schema / properties / reason / description
      Previous value: -"Motivo operacional (curto)"New value: +"Short operational reason"
    • changedInput schema / properties / user_key / description
      Previous value: -"Identidade do consumidor (mesma chave de agent_memory / consumer_key)"New value: +"Consumer identity, using the same key as consumer_key and person-scoped memory"
  2. Addedv2.2.2

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations, which already declare this as an idempotent, non-destructive mutation, the description adds meaningful behavioral context: it operates per agent and consumer, and it is evaluated after the tenant denylist and before session control. It does not describe authorization requirements, expiry behavior, or return values, but the annotations and schema reduce the burden.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two compact sentences with zero waste, and the core purpose plus scope constraint are front-loaded. The evaluation-order detail follows naturally without obscuring the main action.

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 six-parameter mutation tool with complete schema descriptions and annotations covering safety and idempotency, the description provides enough purpose and scoping context to call it correctly. Minor gaps remain around expiry behavior and outcomes, but these are largely delegated to the schema and annotations.

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 100%, so the schema already documents action modes, required message, optional reason, user_key, and expiry. The description adds only the high-level scope mapping of 'one agent and one consumer' and does not explain parameter semantics beyond that.

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 gives a specific verb pair ('End or restore') and a precisely scoped resource ('the engagement between one agent and one consumer'). It also distinguishes the scope from tenant-wide blocking, so an agent can tell this apart from broader denylist or session controls.

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?

The 'without blocking the consumer tenant-wide' clause provides clear context for when this per-agent/per-consumer control is appropriate rather than a tenant-wide block. It also states evaluation precedence, but it does not explicitly name or compare against sibling tools such as set_session_control or set_consumer_denylist.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools