Skip to main content
Glama

memory_submit

Submit outbox drafts into the repository memory directory for review, applying safe curation and lint reports while pausing for batch approval on uncertain merges or tags.

Instructions

Move outbox drafts into the repo memory dir for review. Before copying, reports graph lint (never blocking) and auto-applies the deterministic tier: exact-duplicate merges, empty-body archives, first-line title normalization, and high-confidence type/tag inference from keyword captures. Every applied action appears in the output with its undo command; pass noCurate=true to skip curation (lint still reports). D95: semantic merges, splits and uncertain type/tag inferences are one batch-confirm summary — when they exist, submit stops before writing anything and returns the summary. Show that summary to the user, then call again with either curateBatch="accept" (apply the whole batch) or curateBatch="decline" (change nothing). Never per-item approval, never silently apply the batch. Then copies the drafts in as proposed (or keeps a local approval), commits locally on the current branch, and moves the outbox originals out. Never creates a branch on its own — pass branch= only with the user's explicit approval for the full chain. Prints the push and PR commands — those need the user's explicit approval and are never run automatically. (MCP server and the open-memex submit CLI; the opencode native plugin does not expose this tool.) Unknown ids or a failed local commit abort the submit with the reason; nothing is published automatically.

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": {
      "ids": "<ids>"
    },
    "name": "memory_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesOutbox draft ids to submit.
baseNoPR base branch override. Default: the branch the submit ran on.
branchNoCreate this branch and submit onto it. If omitted, submit stays on the current branch — branches are never auto-created. Only pass this when the user explicitly approved the full chain (branch + push + PR).
noCurateNoSkip curation entirely (auto and batch); the graph lint report still runs. Default false.
curateBatchNoD95: the ONE decision for the batch-confirm tier (semantic merges, splits, uncertain type/tag inferences). When proposals exist and this is omitted, submit writes nothing and returns the summary — show it to the user, then call again with accept or decline. Never per-item approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.11.0
    • addedInput schema / properties / curateBatch
      Added value: +{
      +  "description": "D95: the ONE decision for the batch-confirm tier (semantic merges, splits, uncertain type/tag inferences). When proposals exist and this is omitted, submit writes nothing and returns the summary — show it to the user, then call again with accept or decline. Never per-item approval.",
      +  "enum": [
      +    "accept",
      +    "decline"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / noCurate / description
      Previous value: -"Skip the deterministic pre-submit auto-apply tier; the graph lint report still runs. Default false."New value: +"Skip curation entirely (auto and batch); the graph lint report still runs. Default false."
  2. Changed1 schema field changedv0.10.0
    • addedInput schema / properties / noCurate
      Added value: +{
      +  "description": "Skip the deterministic pre-submit auto-apply tier; the graph lint report still runs. Default false.",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly=false, openWorld=false, destructive=false; the description goes far beyond that by disclosing the full mutation chain — drafts copied in, local commit on the current branch, outbox originals moved out, empty-body archives, exact-duplicate merges — plus the undo command emitted for each applied action. It also states abort conditions (unknown ids, failed local commit) and that nothing is published automatically. The move of outbox originals is a data change but is framed as reversible with undo commands, so it does not contradict destructiveHint=false.

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?

Despite its length, it is front-loaded with the primary action and then ordered by the actual call sequence (lint/curate → batch confirm → copy/commit → outbox move → push/PR commands). Some content is restated between the description and the schema's curateBatch text, and the parenthetical about which harnesses expose the tool is tangential, but no sentence is filler given the policy density.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a multi-stage, state-dependent mutation tool with no output schema, the description covers what is written, what the return payload contains (applied actions with undo commands, batch summary), and how to resume after a batch-confirm stop. An agent has everything needed to call it correctly and to recover from the two-stage flow.

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; the description earns extra by explaining the interaction semantics that the schema cannot: noCurate still runs lint, and omitting curateBatch is a dry-run that writes nothing and returns a summary requiring a second call. The D95 batch protocol for curateBatch and the rationale for branch= are meaningfully richer than the field descriptions alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete verb and destination: 'Move outbox drafts into the repo memory dir for review', then extends the scope to curation, local commit, and outbox cleanup. It is unmistakably a submit/publish workflow rather than a query or edit tool. It does not name a sibling (e.g. memory_propose or memory_promote) to draw the boundary explicitly, which keeps it short of a 5.

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 explicit conditions and exclusions: pass noCurate=true to skip curation, pass branch= only with explicit user approval, and use curateBatch=accept/decline as the single batch decision rather than per-item approval. It also states what never happens automatically (branch creation, push, PR) and when the call aborts.

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