Skip to main content
Glama

agent.memory.put

Store or update a JSON memory entry (up to 64 KiB) in a private key-value store under your x402 public key, with optional time-to-live.

Instructions

Write/replace a memory entry in the calling agent's private KV store. Namespace = your x402 signing pubkey. Value is arbitrary JSON ≤64 KiB. Optional TTL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes1-200 chars from [A-Za-z0-9._/-].
valueYesArbitrary JSON.
ttlSecondsNo
Behavior3/5

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

No annotations are provided, so the description must carry full burden. It discloses the ≤64 KiB value limit and optional TTL, but does not cover write semantics (e.g., atomicity, error conditions) or authentication details beyond the namespace.

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 concise sentences with front-loaded main action. Every sentence adds essential 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?

Covers purpose, key format, value size, TTL, but does not mention return value or error handling. For a write operation with no output schema, this is acceptable but could be more complete.

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?

The description adds the ≤64 KiB constraint for the value parameter and clarifies 'Optional TTL' for ttlSeconds, which supplements the schema. For key and value, schema already provides descriptions, so marginal addition.

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 clearly states 'Write/replace a memory entry in the calling agent's private KV store,' specifying the verb and resource. It distinguishes from sibling tools like agent.memory.get, delete, and list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description mentions the namespace but does not provide explicit when-to-use or when-not-to-use guidance. It implies usage through contrast with sibling names but lacks direct alternatives or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/2s-io/sdk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server