Skip to main content
Glama

term_upsert

Create or update a term disambiguation card that records possible senses, the chosen meaning for this learning session, and the evidence behind that choice.

Instructions

写一张术语消歧卡:这个词可能几个意思,这次选哪个,依据是什么。

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": {
      "session_id": "<session_id>",
      "term": "<term>",
      "senses": "<senses>",
      "chosen": "<chosen>"
    },
    "name": "term_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYes
basisNo
chosenYes
sensesYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it leaves the most consequential question unanswered: 'upsert' implies create-or-overwrite, yet nothing says what happens to an existing card for the same term/session. Permission requirements, side effects, and return shape are also undisclosed, though the description does clarify the semantic payload being written.

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?

A single colon-delimited sentence that front-loads the artifact and then lists the three things the card must contain. Nothing is padded, though the terse phrasing trades some explicitness for brevity.

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

Completeness2/5

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

For a five-parameter mutation tool with no annotations and no output schema, the definition is thin: it omits the session scoping parameter, says nothing about overwrite semantics on re-upsert, and gives no hint about what a successful write returns. An agent could construct the call but not predict its effect on existing data.

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?

With 0% schema description coverage, the description must compensate, and it does map four of the five parameters to concepts: term (这个词), senses (几个意思), chosen (这次选哪个), and basis (依据是什么). session_id is never mentioned, and no format detail is added for senses beyond what the schema's item hint already states.

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 names a concrete verb and artifact ('写一张术语消歧卡') and enumerates the card's three contents: the candidate senses, the chosen sense, and the basis. That makes the tool's job unmistakable, but it never contrasts itself with the similarly named note_upsert, map_upsert, or lesson_upsert siblings.

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?

The phrase '这个词可能几个意思' implies the trigger condition — call this when a term is ambiguous and a choice must be recorded — but the guidance is only implicit. No alternative tool is named and no when-not-to-use case is given, so an agent must infer routing.

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