Skip to main content
Glama

Apply MCP Profile Atomically

apply_mcp_profile

Applies an MCP profile or explicit server list to target agent configs atomically, saving a timestamped rollback backup first. Set dryRun=true to preview the diff before writing.

Instructions

Atomically apply an MCP profile (or explicit server list) to target agent configs after saving a timestamped rollback backup. Set dryRun=true to preview without writing.

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

Input Schema

NameRequiredDescriptionDefault
dryRunNoIf true, returns a dry-run diff preview without modifying any files
profileNoProfile ID or name to apply
targetAgentsNoOptional target agents override: antigravity, claude, cursor, codex
enabledServersNoOptional explicit server IDs to enable instead of a saved profile

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a respectable job: it discloses the write side effect, that configs are modified ('after saving a timestamped rollback backup'), atomicity, and the non-destructive dryRun mode. It does not say what happens on partial failure beyond 'atomically', which agents must write to disk, or what permissions are needed.

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 sentences, front-loaded with the action and its side effects, followed by the safety lever. Nothing is repeated from the schema or wasted.

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?

For a four-parameter, all-optional tool with no output schema, the description covers purpose, mutation semantics, backup behavior, and the preview path. The remaining gap is the zero-argument case and the default for targetAgents, which matters precisely because nothing is required.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description adds real meaning by framing 'profile' and 'enabledServers' as alternatives ('a profile (or explicit server list)'), which the schema lists without stating the mutual exclusivity. It says nothing about targetAgents defaults or what happens if no parameters are supplied at all.

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?

States a specific verb and resource — 'apply an MCP profile' — plus the scope 'to target agent configs', with the 'or explicit server list' variant noted. It is clear what the tool does, but it never distinguishes itself from the similarly named sibling app_apply_profile, so an agent comparing the two gets no tiebreaker.

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?

It gives one concrete usage instruction: 'Set dryRun=true to preview without writing,' which tells the agent how to test safely before mutating. It stops short of exclusions or prerequisites — e.g., that a valid profile ID must come from list_mcp_profiles, or when to prefer the dedicated preview_profile_switch sibling.

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