Skip to main content
Glama
zzhang82

Agent Memory Bridge

by zzhang82

complete_run

Append or correct a run outcome in agent memory, preserving ranking and policy via append-only, evidence-backed revisions.

Instructions

Append or correct a run outcome without changing memory ranking or policy.

On new runs, verified_success requires a matching current server-minted governed receipt. Outcome corrections form an append-only supersession chain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesServer-minted run identifier returned by `begin_run`.
metricsNoOptional structured outcome metrics, limited to 32 KiB.
outcomeYesDeclared outcome for this append-only outcome revision.
evidenceNoStructured outcome evidence, limited to 32 KiB.
provenanceNoOptional bounded declared provenance for the outcome.
workspace_keyYesDeclared workspace scope that owns the run.
evaluator_typeYesEvidence source class. Agent self-report cannot establish verified success.
idempotency_keyYesCaller-generated retry key scoped to this run; only its SHA-256 digest is stored.
evaluator_digestNoOptional lowercase SHA-256 digest of the evaluator implementation or configuration.
evaluator_versionNoOptional bounded evaluator version label.
termination_reasonNoOptional bounded reason the run ended.
regression_of_run_idNoDistinct same-workspace run with a current `verified_success` outcome; required for a `regression` outcome.
supersedes_outcome_idNoCurrent outcome head to supersede when recording a correction.
expected_last_sequenceNoCurrent run sequence CAS precondition; required by governed-v2 runs.
expected_database_epochNoDatabase epoch CAS precondition; required by governed-v2 runs.
expected_run_generationNoRun generation CAS precondition; required by governed-v2 runs.
verification_receipt_idNoServer-minted governed verification receipt. Ordinary MCP callers cannot mint receipts; required for verified_success on new runs.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses the append-only supersession chain and the receipt requirement for verified_success, which are important behavioral traits. However, it doesn't mention other behavioral aspects like CAS preconditions, idempotency semantics, or what happens on conflicting updates.

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 two sentences, front-loaded with the main purpose and key constraint. Every sentence adds value; no filler or repetition of schema information.

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 complex 17-parameter tool with no annotations, the description covers the most critical behavioral constraints (receipt requirement, supersession chain) and the schema covers all parameter semantics. The output schema exists, so return values are documented. It could elaborate on governed-v2 CAS preconditions, but the schema already describes those, so the description is reasonably 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?

Schema description coverage is 100%, so baseline is 3. The description adds meaningful context to key parameters: 'verified_success requires a matching current server-minted governed receipt' explains verification_receipt_id, and 'append-only supersession chain' explains supersedes_outcome_id. This goes beyond the schema's individual parameter descriptions.

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 uses specific verbs 'Append or correct' and identifies the resource 'run outcome', clearly stating what the tool does. It also includes the constraint 'without changing memory ranking or policy', which distinguishes it from memory-related sibling tools like store, forget, and revise.

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: for new runs with verified_success requiring a receipt, and for corrections forming a supersession chain. It implies this is for finalizing outcomes rather than recording intermediate events (sibling record_run_event), but doesn't explicitly name 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/zzhang82/Agent-Memory-Bridge'

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