Skip to main content
Glama

Correct a context note

update_context

Correct an outdated or incorrect note by replacing its entire body, so one accurate record stands instead of a conflicting second note. Optionally pin it as a rule shown each session.

Instructions

Rewrite a note that is wrong or out of date; body replaces the whole thing. Correct rather than add a second note that disagrees. is_pinned makes it a rule every session is shown.

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": {
      "context_id": "<context_id>"
    },
    "name": "update_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoReplaces the body outright. Send the whole note, not a diff.
kindNo
modelNoYour model id, e.g. 'claude-opus-5'.
titleNo
is_pinnedNotrue shows this note whole at the start of every session, whatever its focus; false stops that. Only when the developer asks for it. At most 3 per project (and 3 account-wide), body 500 characters or less; in a project, only its owner pins, unpins or edits a pinned note.
context_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.9
    • addedInput schema / properties / is_pinned
      Added value: +{
      +  "description": "true shows this note whole at the start of every session, whatever its focus; false stops that. Only when the developer asks for it. At most 3 per project (and 3 account-wide), body 500 characters or less; in a project, only its owner pins, unpins or edits a pinned note.",
      +  "type": "boolean"
      +}
  2. Changed5 schema fields changedv0.1.8
    • addedInput schema / properties / context_id / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^\\d{1,15}$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / context_id / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / context_id / minimum
      Removed value: --9007199254740991
    • removedInput schema / properties / context_id / type
      Removed value: -"integer"
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "decision",
      -  "convention",
      -  "gotcha",
      -  "preference"
      -]New value: +[
      +  "decision",
      +  "convention",
      +  "gotcha",
      +  "preference",
      +  "profile",
      +  "stack",
      +  "workflow"
      +]
  3. First observedv0.1.4

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden for a mutation. It does disclose the most important trait — that `body` wholesale replaces the existing content — plus the session-wide effect of pinning. It remains silent on what happens to optional fields (title, kind, model) that are omitted, and on any permission constraints for editing.

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?

Three tight clauses, front-loaded with the primary action and replacement semantics; nothing is filler. It loses a point only for restating facts the schema already documents about `body` and `is_pinned`.

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 six-parameter mutation tool with no annotations and no output schema, the description covers the core edit semantics and the add-vs-correct decision adequately. It falls short on partial-update behavior and on the meaning of the enum-typed `kind` and the optional `title`/`model` fields.

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 coverage is only 50%, yet the description repeats what the schema already states for `body` ("Replaces the body outright. Send the whole note, not a diff.") and for `is_pinned` rather than adding new meaning. Four parameters — `context_id`, `title`, `kind` (with its seven-value enum), and `model` — receive no clarification in either place, so the gap is not compensated.

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?

Uses a specific verb ("Rewrite") on a specific resource ("a note that is wrong or out of date") and distinguishes the tool from the add path with "Correct rather than add a second note that disagrees." It is clear this is an in-place edit rather than a create, though no sibling tool is named.

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?

States the triggering condition (note is wrong or out of date) and explicitly routes away from the add-note alternative. It does not cover when to leave a note alone or when deletion (delete_context) would be preferable to correction.

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