Skip to main content
Glama

SuanLinFang AI Capabilities

Decide

decide

智能决策(System One 类型化判断):输入业务状态与若干类型化问题,返回每题的校准概率,不生成文本。 适用:工单分类、风控判定、质检评估等结构化判断场景。无上下文记忆,每次请求独立。 questions 为 {题目id: 题目} 映射(1-32 题),type 三种:choice(多选一,criteria={选项名:描述})、 noul(是否判断,criteria 可选 {true:描述,false:描述})、score(有序等级打分,criteria=[等级描述...]),可选 instructions 说明该问什么。 示例:{"team":{"type":"choice","criteria":{"refund":"退款","logistics":"物流"}},"urgent":{"type":"noul"},"severity":{"type":"score","criteria":["轻微","一般","严重"]}} answers 按同键回传,含选中项、置信度与全选项概率。 计费按输入 token(约 2 元/百万,输出免费),失败不计费。

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": {
      "state": "<state>",
      "questions": "<questions>"
    },
    "name": "decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYes
questionsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it declares statelessness (no memory, independent requests), that no free text is produced, the answer payload shape (selected option, confidence, probability over all options), and billing semantics (input-token based, ~2 CNY per million, output free, failures not billed). These are exactly the operational facts an agent cannot infer from the schema.

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?

Content is front-loaded: purpose first, then applicability, then parameter format, then example, then billing. Given 0% schema coverage, the long criteria-format sentences and the JSON example earn their space. Minor cost is that the type-format enumeration is dense prose that a bulleted list would scan faster.

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 complex, nested, stateless inference tool with no annotations, the description covers purpose, use cases, the full question-type grammar, the answer shape, and cost. An output schema exists, so the probability payload need not be detailed further. The remaining gap is the `state` input contract and any size/validation limits on the 1-32 question range.

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 description coverage is 0%, so the description must compensate — and it largely does for `questions`: the 1-32 cardinality, the {question_id: question} mapping shape, the three types (choice/noul/score) with the exact `criteria` format for each, and an optional `instructions` field, all reinforced by a worked JSON example. The `state` parameter, however, is only glossed as '业务状态' with no guidance on what structure or size it accepts, leaving one of two parameters under-specified.

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?

The opening line states a precise contract: given a business state plus typed questions, it returns per-question calibrated probabilities and explicitly does NOT generate text. It even names its category ('System One 类型化判断'), which distinguishes it at a glance from every sibling (all TTS/ASR/OCR/document-task tools) without needing schema inspection.

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 names concrete application scenarios (ticket classification, risk decisions, QC evaluation) and a general condition ('structured judgment scenarios'), plus it warns there is no context memory so each call must be self-contained. It does not state when NOT to use it, but no sibling operates in this decision domain, so the absence of an alternative route is not a real gap.

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