Skip to main content
Glama

work_as_agent

DestructiveIdempotent

Work as one of your agents from THIS connection — everything you then do is attributed to it, recorded against it, and subject to its permissions and its prediction gate. Pass agent_id (the id from list_agents, or the agent's exact name — resolved only within this tenant) to become that agent; LEAVE agent_id OUT (or pass null/empty) to go back to working as yourself — that direction always works and is never refused. You keep seeing and steering every agent either way; this only decides whose work it is. When SWITCHING from one agent to another and the block of work you are leaving is worth an episode (an open one, many small steps, or a long stretch), this ASKS instead of switching — pass skip_episode=true to switch anyway. Going back to yourself never asks; it reports what stayed unrecorded and lets you out. Never blocked by the prediction gate, so you can always get back out.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "work_as_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNoID of the agent
skip_episodeNoSwitch agents even if the work being left is worth an episode

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
    • addedInput schema / properties / skip_episode / description
      Added value: +"Switch agents even if the work being left is worth an episode"
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it discloses that all subsequent work is recorded against the impersonated agent and governed by its permissions and prediction gate, that switching may be intercepted by an episode prompt, and that exiting reports what stayed unrecorded. This is exactly the kind of consequence information annotations cannot convey, and nothing contradicts destructiveHint=true or idempotentHint=true.

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 and the switch/revert/skip_episode logic follows in a readable order. It is densely packed with capitalized emphasis (THIS, LEAVE, SWITCHING, ASKS) and repeats the 'going back to yourself' rule, which costs some tightness without obscuring the meaning.

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?

For a two-parameter identity-switch tool with no output schema, the description covers entry, exit, interruption behavior, permission implications, and failure guarantees. An agent can invoke it and predict the outcome without further information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% but the schema descriptions are minimal ('ID of the agent'). The prose adds resolution rules (id from list_agents or exact name, tenant-scoped only), the meaning of omission/null/empty, and the precise effect of skip_episode as an override of the episode interruption.

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 opening sentence states a specific verb and resource ('Work as one of your agents from THIS connection') and immediately clarifies the consequence (attribution, recording, permissions, prediction gate). It also points to the sibling that supplies the identifier ('the id from list_agents'), so the agent can distinguish this from agent-management tools.

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?

Explicit bidirectional guidance: pass agent_id to become an agent, omit/null/empty to return to yourself. It also names the one conditional branch (switching between agents when the departing work is 'worth an episode') and the escape hatch (skip_episode=true), plus the guarantee that reverting 'is never refused.'

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.