Skip to main content
Glama

Memory Write

memory.write

Store a client-encrypted memory entry for an entity. Server never sees plaintext (PBKDF2/AES-256-GCM). Requires wallet signature. Returns JSON receipt. Compliance: GDPR Art. 5, 32. Cost $0.01 per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoOptional queryable tags.
categoryYesMemory category.
actor_didNoOptional DID of the agent performing the write.
entity_idYesStable identifier, e.g. 'habitat:H-123' or 'agent:urn:aid:...'.
entity_typeYesCategory of entity this memory belongs to.
source_toolNoTool that produced this memory, e.g. 'verify_biodiversity'.
content_hashYesSHA-256 hex of canonical plaintext.
owner_walletYes0x-prefixed address of the owner.
content_nonceYesBase64 12-byte nonce.
wallet_signatureYesEIP-191 signature over the deterministic write message.
content_ciphertextYesBase64 AES-256-GCM ciphertext.
source_attestation_idNoOptional FACT attestation ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNoTrue when the tool completed without a validation error.
toolNoTool name that produced this payload.
paymentNoSettlement receipt after x402 or sandbox payment.
categoryNoMemory category.
entry_idNoUUID of the persisted memory_entries row.
entity_idNoEntity the memory was written for.
written_atNoUTC timestamp of the write.
entity_typeNoEntity type.
content_hashNoSHA-256 hex of the caller plaintext.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

The description substantially extends beyond the annotations by disclosing client-side encryption, 'Server never sees plaintext (PBKDF2/AES-256-GCM)', wallet-signature auth, JSON receipt return, GDPR compliance, and per-call cost. This gives an agent crucial behavioral and operational context that annotations alone do not provide.

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?

The description is compact and well-structured: purpose first, then security/auth behavior, then receipt and compliance/cost notes. Every sentence contributes substantive operational information without redundancy.

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 12-parameter cryptographic write tool, the description covers purpose, security, auth, return type, compliance, and cost. The output schema and full input schema already cover return and parameter details. A slight gap is the lack of explicit retry/idempotency implications, though the idempotentHint=false annotation partially covers this.

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 baseline is 3tons but the description adds meaningful context: 'client-encrypted' links to ciphertext/nonce/hash parameters, 'Requires wallet signature' clarifies owner_wallet and wallet_signature, and the encryption details help explain the required content fields.

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?

The description uses a specific verb-resource pair: 'Store a client-encrypted memory entry for an entity.' It clearly identifies the write operation and differentiates from siblings like memory.read, memory.query, memory.revoke, and memory.attest by emphasizing client-side encryption and entity-scoped storage.

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?

No when-to-use or when-not-to-use guidance is providedgett. The description does not name any alternatives or conditions, leaving the agent to infer usage solely from the tool name and sibling context.

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.

Resources