Skip to main content
Glama
Phocinae

phocinae-mcp

Official

工具路由

route

Selects a suitable tool from a supplied candidate list to handle a request and returns its index and name.

Instructions

何时使用:有确定的候选工具/处理器清单、需要从中挑出最合适的一个来服务请求时。何时不使用:候选清单不固定或用户已直接指定工具时(尊重用户指定,不重复路由);要评估每个候选的质量而非挑选时(用 score 逐个打分)。返回 choice=下标、tool=选中的工具名;服务不可用返回明确错误。

Input Schema

NameRequiredDescriptionDefault
stateYes请求/上下文描述(必填;上限 20000 字符)
toolsYes候选工具名列表(必填;1–100 个非空字符串,单项上限 2000 字符)
serverNo可选:覆盖服务地址(http://host:port,等价于 --server;上限 2048 字符)

Output Schema

NameRequiredDescriptionDefault
toolYes
modelNo
stateYes
toolsYes
usageNo
choiceYes
serverNo
questionYes
confidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.6

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the outcome shape (choice = index, tool = selected name) and the failure mode (clear error when the service is unavailable), plus the non-destructive selection semantics implied by 'pick one'. It omits any statement about how selection is performed (model-based routing, latency/cost) and says nothing about the `server` override's effect on behavior.

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?

Front-loaded with 何时使用 before 何时不使用, then return values in a single short clause. No filler sentences; each clause carries a distinct decision rule or output fact.

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?

An output schema exists, so the description needn't restate return structure, and it still adds the error case. For a 3-parameter router, the only real remaining gap is how the selection is made and how the optional `server` override changes routing scope; siblings `gate` and `classify` are also not differentiated.

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 the schema already documents `state`, `tools`, and `server` with lengths and counts. The description adds no further meaning about these parameters (e.g., what counts as a good `state` string, whether `tools` must be exact registered names), so the baseline 3 applies.

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?

States a specific verb and resource: pick the single best-suited tool/handler from a fixed candidate list to serve a request. It explicitly contrasts itself with the sibling `score` (per-candidate quality scoring vs. selection), so an agent can tell the two apart without opening either schema.

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

Usage Guidelines5/5

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

Provides an explicit 何时使用 / 何时不使用 pair: use when the candidate list is fixed and one must be chosen; do not use when the list is unstable or the user already named a tool (respect the user, don't re-route), and use `score` instead when you need per-candidate quality. Alternative and exclusion conditions are both spelled out.

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

Deploy Server

Other Tools