Skip to main content
Glama

Remove a context note

delete_context

Removes a context note that was created for the wrong project or is misleadingly superseded; use update for notes that are merely out of date.

Instructions

For a note that should never have been written (wrong project, or so superseded it misleads). Merely out of date: update_context.

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": "delete_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoYour model id, e.g. 'claude-opus-5'.
context_idYesPrefer update_context when the note is merely out of date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 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"
  2. First observedv0.1.4

TDQS

B3.4/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 for a destructive operation, yet it never says the removal is permanent, whether the note can be recovered, or whether confirmation or elevated permissions are required. The framing does imply the note is undesired, but the irreversible nature of deletion — the single most important behavioral fact here — is left unstated.

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, zero padding, and the decisive guidance is front-loaded. The first fragment is grammatically elliptical and omits a main clause, which costs a little clarity even though 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 destructive tool with no annotations and no output schema, the description should at minimum state that the note is permanently removed and whether the call errors on a missing or already-deleted id. Those gaps matter more than the otherwise good delete-versus-update routing, which the schema's own context_id description already duplicates.

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 100% and only two parameters exist, so the schema already documents model and context_id thoroughly (including its own pointer to update_context). The description adds no per-parameter detail, which is acceptable at this coverage level; only the clear intent behind the delete-vs-update split is reinforced.

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 never states the action verb or the resource explicitly — it opens with a bare condition fragment ("For a note that should never have been written") and relies on the title and tool name to convey that this removes a note. It does contrast itself with update_context, which helps disambiguate among the many delete_* siblings, but the core "what it does" is implied rather than stated.

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

Usage Guidelines5/5

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

It gives an explicit use condition (a note that should never have been written — wrong project, or superseded to the point of misleading) and an explicit non-use condition with a named alternative ("Merely out of date: update_context"). An agent can decide between deleting and updating without reading any schema.

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