Skip to main content
Glama

save_knowledge_tool

Save Markdown knowledge documents into a project knowledge base, including topic, tags, framework, and related files, so agents can retrieve codebase context later.

Instructions

儲存知識文件到專案知識庫

Args: project_name: 專案名稱 name: 知識主題或檔案名稱 content: 要儲存的內容(Markdown 格式) tags: 標籤列表(選填) framework: 所屬框架(選填,例如:Laravel, React) framework_layer: 框架層級(選填,例如:Controller, Service) code_type: 程式碼類型(選填,例如:logic, feature, guide) symbol_name: 主要符號名稱(選填,例如:UserController) related_files: 相關檔案列表(選填) context_description: 上下文描述(選填)

Returns: 包含檔案路徑的字典

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": {
      "project_name": "<project_name>",
      "name": "<name>",
      "content": "<content>"
    },
    "name": "save_knowledge_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
tagsNo
contentYes
code_typeNo
frameworkNo
symbol_nameNo
project_nameYes
related_filesNo
framework_layerNo
context_descriptionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2601.5

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden but fails to disclose key write-behavior traits: whether saving with an existing name overwrites or appends, what errors occur on duplicates, or what permissions are needed. The only behavioral hint is "Returns: 包含檔案路徑的字典" (returns a dict containing the file path), which is minimal.

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?

The description is front-loaded with the core purpose, then structured into Args and Returns. It is efficient overall, but the Returns line is redundant because an output schema exists, and some parameter descriptions could be slightly more precise.

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 10-parameter write tool with no annotations, the description covers parameter semantics and purpose adequately, but omits critical behavioral and usage context (overwrite semantics, error conditions, when to choose this over siblings). It is minimally complete but has clear gaps that could lead to incorrect invocation.

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; it does so by explaining all 10 parameters in the Args section, including short meanings and examples (e.g., framework: Laravel, React; framework_layer: Controller, Service) and marking optional fields with (選填). It adds substantial meaning beyond the bare schema, though some descriptions are brief.

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 opens with "儲存知識文件到專案知識庫" (save knowledge documents to the project knowledge base), which is a specific verb plus resource. It distinguishes itself from read/search/delete siblings by the save action, but does not explicitly name or contrast with alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives like save_project_structure_tool or search_knowledge_tool. No exclusions, prerequisites, or context for invocation are provided.

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