Skip to main content
Glama

ctx_update

Update an existing context entry, changing only provided fields. Use to correct, append, reclassify, archive, or adjust lifecycle and validity dates.

Instructions

Update an existing context entry. Only the provided fields are changed; omitted fields remain unchanged. Use this to correct, append to, reclassify, or retire (archive) an existing entry. Optional lifecycle/valid_from/valid_to update note maturity and bi-temporal validity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe context entry ID to update
nameNoNew title
tagsNoReplacement set of tags
typeNoNew context type
scopeNoNew visibility scope
contentNoNew content body
metadataNoReplacement metadata object
valid_toNoBi-temporal: ISO 8601 timestamp when the fact stopped being true; null to keep open.
lifecycleNoNew lifecycle state (fleeting/working/evergreen/archived).
archivedAtNoSet to null to unarchive, or ISO date string to archive
memoryKindNoTaxonomy override: 'episodic', 'semantic', or 'procedural'. Setting this locks the value against the fire-and-forget atomicity-judge LLM refinement on this write.
valid_fromNoBi-temporal: ISO 8601 timestamp when the fact started being true.
descriptionNoNew description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.9/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 behavioral burden. It usefully discloses partial-update semantics ('only the provided fields are changed; omitted fields remain unchanged') and that archiving is possible, but says nothing about permissions, error behavior on a bad id, idempotency, or side effects of the memoryKind judge lock.

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?

Three tight sentences with no redundancy. The core mutation semantics are front-loaded, and each sentence adds a distinct piece of information (partial update, use cases, temporal/lifecycle fields).

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 13-parameter mutation tool with no annotations and no output schema, the description covers the essentials an agent needs: what is updated, partial-update behavior, and how to archive. It falls short only on failure modes and permission requirements.

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 coverage is 100%, so the schema already documents all 13 parameters, setting a baseline of 3. The description exceeds that by adding conceptual meaning: lifecycle maps to 'maturity' and valid_from/valid_to map to 'bi-temporal validity', helping an agent reason about those fields.

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?

States a specific verb and resource ('Update an existing context entry'), and the word 'existing' implicitly separates it from the create-oriented sibling ctx_save. However, it never names an alternative tool, so the differentiation is inferred 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 Guidelines4/5

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

Gives concrete usage cases: 'correct, append to, reclassify, or retire (archive) an existing entry.' That is clear when-to-use guidance, but no when-not-to-use conditions or explicit routing to siblings (e.g. ctx_save for new entries) are provided.

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