On this page
MCP and tools#
Adapters connect an agent's tool protocol to Ormah's local HTTP service. They also translate parameters and preserve session/project context; tool names are not generally HTTP path names.
Core tools#
The MCP server exposes six agent tools from the canonical schema:
| Tool | Required input | Useful optional input / result |
|---|---|---|
remember |
content |
type, tier, title, space, tags, about_self, confidence, links; formatted stored-memory result |
recall |
query |
limit, types, spaces, created_after, created_before; formatted search results |
recall_node |
node_id |
Complete node and connections, or not-found error |
mark_outdated |
node_id |
reason; records the stale transition |
submit_feedback |
node_id, signal |
source, exact whisper_log_id; contextual relevance feedback |
run_maintenance |
None in phase one | Phase two results; adapter manages asynchronous job state |
MCP transports these as tool calls to ormah mcp over stdio. Pi exposes equivalent ormah_* tools natively and talks HTTP. Tool prefixes displayed by a client/plugin can differ.
Parameter translation#
For remember, MCP maps links to HTTP connections: [{"target": "…"}]. It passes detected project scope as default_space. A null/empty creation space can therefore inherit that default. Use the global-memory recipe when you need a reliably global write.
Session IDs accompany applicable retrieval calls so feedback can be associated with the right event. Preserve the returned whisper_log_id; do not replace it with a memory ID or guess it.
The HTTP search model accepts filters beyond those exported by every tool. Validate against the adapter schema you expose, not only the underlying API model. Source tool schemas.
Maintenance protocol#
Phase one calls run_maintenance without results to obtain link/conflict/merge/consolidation batches. The calling agent analyzes the returned work. Phase two passes results containing edges, merges and consolidations as appropriate.
The HTTP endpoint is job-based: POST /agent/maintenance can return 202 while work is generating/applying; GET /agent/maintenance?job_id=... retrieves status/results. Carry the same returned job ID into phase two. Built-in MCP/Pi adapters poll and track the job; a custom HTTP client must implement that loop and handle failure/cancellation, not assume the POST immediately returns completed batches.
Agent maintenance does not supply a transcript-extraction provider. It uses the agent's context and is conditional on the configured maintenance policy.
Administrative schemas#
The source also defines seven administrative tools: update_memory, connect_memories, list_proposals, resolve_proposal, list_merges, list_audit_log, and undo_merge. MCP's normal list is the six core tools above.
get_openai_tools() exports schemas for all core and administrative tools in a nested function-calling format. It neither executes tools nor returns results to a model. Filter the set deliberately, adapt schemas/messages to your chosen SDK, and implement dispatch. Custom agents shows a direct HTTP request and the tool-result sequence your client must implement.
Hook commands and adapters#
ormah whisper inject and ormah whisper store consume client event payloads on stdin. They are integration entry points, not generic interactive search commands. ormah whisper setup --global is the older Claude-hook helper; full ormah setup handles broader client configuration.
The CLI includes local backup/key/service operations as well as HTTP-backed memory commands, so it is not uniformly an HTTP wrapper. CLI and HTTP API describe those separate surfaces.