Skip to main content
Glama

Activate an AI agent

activate_agent
DestructiveIdempotent

Activate an agent. Future runs may spend credits and send Telegram messages according to these settings. Returns awaiting_confirmation and an approval_url: the owner must approve these exact parameters in Cormak, then retry with the SAME request_id. No work starts before approval. Reuse request_id on retries.

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": {
      "request_id": "<request_id>",
      "agent_id": "<agent_id>"
    },
    "name": "activate_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYes
request_idYesStable UUID for this exact operation. Reuse on retries. Never change it to retry an unknown result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, openWorldHint=true and idempotentHint=true, but the description goes well beyond them by disclosing the real-world side effects (credit spend, Telegram messages), the two-phase approval gate, and the returned awaiting_confirmation/approval_url fields. It also explains why idempotency matters in this flow, which the bare hint does not.

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?

Four short sentences, front-loaded with the action and its side effects, then the approval procedure. The closing 'Reuse request_id on retries' slightly restates the prior sentence about retrying with the same request_id, a small redundancy but a useful reinforcement.

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?

With no output schema, the description carries the return-value burden and does so for the approval path (awaiting_confirmation, approval_url). It does not say what a post-approval retry returns or how an agent in an already-active state is handled, minor gaps for a destructive two-parameter tool.

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 only 50%, with agent_id carrying no description at all. The description compensates strongly for request_id — stable UUID, reuse unchanged on retries, never change it to retry an unknown result — leaving agent_id to be inferred from its name and uuid format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ('Activate an agent') and immediately characterizes the consequence of activation (future runs may spend credits and send Telegram messages). It is clear what the tool does, though it never names or contrasts with adjacent lifecycle siblings such as pause_agent or update_agent.

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 gives concrete procedural guidance: an approval is required, then retry with the SAME request_id, and no work starts before approval. What is absent is any statement of when to prefer this over alternatives (e.g., pause_agent, update_agent) or what to do when approval is rejected.

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.