Skip to main content
Glama

add_knowledge

Record cross-agent lessons in ops-brain: gotchas, safety/compliance rules, verified patterns, and vendor behavior; duplicates return existing entries unless forced.

Instructions

Add a knowledge entry. Cross-agent only: gotchas, safety/compliance rules, verified patterns, vendor behaviour. Host-local lessons belong in your own docs, not here. Requires author (your agent slug). Near-duplicates are returned instead of created unless force.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoFree-form tags for retrieval. Keep them few and reusable.
forceNoSkip duplicate detection check. Set to true if you've already seen the warning and want to create anyway.
titleYes
authorYesYour agent identifier (free-form slug, 1–80 chars, [a-zA-Z0-9._-]). Examples: "Claude-Laptop", "Codex-Buildbox". Immutable once set — provenance cannot be rewritten via the tool surface.
contentYes
categoryNoFree-form grouping label, e.g. "gotcha", "pattern", "vendor". Used by browse-mode filtering in `search_bus`.
client_slugNoScope this entry to the owning client (slug). Leave `cross_client_safe` false unless the content is genuinely global.
cross_client_safeNoAllow this entry to surface in other clients' contexts (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare non-read-only, non-destructive, non-idempotent, but the description adds the genuinely useful behavior: near-duplicates are returned rather than created unless `force` is set. It also flags that `author` is required. Return format and any auth/rate constraints are left unstated, keeping it out of the top band.

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?

Four tight sentences with zero filler; the purpose, scope constraint, and duplicate-handling caveat are all front-loaded. Every sentence carries distinct information an agent needs before calling.

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 an 8-parameter mutation tool with no output schema, the description covers the essential decision points: what belongs here, the required author, and duplicate semantics. It omits what a successful call returns and how the scoping parameters (client_slug, cross_client_safe) interact, though the schema covers those fields.

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 75%, so most parameters are already documented (notably `force`, whose conditional use is fully explained by the schema). The description's mentions of `author` and `force` largely restate structured data, adding little syntax or format meaning beyond it. Baseline 3 is appropriate.

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 ('Add a knowledge entry') and immediately scopes the content to cross-agent material (gotchas, safety/compliance rules, verified patterns, vendor behaviour). The scope statement cleanly separates it from siblings like update_knowledge and delete_knowledge, which an agent can tell apart without opening schemas.

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 explicit inclusion criteria ('Cross-agent only...') and an explicit exclusion plus redirect ('Host-local lessons belong in your own docs, not here'). It stops short of naming alternative tools (e.g. update_knowledge for edits), so it is clear context rather than full routing.

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