Skip to main content
Glama
lithtrix

lithtrix-mcp

Official
by lithtrix

lithtrix_memory_set

Store or update a JSON value for a memory key with optional TTL, importance, source, and confidence score. Persists AI agent memory across sessions and changes.

Instructions

Store or update a JSON value for a memory key (PUT /v1/memory/{key}). Requires LITHTRIX_API_KEY. Optional ttl (seconds), importance, source, confidence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesMemory key (1–128 chars: letters, digits, hyphen, underscore, dot, colon)
valueNoJSON-serializable value (object, array, string, number, boolean, etc.)
ttlNoOptional positive TTL in seconds
importanceNoOptional importance tier (default normal on API if omitted)
sourceNoOptional provenance label (e.g. tool name)
confidenceNoOptional confidence 0–1 (default 1.0 on API)
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the API key requirement, HTTP method (PUT), and optional parameters. It implies upsert semantics ('store or update'). However, it does not state idempotency or response details, which are acceptable for a simple set operation.

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?

Two sentences, front-loaded with action and resource. No unnecessary words. Efficient and direct.

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?

The description lacks mention of return values or expected response (no output schema). While the tool is simple, the agent is left uninformed about what happens after setting. Adequate but with a clear 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 baseline is 3. The description lists optional parameters (ttl, importance, source, confidence) but adds no additional meaning beyond the schema's already good descriptions. No value is added over the input schema.

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 the verb ('store or update') and resource ('memory key'), with HTTP method and endpoint. This differentiates it from sibling read/search tools like lithtrix_memory_get and lithtrix_memory_search.

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?

The description provides clear context for when to use (store/update memory) and states a prerequisite (API key). However, it does not explicitly exclude alternatives or mention when not to use, though the sibling tools imply read/search roles.

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/lithtrix/lithtrix-mcp'

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