Skip to main content
Glama
huaqing0
by huaqing0

clash.profiles.activate

Activate a Clash profile with two-step confirmation to change network configuration securely. Preview first to receive a nonce, then confirm to apply.

Instructions

Activate a Profile through Clash Verge itself. Strong two-step confirmation is required because this may change the active network configuration. First call with confirmed=false to receive a nonce, then retry with confirmed=true and confirmNonce.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYesTarget Profile UID
confirmedYesFalse for preview; true for execution
timeoutMsNoTimeout in ms, clamped to [1000, 60000]
confirmNonceNoOne-time nonce returned by preview
Behavior5/5

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

No annotations provided, so description carries full burden. It warns about changing active network configuration, explains the confirmation mechanism and nonce requirement. No contradictions.

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 purpose, zero waste. Efficiently communicates the two-step process and rationale.

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?

Given 4 parameters and two-step process without output schema, description explains the entire flow and parameter roles. Lacks return value details but given no output schema, the description is adequate.

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%, baseline 3. Description adds value beyond schema by explaining the role of confirmed (preview vs execution) and confirmNonce as one-time nonce, and timeoutMs clamping. Does not repeat schema descriptions.

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 clearly states 'Activate a Profile through Clash Verge itself' with a specific verb and resource. It distinguishes from siblings like list, inspect, etc., which do not activate.

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?

Explicitly describes the two-step confirmation process: first call with confirmed=false to receive a nonce, then retry with confirmed=true and confirmNonce. Explains why (network configuration change). No explicit when-not, but sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huaqing0/clash-control-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server