Skip to main content
Glama

Restore agent activity

restore_agent_activity
Destructive

Bring ONE retired activity back onto an agent's plan (the inverse of remove_agent_activity and split_agent_activity): the entry moves from jd_content.archived_activities back to the live plan with only its archive markers removed. Use when the operator asks to bring back, un-retire or restore an activity, or to undo a remove or a split. If it had been split, the pieces it was split into are retired in the same call. Refuses if an activity with that name is already live — nothing is overwritten.

Routing: Operator says bring back / un-retire / restore an activity → this with the exact retired name. Something new → add_agent_activity.

[write-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
agent_idNoUUID of the agent. Optional if agent_name is provided.
companyIdYesFreedomOS company id to act within (you must be a member). Required for company-scoped tools.
agent_nameNoName of the agent. Provide this or agent_id.
activity_nameYesEXACT (case-insensitive) name the activity had when it was retired.
remove_piecesNoWhen the activity was archived by a split: also retire the pieces it was split into (default true — one call undoes the split).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes further: it explains the entry moves from archived_activities back to the live plan with only archive markers removed, that split pieces are retired in the same call, and that it refuses if an activity with that name is already live so nothing is overwritten. It also discloses approval-tier behavior, which is valuable beyond the annotations.

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 longer than minimal but every section earns its place: behavior, use cases, routing, refusal behavior, and approval note. It is front-loaded with the core inverse relationship before the more verbose routing and approval guidance, though some redundancy exists in repeating the restore trigger phrases.

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?

Given there is no output schema and the tool has complex state-changing behavior, the description covers everything needed for a correct call: exact trigger semantics, required naming, split-piece handling, the no-overwrite guarantee, and approval expectations. Nothing important is left unspecified.

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 parameters including agent_id/agent_name alternatives and remove_pieces behavior. The description adds contextual meaning around 'exact retired name' and split-piece handling, but it mostly reinforces rather than supplements 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 states a specific verb and resource: 'Bring ONE retired activity back onto an agent's plan.' It also explicitly frames itself as the inverse of remove_agent_activity and split_agent_activity, which distinguishes it from those siblings immediately.

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?

It gives explicit trigger phrases ('bring back, un-retire or restore an activity, or to undo a remove or a split'), a clear Routing section, and explicitly names add_agent_activity as the alternative when the operator wants something new. No inference is required.

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