Skip to main content
Glama

memory_create_tool

Persist decisions, invariants, gotchas, and context by creating a structured memory item with type, title, statement, tags, confidence, scope, and evidence.

Instructions

Create a new memory item.

Args: type: One of: decision, invariant, gotcha, rejected_idea, assumption, open_question, ambiguity, contract, constraint, hypothesis, observation, bug, architecture, implementation title: Short title for the memory statement: The factual claim being stored tags: At least one tag for categorization details: Optional additional details confidence: 0 to 1; derived from asserted_by when omitted (user 1.0, test 0.95, source/git/doc 0.9, runtime 0.7, agent 0.6; hypotheses cap at 0.4) importance: 0 to 1, default 0.5 evidence: List of evidence objects with path, startLine, endLine, contentHash related_memory_ids: IDs of related memory items metadata: Extra metadata. Decision items accept 'rationale' (strongly recommended: explain WHY this decision was made, alternatives considered). Invariant items require 'verificationMethod' and 'condition' asserted_by: Who established the claim: user, test, source, git, doc, runtime, agent (default agent) applicability: current, legacy, deprecated, planned (orthogonal to status) scope: user, project, path, task — or JSON {"kind": "...", "value": "..."} valid_from: ISO timestamp when the claim starts being true valid_to: ISO timestamp when the claim stops being true supersedes_id: ID of a memory this one replaces (marks it superseded) project: Optional project root path. Auto-detected from git root if omitted.

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": {
      "type": "<type>",
      "title": "<title>",
      "statement": "<statement>",
      "tags": "<tags>"
    },
    "name": "memory_create_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsYes
typeYes
actorNo
scopeNo
titleYes
detailsNo
projectNo
sessionNo
evidenceNo
metadataNo
valid_toNo
statementYes
confidenceNo
importanceNo
request_idNo
valid_fromNo
asserted_byNo
operation_idNo
applicabilityNo
supersedes_idNo
related_memory_idsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.11.0
    • addedInput schema / properties / valid_from
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Valid From"
      +}
    • addedInput schema / properties / valid_to
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Valid To"
      +}
  2. Changed11 schema fields changedv0.6.0
    • addedInput schema / properties / actor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Actor"
      +}
    • addedInput schema / properties / applicability
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Applicability"
      +}
    • addedInput schema / properties / asserted_by
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Asserted By"
      +}
    • addedInput schema / properties / confidence / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / confidence / default
      Previous value: -1New value: +null
    • removedInput schema / properties / confidence / type
      Removed value: -"number"
    • addedInput schema / properties / operation_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Operation Id"
      +}
    • addedInput schema / properties / request_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Request Id"
      +}
    • addedInput schema / properties / scope
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Scope"
      +}
    • addedInput schema / properties / session
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Session"
      +}
    • addedInput schema / properties / supersedes_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Supersedes Id"
      +}
  3. Changed2 schema fields changedv0.5.1
    • addedInput schema / properties / confidence
      Added value: +{
      +  "default": 1,
      +  "title": "Confidence",
      +  "type": "number"
      +}
    • addedInput schema / properties / importance
      Added value: +{
      +  "default": 0.5,
      +  "title": "Importance",
      +  "type": "number"
      +}
  4. First observedv0.1.0

TDQS

B3.2/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, and it does add real behavior beyond the schema: confidence is derived from asserted_by with explicit per-source values, hypotheses are capped at 0.4, invariant items require 'verificationMethod' and 'condition', decision items should carry a 'rationale', supersedes_id marks the prior memory superseded, and project is auto-detected from the git root. It omits, however, any statement about persistence/idempotency (request_id and operation_id are undocumented), conflict handling on duplicate titles, or permission requirements for a write operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The one-line purpose is properly front-loaded and the argument list is dense with no filler, but it is an unstructured docstring dump rather than grouped guidance, and the order does not track the required-parameter set or the importance of behavioral rules like the invariant metadata requirement.

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?

Output schema exists, so return values need no explanation, and the type-conditional metadata rules cover the trickiest part of calling this correctly. For a 21-parameter write tool with no annotations, though, the absence of any idempotency, duplicate-handling, or sibling-routing guidance leaves meaningful gaps.

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 0% and there are 21 parameters, so the description must compensate, and it does for most: it enumerates the valid type values, applicability values, asserted_by sources, scope forms (including the JSON kind/value variant), evidence object fields, and defaults for importance and asserted_by. Four parameters (actor, session, request_id, operation_id) are described in neither schema nor text, which keeps it from a 5.

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?

"Create a new memory item" gives a specific verb and resource, so an agent immediately knows this writes a new memory record rather than reading, relating, or searching. It does not distinguish itself from near-siblings such as memory_relate_tool, memory_import_tool, or memory_check_record_tool, but the core action is unambiguous.

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?

There is no when-to-use guidance: no statement of prerequisites, no exclusions, and no pointer to alternatives like memory_relate_tool for linking existing items or memory_check_record_tool for validating before writing. The rest of the text is a parameter dump, so the agent must infer usage conditions entirely.

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