Skip to main content
Glama

memory_add

Adds an official, scoped memory entry for admin roles while blocking secrets and blocked terms.

Instructions

Directly add an official memory (admin role required). Blocks secrets and blocked terms.

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

Input Schema

NameRequiredDescriptionDefault
kindNoepisode
scopeNopersonal
topicNo
pinnedNo
contentYes
machineNo
importanceNo
session_refNo
search_termsNo
source_clientNo
source_authorityNoagent_inferred

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.0
    • addedInput schema / properties / importance
      Added value: +{
      +  "default": 1,
      +  "maximum": 5,
      +  "minimum": 0.1,
      +  "type": "number"
      +}
    • addedInput schema / properties / pinned
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / source_authority
      Added value: +{
      +  "default": "agent_inferred",
      +  "enum": [
      +    "human_verified",
      +    "code_observed",
      +    "doc_extracted",
      +    "agent_inferred"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, and the description adds genuinely non-structured context: an admin-role authorization requirement and a content-safety filter on secrets/blocked terms. It does not say whether duplicate memories are created, whether existing entries are overwritten, or how the pinned/importance fields affect retrieval, so the disclosure is helpful but partial.

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 sentences with no filler, and the core action is front-loaded before the prerequisite and filter caveats. Slightly terse for the tool's complexity, 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 an 11-parameter mutation tool with zero schema documentation and no output schema, the description is far too thin — an agent cannot know what 'kind', 'scope', or 'source_authority' mean or what a successful add returns. The admin-role note is valuable but does not compensate for the undocumented parameter space.

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 0% across 11 parameters, so the description carries the full burden and does almost nothing. The 'kind' enum (persona/user_profile/episode/transient), 'scope', 'source_authority', 'importance' range, 'pinned', and 'search_terms' are all left entirely unexplained; only 'content' is indirectly addressed via the secrets filter.

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?

The description names a specific verb and resource ('add an official memory') and the adverb 'Directly' hints at a contrast with the passive-capture sibling, but it never names memory_capture or memory_batch explicitly, so an agent must infer the distinction.

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?

The only guidance offered is a prerequisite ('admin role required'). There is no statement of when to prefer this over memory_capture, memory_batch, or memory_correct, and no exclusion cases beyond the vague 'blocks secrets and blocked terms' filter.

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