Skip to main content
Glama

add_or_update_personal_context

Add a new Personal Context memory, or update an existing one by id. memory: a durable circumstance or preference that should carry across future unrelated conversations (e.g. "travels most weeks", "gym has no squat rack", "prefers short home workouts", "wants blunt feedback"). first: list_personal_context; an existing memory already covers the subject -> pass its id with operation update, never create a duplicate. not here: health history. Injuries, lab results, meals, workouts, sleep and body metrics have dedicated tools that store them as structured data the app can chart and reason over; a memory copy duplicates that record and degrades it to loose text. writes: immediately, no separate approval step. caps: Free 3 memories, Pro 50; updating an existing memory by id is always allowed, even at the cap. no delete or bulk write here.

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": {
      "operation": "<operation>",
      "content": "<content>"
    },
    "name": "add_or_update_personal_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe memory text: a compact, durable fact or preference with no conversational filler.
memory_idNoNumeric id from list_personal_context; needed for update, omit for add.
operationYesadd creates a new memory. update replaces the content of an existing one, identified by memory_id.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / memory_id / description
      Previous value: -"Required for update. The numeric id from list_personal_context. Omit for add."New value: +"Numeric id from list_personal_context; needed for update, omit for add."
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: states that writes happen immediately with no separate approval step, discloses plan caps (Free 3, Pro 50), clarifies that updates by id are allowed even at the cap, and notes there is no delete or bulk write here. This is exactly the operational context annotations cannot carry.

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?

Front-loads the action, then uses short labeled clauses (memory:, first:, not here:, writes:, caps:) so an agent can scan the routing and constraint facts in one pass. No filler sentences; every clause adds a decision-relevant fact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the action, the duplicate-prevention workflow, the domain exclusions, write immediacy, and quota behavior, and an output schema already exists so return values need no explanation. Nothing an agent needs to call this correctly is missing.

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 coverage is 100% and the schema already documents content, memory_id and the add/update enum, so the description only restates the operation and memory_id flow. Baseline 3 applies since the schema carries the parameter burden.

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?

Opens with a specific verb+resource pair ('Add a new Personal Context memory, or update an existing one by id') and immediately defines what a Personal Context memory is with concrete examples, so the agent can distinguish it from the many structured-data tools listed as siblings.

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?

Explicitly routes the agent: 'first: list_personal_context' to check for duplicates, then pass the id with operation=update. It also gives a clear when-not-to-use rule ('not here: health history') and explains why those cases belong to dedicated tools rather than as loose text memories.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.