Skip to main content
Glama
M-T-D-N

agentmemory-codex-windows

memory_lease

Acquire, renew, or release action leases for agents to prevent conflicts and update actions as active, done, or pending.

Instructions

Acquire, renew or release an action lease for agentId. Acquire requires an unfinished, unblocked action and marks it active/assigned; another holder returns a conflict. Renew requires this agent's live lease. Release with a nonempty result marks the assigned action done; otherwise it returns to pending. Release does not propagate dependent completion; use memory_action_update for that transition. Writes lease/action/audit state and returns lease details or released:true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ttlMsNoLease duration in ms (default 10min, max 1hr)
resultNoResult when releasing (marks action done)
agentIdYesAgent claiming the action
actionIdYesAction ID
operationYesacquire, release, or renew

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-preview.14-glama.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses conflict behavior (another holder returns a conflict), state transitions (active/assigned, done, pending), that it writes lease/action/audit state, and the return shape. It stops short of permissions/auth needs or rate limits, so it's strong but not exhaustive.

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-loads the core action (acquire/renew/release a lease) and then layers conditions and the sibling handoff. Dense but every clause earns its place; slightly packed for a single paragraph.

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?

With no output schema or annotations, the description compensates by describing state changes and return values ('lease details or released:true'). It is nearly complete for a mutation tool, with only permission and TTL-enforcement details left implicit.

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 3, but the description adds real meaning beyond the schema by explaining what each operation value does and what 'result' triggers on release. ttlMs and agentId semantics remain schema-only, keeping it from a 5.

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?

States specific verbs (acquire, renew, release) and the resource (action lease for agentId) with a clear scope. It distinguishes itself from siblings by explicitly naming memory_action_update as the tool for dependent-completion propagation.

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

Usage Guidelines5/5

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

Gives per-operation conditions: acquire requires an unfinished, unblocked action; renew requires this agent's live lease; release behavior depends on a nonempty result. It also names the alternative (memory_action_update) and the transition it handles, so the agent knows when-not to use this tool.

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