Skip to main content
Glama

diana_experience_add

Record a DIANA lesson as a draft in the experience handbook for later user approval, capturing symptom, cause, fix, verification, triggers, and evidence; update similar entries instead unless forced.

Instructions

Record a lesson in the experience handbook as a draft (未验证); only the user can approve it later.

Write it in the user's language, concretely: what was observed (error code, message, wrong result), why, what fixed it and how that was confirmed. Refused when a similar entry exists (similar title or shared trigger): update that one instead, or pass force=True if it really is a different lesson.

Args: title: one-sentence summary. type: error-fix, modeling-pitfall, api-usage, convergence, parameter, result-interpretation or workflow. symptom: what was observed (becomes the 现象 section). cause: why it happens (原因). fix: what solved it (解决). verification: how the fix was confirmed (验证). notes: anything else (备注). triggers: error codes, message fragments or command names that should bring this entry up, e.g. ["/DIANA/NL/IS41/0001", "Too small step"]; prefix "re:" for a regular expression. tags: e.g. ["非线性", "界面单元"]. manual: related manual pages, e.g. ["Theory/Theoryse738.html"]. evidence: job ids, files, test names, dates that back it up. related: ids of related entries. diana_version: DIANA version it applies to (default: the installed one). source: "ai" when you drafted it, "user" when the user dictated it. id: file name (lowercase letters, digits, hyphens), default derived from the title. force: create it even though similar entries exist.

Input Schema

NameRequiredDescriptionDefault
idNo
fixNo
tagsNo
typeYes
causeNo
forceNo
notesNo
titleYes
manualNo
sourceNoai
relatedNo
symptomYes
evidenceNo
triggersNo
verificationNo
diana_versionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that entries land as unverified drafts, that only the user can approve them, and that creation is refused on similarity unless forced. It omits where entries are persisted and whether drafts are visible to other tools/users.

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-loaded with the outcome and the dedupe rule before the argument list, and the content guidance (observed/why/fix/verification) is genuinely actionable. The Args block is long but each line earns its place; only minor trimming is possible.

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 16-parameter mutation tool with no annotations, the description covers creation semantics, refusal behavior, and every field, and an output schema exists so return values need not be explained. Minor gaps remain around storage location and the handoff to verification/review siblings.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 16 parameters, so the description must compensate, and it does: every parameter is explained with purpose and concrete examples (trigger format including the 're:' regex prefix, tag and manual examples, id naming rules, source semantics, diana_version default). This is meaning the schema cannot supply.

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?

States a specific verb and resource (record a lesson in the experience handbook) plus the resulting state (draft, 未验证, user-approved later). It also implicitly separates the create path from the update path by saying 'update that one instead' when a similar entry exists.

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 clear operational context: dedupe refusal on similar title/shared trigger, the fallback of updating the existing entry, and the force=True escape hatch. It does not name the sibling tools (diana_experience_update, diana_experience_verify) that implement the follow-up steps, so routing still requires a small inference.

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