Skip to main content
Glama
Duro02
by Duro02

Change a subagent's permission mode

set_mode

Switch a Devin subagent session to a specified mode (like bypass or smart) by providing the mode ID and subagent handle, with validation against the session's available modes.

Instructions

Switch the session's mode (e.g. 'bypass', 'smart'). Validated against the session's advertised availableModes when known.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesMode id from the session's availableModes
nameYesSubagent handle returned by spawn, e.g. 'coder-auth'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the burden of disclosing behavior. It mentions validation against availableModes, which is useful. However, it does not disclose the effects of mode change, side effects, or reversibility, which are important for a mutation tool.

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 concise and front-loaded with the core purpose. It is one sentence that efficiently communicates action and validation, with no unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool is a mutation with no annotations and no output schema, the description is reasonably complete for basic usage, but lacks detail on side effects and error conditions. It covers the essentials but leaves room for improvement.

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 coverage is 100%, so parameters are well-documented in the schema. The description adds context by mentioning 'name' as a subagent handle and 'mode' as a mode id, but the schema already provides this. Baseline 3 is appropriate.

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 clearly states the tool's purpose: switching the session's mode, with examples of modes. It is distinct from siblings like set_model, as it focuses on permission mode. However, it doesn't explicitly differentiate from the 'permission' sibling, leaving some ambiguity.

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

Usage Guidelines3/5

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

The description implies usage through the context of session modes and validation, but does not explicitly state when to use this tool versus alternatives. It lists example modes and validation against availableModes, but lacks clear when-to-use guidance.

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