Skip to main content
Glama

flclash_set_mode

Switches the FlClash outbound mode between rule, global, and direct, then saves the selection so the GUI reflects the active routing behavior.

Instructions

Set and save rule/global/direct outbound mode in the GUI.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "<mode>"
    },
    "name": "flclash_set_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full disclosure burden. It does add meaningful behavior by saying the mode is saved (i.e., persisted to config, not just applied in memory) and scoped to the GUI, but it omits whether active connections are disrupted, whether the change is reversible, and what a failure looks like.

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?

One sentence, front-loaded with the action, with zero filler. Nothing could be removed without losing information.

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?

For a one-parameter tool with no output schema this is close to sufficient, and the implied enum is covered. However, with zero annotation coverage and zero schema documentation, the description should also state whether the change takes effect immediately or needs a core restart to be complete for an agent acting autonomously.

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 description coverage is 0% and the single mode parameter is a bare untyped string with no enum. The description compensates well by enumerating rule/global/direct, which is exactly the information the schema lacks and which the agent cannot otherwise guess.

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 names a specific verb pair (set/save) and a precise resource (outbound mode), and it even enumerates the three valid values: rule, global, direct. That distinguishes it from proxy/tun toggles among the siblings, though it never explicitly contrasts itself with them.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no exclusions. An agent is left to infer that it should call this to switch routing policy rather than manipulating flclash_set_system_proxy or flclash_set_tun, and nothing says whether saving the mode requires a core restart.

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