Skip to main content
Glama

独行录 / opcmenu

试判产品分类(不落库)

classify_product_draft
Idempotent

登录;发布前LLM分类,耗费不写库,category/tags/domain可null、OTHER正常。classify→用户核对→create_product/update_my_product,后者亦自动分类;勿循环。

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

Input Schema

NameRequiredDescriptionDefault
nameYes产品名
taglineNo一句话定位;可省或留空(线上同款端点对它 default(""))
descriptionNo详细介绍:给谁用、解决什么、怎么做的——写得越具体判得越准

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / tagline / description
      Previous value: -"一句话定位;可省或留空(线上同款端点对它 default(\"\"))"New value: +"一句话定位;可省或留空(线上同款端点对它 default(\"\"))"
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the sparse annotations (idempotentHint, destructiveHint=false), the description discloses that login is required, that the LLM call incurs cost, that nothing is written to the database, that category/tags/domain may be null and OTHER is a legitimate outcome, and that the call should not be looped. That is substantial behavioral context an agent could not infer from structured fields.

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?

Very compact with no filler, but the semicolon-chained telegraphic style makes it dense to parse, and leading with the login requirement rather than the tool's core action is a minor front-loading issue. Nothing is wasted, though.

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 three-parameter, non-persisting tool with no output schema, the description covers auth, cost, side effects, null handling, and the surrounding workflow well. The return shape is only implied via the field names, which is the one remaining gap.

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?

Input schema coverage is 100%, with the schema itself explaining that more specific descriptions improve classification accuracy, so the baseline is 3. The description's mention of category/tags/domain concerns result fields rather than the three input parameters (name, tagline, description) and adds little input-level meaning.

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 (LLM classification of a product draft before publishing) and explicitly marks it as non-persisting ('不写库'), which separates it from create_product/update_my_product. What is slightly under-specified is that the classification result is what gets returned, though 'category/tags/domain可null' implies it.

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 an explicit workflow: classify, let the user verify, then call create_product or update_my_product, and notes the latter also auto-classifies. It even adds an exclusion-like caution ('勿循环') to avoid repeated calls. It lacks an explicit 'do not use if already classified/published' condition, keeping it below 5.

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