Skip to main content
Glama

create_memory_block

Idempotent

Creates a labeled, caller-owned workspace memory block that threads attach to, letting parents watch a child’s result without nested runtime; reusing a label returns the existing block.

Instructions

Create a labeled memory block — a Letta-shaped shared object {label, description, limit, read_only, value} in the workspace that a thread can attach to (a room object). It is how a parent watches a child's result block without a nested runtime: not a transcript, not RAG. Concurrent-safe on the label (re-creating a label returns the existing block). The caller owns it.

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": {
      "label": "<label>"
    },
    "name": "create_memory_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYesthe block's within-workspace key
valueNoinitial content (default empty)
read_onlyNorefuse writes when true (default false)
char_limitNooptional max value length in characters
descriptionNowhat the block is for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, so the safety profile is known. The description adds genuine nuance beyond that: re-creating a label returns the existing block (does not overwrite the value) and the caller owns the block. It says nothing about permissions or what happens when char_limit is exceeded, and the 'limit' vs 'char_limit' naming is slightly loose.

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?

Front-loaded with the core action and object shape, then rationale and concurrency behavior. The parenthetical field list duplicates the schema and the 'not a transcript, not RAG' phrasing is more positioning than instruction, but nothing is genuinely wasted.

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 create tool with no output schema, it covers creation, idempotency, ownership, and lifecycle intent well enough to call it correctly. Return shape on the idempotent path is stated loosely ('returns the existing block'), which is a minor remaining gap.

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%, so every parameter is already documented, and the description's field enumeration largely restates the schema. It adds only the framing that label is a 'within-workspace' uniqueness key, which the schema already states, and gives no guidance on char_limit truncation behavior.

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?

Names a specific verb and resource ('Create a labeled memory block') and defines the object concretely as a Letta-shaped shared {label, description, limit, read_only, value} living in the workspace. The clause 'that a thread can attach to (a room object)' implicitly separates it from attach_memory_block/detach_memory_block by showing creation precedes attachment.

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

Usage Guidelines4/5

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

Gives real usage context: it is how a parent observes a child's result block without a nested runtime, with explicit exclusions ('not a transcript, not RAG') steering agents away from memory-search patterns. It does not name a specific sibling to prefer when the block already exists, though the idempotency note covers most of that case.

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

Deploy Server

Other Tools