Skip to main content
Glama

Preview MCP Profile Switch (Dry-Run Diff)

preview_profile_switch

Preview profile changes across target AI agents by computing an exact dry-run diff and estimated context-token delta before applying, without writing any files.

Instructions

Compute an exact dry-run diff (+ added, - disabled, ~ updated, = unchanged) and estimated context-token delta across target agents without writing any files.

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

Input Schema

NameRequiredDescriptionDefault
profileNoProfile ID or name (e.g. 'minimal-fast', 'frontend-web', 'backend-data', 'full-stack')
targetAgentsNoOptional override of target agents: antigravity, claude, cursor, codex
enabledServersNoOptional explicit list of library server IDs to enable instead of a saved profile

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 disclosure burden; it usefully states that no files are written and explains the diff symbols plus token delta. However, it does not explain default behavior when all optional parameters are omitted, error conditions, or whether a profile must already exist.

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 definition is a single, front-loaded sentence that states the operation, output format, and no-write guarantee. Every phrase contributes information and there is no unnecessary repetition.

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?

Because there is no output schema, it is valuable that the description explains the diff symbols and token delta. It also covers the key safety behavior of not writing files, though it leaves minor gaps around optional-parameter defaults and empty invocation behavior.

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 in detail. The description reinforces the concepts of target agents and profile switching, but adds no syntax, defaults, or mutual-exclusivity guidance beyond what the schema provides.

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: compute a dry-run diff for a profile switch. It also distinguishes this preview/dry-run operation from writing or applying changes by saying 'without writing any files,' so an agent can tell it apart from sibling apply tools.

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 dry-run and no-write language clearly signals when to use this tool instead of a mutating profile apply operation. It does not explicitly name the apply alternative or state prerequisites, but the usage context is still clear.

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