Skip to main content
Glama
zzhang82

Agent Memory Bridge

by zzhang82

begin_run

Start a stateless run to obtain server-minted IDs for tracking agent work and memory. Pass the returned handles to subsequent event and completion calls.

Instructions

Start one explicit, stateless run and return server-minted run/work-item IDs.

The bridge does not retain an implicit current run. Callers must pass the returned handles to later event, read, and completion calls. Idempotent retries return the same handles and reject conflicting payloads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalYesRoot goal for the run. Keep it bounded and outcome-oriented.
budgetNoOptional bounded JSON budget metadata, such as token or time limits.
agent_idNoOptional declared agent or worker identifier. It is provenance, not authenticated identity.
non_goalsNoOptional bounded non-goals declared for this run.
thread_idNoOptional external thread or conversation identifier.
provenanceNoOptional bounded declared provenance for the run.
risk_levelNoDeclared run risk level; high and critical preflight reviews require a rollback plan.medium
constraintsNoOptional bounded constraints declared for this run.
model_digestNoOptional lowercase SHA-256 digest of the model identity or configuration.
memory_scopesNoOptional declared memory scopes available to the run. These do not grant authorization.
workspace_keyYesDeclared workspace scope for this run, such as `project:<workspace>`. The server uses it to reject cross-workspace run access.
harness_digestNoOptional lowercase SHA-256 digest of the harness configuration.
idempotency_keyYesCaller-generated retry key. The bridge stores only its SHA-256 digest and returns the original server-minted run for an identical retry.
evidence_profileNoEvidence governance profile. governed-v2 requires typed events and server-minted receipts.observational
tool_schema_digestNoOptional lowercase SHA-256 digest of the tool schema used by the run.
acceptance_criteriaNoOptional structured acceptance criteria with stable id or criterion_id values.
chat_template_digestNoOptional lowercase SHA-256 digest of the chat template.
continuation_of_run_idNoOptional same-workspace prior run that this run continues.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It discloses statelessness, the lack of an implicit current run, the need to pass handles, idempotent retry behavior, and rejection of conflicting payloads. This is substantial coverage of the tool's non-obvious behavior.

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 only four sentences, front-loaded with the primary purpose, and every sentence adds critical behavioral information. There is no redundancy or filler.

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 run-initiation tool with an output schema and fully described parameters, the description covers the essential behavioral aspects: return of handles, statelessness, and idempotency. It does not explicitly outline a full workflow, but the reference to 'later event, read, and completion calls' provides sufficient contextual guidance.

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?

The input schema has 100% description coverage for its 18 parameters, so the baseline is 3. The description does not add parameter-specific semantics beyond the schema, but schema already describes each parameter in detail, so no penalty is needed.

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 opens with a specific verb and resource: 'Start one explicit, stateless run and return server-minted run/work-item IDs.' This clearly identifies the action and distinguishes it from sibling tools like complete_run or record_run_event, which operate on an already-started run.

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?

It provides clear usage context by explaining that the bridge has no implicit current run and that callers must pass returned handles to later event, read, and completion calls. However, it does not explicitly name alternative tools or state when not to use this tool, so it falls short of the highest bar.

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/zzhang82/Agent-Memory-Bridge'

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