Skip to main content
Glama

slang_discover

Discovers slang candidates from batches of messages using n-gram frequency, mutual information, and left/right entropy; runs locally without database storage or network access.

Instructions

从一批消息里用规则发现黑话候选(n-gram 频次 + 互信息 + 左右熵),不入库、不联网。

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

Input Schema

NameRequiredDescriptionDefault
topNNo
messagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the two critical traits: no database write ("不入库") and no network access ("不联网"). It also implies determinism by naming a fixed rule-based algorithm, but says nothing about the return shape, candidate ordering, or what happens when fewer than topN candidates qualify.

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?

A single dense sentence with the action front-loaded, followed by the method in parentheses and the side-effect guarantees at the end. No redundant wording; every clause adds information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no annotations and no output schema, the definition covers the algorithm and side-effect profile but leaves two gaps: the meaning of topN and what the response contains. An agent can call it but cannot reason about output size or shape.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 largely does not. "从一批消息里" loosely maps to the required messages array, but topN (1-100) is never mentioned — an agent cannot learn from the description how many candidates come back or what the cap controls.

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?

States a specific verb and resource: "发现黑话候选" (discover slang candidates) from a batch of messages, and even names the method (n-gram frequency + mutual information + left/right entropy). This clearly positions it as the discovery stage ahead of the sibling submission/confirmation tools, though it never names those siblings explicitly.

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?

"从一批消息里" implies the input precondition (a batch of raw messages rather than an existing candidate store), and "不入库" implies this is the non-persisting dry-run step before slang_submit/slang_confirm. The when-to-use is inferable but never stated; no explicit alternative or exclusion is given.

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