Skip to main content
Glama

Detect Carrier

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

Input Schema

NameRequiredDescriptionDefault
numberNo快递单号,如 SF0218947552508、YT7460266600081

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it discloses that detection uses a local rule library, works offline, returns candidate companies with confidence levels, and treats letter-prefixed numbers as highest confidence. It does not explicitly state that the operation is read-only or describe empty/ambiguous result 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?

The description is two sentences with no wasted wording. The primary purpose is front-loaded, followed by useful confidence and return-value details.

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 one fully described parameter, an output schema, and no annotations, the description is mostly complete: it explains offline operation, return content, and confidence behavior. The main missing piece is explicit guidance on when to choose this tool over list_couriers or query_logistics.

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%, so the baseline is 3, but the description adds meaning about input patterns: numbers with prefixes such as SF, YT, STO, JD, DPK, and UPS 1Z yield the highest confidence. This helps the agent interpret the single number parameter beyond the schema example.

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 local rules. It is immediately clear what the tool does, but it does not explicitly distinguish itself from siblings such as list_couriers or query_logistics.

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: provide a tracking number when you need possible carrier matches. There is no explicit when-to-use versus when-not-to-use guidance, and no direct routing to the sibling tools.

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