Skip to main content
Glama

set_mode

Activate a named mode to load tailored instructions and optional edit scope, then follow them until the mode ends or another is selected.

Instructions

Activate a mode. Returns short instructions you should follow until end_mode is called or the user picks another mode.

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": "set_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoMode id from list_modes, e.g. deep-focus. Required.
modeNoAlias for id.
scopeNoOptional. Files, folders or globs you expect to change. Used by Deep Focus: editing outside them needs the user's approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the return payload ('short instructions you should follow') and the persistence scope of the mode, which are genuinely useful behavioral facts, but it says nothing about state mutation implications, error behavior for an invalid or conflicting id, or what happens if id and mode disagree.

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?

Two short sentences, front-loaded with the action and immediately followed by the return contract. No filler and nothing an agent must wade through.

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?

No output schema exists, so the description correctly compensates by describing the returned instructions. The main residual gap is edge-case behavior (invalid id, duplicate activation, alias conflict) for a state-setting tool with no annotations.

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% and the schema already documents the id/mode alias relationship and the scope parameter's Deep Focus approval behavior. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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?

Specific verb and resource ('Activate a mode') and the description clarifies the result is instructions the agent should follow. It differentiates itself from end_mode by naming the lifecycle boundary, though it doesn't explicitly contrast with list_modes or current_mode beyond the schema's reference to list_modes.

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?

The description establishes when the tool applies and how long the effect lasts: 'until end_mode is called or the user picks another mode.' That gives a clear operating context and implies the terminating alternatives, but it offers no explicit exclusions or guidance on when not to activate a mode.

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

Deploy Server

Other Tools