Skip to main content
Glama

rehub_route

Routes reverse-engineering tasks by user intent and target to the correct analysis chain, returning scenario, confidence, dependencies, and clarification questions when uncertain.

Instructions

意图识别与场景路由:输入用户原话 task(可带目标路径/URL),返回场景 id、置信度、理由、可用性、缺失依赖、澄清问题;同时返回对象分类(网站/App/软件/AI 自动化)与 static/dynamic/ui 三条模式链路。低置信度时必须先向用户澄清,不要硬选链路。

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": {
      "task": "<task>"
    },
    "name": "rehub_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYes用户原话/任务描述(中文或英文)
hintsNo额外提示词(可选)
targetNo目标路径或 URL(可选,能显著提高准确率)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations and no output schema, the description carries the full disclosure burden and handles it well: it enumerates the returned fields (scenario id, confidence, reason, availability, missing dependencies, clarification questions), the object classification, and the three mode chains (static/dynamic/ui). It also sets an expected behavior on low confidence. It does not say whether the tool has any side effects or latency characteristics, which is the remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, followed by the return payload and then the low-confidence rule. The single dense block is efficient, though the long semicolon-chained enumeration of return fields is harder to scan than a short list would be.

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 routing tool with three simple parameters, no annotations, and no output schema, the description supplies the essential missing pieces: what comes back and how to behave on low confidence. A note on typical confidence thresholds or latency would make it fully complete.

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%, so task, hints, and target are already documented in the schema, including that target improves accuracy. The description restates that task is the user's original utterance and may carry a target path/URL but adds no format or syntax guidance beyond the structured fields. Baseline 3 applies when the schema does the heavy lifting.

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 opens with a precise verb+resource framing ('意图识别与场景路由') and specifies the input (user's original utterance, optional target path/URL) and the routing output. It is clearly distinguishable from sibling tools like rehub_classify or rehub_scenarios, though it never names or contrasts them explicitly.

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 a concrete context of use (pass the user's raw utterance) and a decision rule for the ambiguous case: at low confidence, clarify with the user rather than force-selecting a chain. What is missing is any explicit routing among siblings (e.g., when to call this versus rehub_classify or rehub_scenarios directly).

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