Skip to main content
Glama

Engine Heart

express.detect_carrier

按单号规则自动推测快递公司(本地规则库,离线可用):输入快递单号,返回可能的公司列表(含编码、中文名、匹配规则与置信度高/中/低)。带字母前缀的单号(SF/YT/STO/JD/DPK/UPS 1Z 等)置信度最高。

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": "express.detect_carrier"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberNo快递单号,如 SF0218947552508、YT7460266600081

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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 reasonably well: it discloses that matching is rule-based and works offline, that the output is a candidate list rather than a single answer, and that confidence is graded high/medium/low with letter-prefixed numbers most reliable. It does not say what is returned when nothing matches, which is the main remaining behavioral 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?

Two compact clauses front-load the core function, then the return shape, and close with the confidence rule. Every element earns its place; the only minor cost is that the colon-separated list of return fields makes the sentence dense.

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 single-parameter, read-only inference tool with no output schema and no annotations, the description covers the essentials: input, candidate-list output with fields, confidence tiers, and offline behavior. Only the no-match outcome is left unstated.

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?

There is only one parameter and schema coverage is 100%, with the schema already supplying examples like SF0218947552508 and YT7460266600081. The description adds useful format semantics by identifying which prefixes (SF/YT/STO/JD/DPK/UPS 1Z) drive high confidence, but that is confidence guidance rather than deeper parameter meaning, so baseline 3 is appropriate.

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 states a specific verb and resource: infer the courier company from a tracking number, using a local rule library. It is clearly distinct from express.query_logistics (tracking a shipment) and express.list_couriers (a catalog), though it never names those siblings to make the distinction explicit.

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

Usage Guidelines3/5

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

Usage is implied by 'input tracking number, returns possible company list', and the note about letter-prefixed numbers gives a practical hint about when the result is reliable. There is no explicit when-not guidance, no mention of what to do when detection fails, and no reference to sibling tools for follow-up tracking.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources