Skip to main content
Glama

Deactivate agent

deactivate_agent
Destructive

Deactivate (archive) an AI agent/specialist from the team. Use when user says "remove [agent]", "deactivate [agent]", "archive [agent]", "fire [agent]", "delete [agent]". The agent is soft-deleted (is_active=false) and can be reactivated later. Cannot deactivate Linnet (the orchestrator).

Routing: Before deactivating, resolve agent_id via get_team_roster and confirm with the user if names are similar. Agent reports ride the activity plan (add_agent_activity / trigger_agent_activity).

[sensitive-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time. Call it on the first clear ask; the card is the yes — do not re-ask in chat.]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoOptional reason for deactivation
agent_idYesUUID of the agent to deactivate
companyIdYesFreedomOS company id to act within (you must be a member). Required for company-scoped tools.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds meaningful context: the agent is soft-deleted (is_active=false), can be reactivated later, and Linnet cannot be deactivated. It also discloses the sensitive-tier approval behavior. Minor gap: it doesn't state what happens to the agent's activities or reports beyond 'ride the activity plan'.

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?

The description is dense but well-organized: trigger phrases, soft-delete semantics, routing, and approval flow are each given their own sentence. It's longer than average but every sentence earns its place; the approval paragraph is slightly verbose but contains critical operational guidance.

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 destructive, company-scoped mutation with no output schema, the description covers the key operational concerns: how to resolve the target, what the deletion semantics are, what cannot be deleted, and how approvals work. It doesn't describe the return value, but the absence of an output schema and the presence of clear side-effect documentation make this a minor gap.

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 all three parameters. The description adds context for agent_id (resolve via get_team_roster) and companyId (company-scoped), but doesn't add meaning for the optional reason parameter beyond what the schema provides. Baseline 3 is appropriate.

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 specific verb and resource ('Deactivate (archive) an AI agent/specialist from the team') and lists the exact user phrasings that should trigger it. It also distinguishes itself from siblings like reactivate_agent and update_agent by clarifying the soft-delete semantics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit routing instructions: resolve agent_id via get_team_roster, confirm with the user if names are similar, and notes that agent reports ride the activity plan. It also provides a clear approval-flow directive ('Call it on the first clear ask; the card is the yes — do not re-ask in chat').

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