Skip to main content
Glama

Record durable knowledge

add_context

Record decisions, conventions, gotchas, and preferences as persistent context that outlives a task. Omit project and cwd to apply the knowledge account-wide.

Instructions

Knowledge that outlives a task: decision, convention, gotcha, preference. Omit project and cwd to make it account-wide.

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": {
      "kind": "<kind>",
      "title": "<title>",
      "body": "<body>"
    },
    "name": "add_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute working directory, used if project is omitted
bodyYes
kindYes
modelNoYour model id, e.g. 'claude-opus-5'.
titleYes
projectNoOmit to apply across every project in your account
from_observation_idNoId of the get_context observation this record writes up. Marks it handled so it leaves the briefing; write the body yourself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.8
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "decision",
      -  "convention",
      -  "gotcha",
      -  "preference"
      -]New value: +[
      +  "decision",
      +  "convention",
      +  "gotcha",
      +  "preference",
      +  "profile",
      +  "stack",
      +  "workflow"
      +]
  2. First observedv0.1.4

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden and largely doesn't. It conveys a durability/scope notion ("outlives a task") but never states that this is a write operation, whether records are permanent or editable (siblings update_context/delete_context imply they are), or any permission requirement.

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?

Two short clauses with no filler and no repetition — efficient. The terse, verbless first fragment is more under-specification than verbosity, but nothing is wasted.

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 7-parameter write tool with no annotations and no output schema, a single dense sentence is not enough. The agent is not told what the operation produces, whether the record is deduplicated or mutable, or how it relates to the get_context/update_context siblings.

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

Parameters2/5

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

Schema description coverage is 57%, so the description must compensate, yet its only parameter statement duplicates what the schema already says for `project` ("Omit to apply across every project in your account") and `cwd` ("used if project is omitted"). Listing four of seven `kind` enum values without explaining profile/stack/workflow adds noise rather than meaning, and the important `from_observation_id` behavior is left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the content domain well ("decision, convention, gotcha, preference" that "outlives a task"), but never says what the tool actually does to that content — write it, store it, attach it. The verb only comes from the title "Record durable knowledge", so the description itself is vague about the action.

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?

"Omit `project` and `cwd` to make it account-wide" is parameter guidance, not when-to-use guidance. Nothing tells the agent when to record here versus the siblings update_context, log_entry, or a session note, nor when not to record at all.

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