Skip to main content
Glama

kb_append

Appends content to a knowledge base document, creating it if it doesn't exist. Useful for adding game conclusions or boss observations for later reuse.

Instructions

向知识库已有文档追加内容(文档不存在则自动新建)。

用途:一局结束后补一行结论、给 BOSS 习性加一条新观察。 入参:filename、markdown_content、game_name(可选,分类文件夹)。 返回:成功为「已追加到知识库: <路径>」;失败返回「错误: ...」。 下一步:配合 kb_search 复用这些累积经验。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes
game_nameNo
markdown_contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

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 burden and does disclose meaningful behavior: content is appended (additive), and a missing document is auto-created. It also names the success/failure return strings. It does not cover permissions, concurrency, or what happens on duplicate filenames.

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?

Front-loads the core action, then uses labeled sections (用途/入参/返回/下一步) for scannability with no filler. The 返回 line is arguably redundant given an output schema exists, but overall it is tight and well-structured.

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?

An output schema exists, so return values need not be re-explained, and the description still adds role guidance for game_name plus usage scenarios. The main gap is lack of differentiation from the sibling kb_write, which an agent may otherwise confuse with this tool.

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?

Schema description coverage is 0%, so the description must compensate. It names all three parameters and clarifies that game_name is an optional categorization folder, which is genuinely useful. It does not explain the expected filename format or markdown_content conventions, so the compensation is only partial.

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+resource (append content to an existing knowledge-base document) and adds the fallback behavior of auto-creating the file. It does not distinguish itself from the sibling kb_write, which is the most obvious alternative for writing documents.

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?

Gives concrete usage scenarios (add a conclusion line after a match, add a new observation to a BOSS habit), which clearly frames when this tool is appropriate. However it offers no exclusions or explicit routing versus kb_write/kb_search, leaving the append-vs-write choice to inference.

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