haki
Server Details
Long-term memory for AI agents: bitemporal fact ledger, contradiction detection, explainability.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
- Repository
- GetHaki/Haki
- GitHub Stars
- 2
- Server Listing
- mcp-haki
TDQS
Each tool has a clearly distinct purpose: capture stores facts, context retrieves them, correct modifies, forget removes, inspect audits. No overlap in functionality.
All tools share the 'haki_' prefix and use imperative verbs (capture, correct, forget, inspect). 'haki_context' is slightly more noun-like but still clearly implies retrieval, maintaining overall consistency.
Five tools cover the essential memory lifecycle (create, read, update, delete, audit) without unnecessary redundancy. This is well-scoped for the domain.
The set covers all CRUD operations plus inspection, which is comprehensive for a memory management server. There are no obvious missing operations for the stated purpose.
Available Tools
5 toolshaki_captureAInspect
Memorize a durable project fact: technical decision, convention, resolved error. Call at the END of a task. Never memorize secrets, tokens or ephemeral data. Consolidation is synchronous in dev (HAKI_MCP_AUTOCONSOLIDATE), so the fact is recallable immediately. Content larger than MAX_JSON_BYTES (256 KiB, same bound as POST /v1/capture) is rejected with a typed error.
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | agent.observation | |
| content | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full behavioral burden and does so well: it discloses that consolidation is synchronous in dev so the fact is immediately recallable, that content over MAX_JSON_BYTES is rejected, and that a typed error is returned. This goes beyond the minimal mutation signal and is genuinely useful to an agent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact and front-loaded: purpose first, then usage, then key behavioral constraints. Every sentence earns its place, and the technical size limit is stated efficiently without padding.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple two-parameter tool with an output schema present, the description covers purpose, timing, exclusions, storage behavior, and size rejection. The main gap is the unexplained 'kind' parameter, which prevents full completeness but does not undermine the core invocation path.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate, but it only indirectly addresses the 'content' parameter via the size limit and never explains the 'kind' parameter or its default 'agent.observation'. An agent cannot learn from the description what values 'kind' accepts or when to override the default.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('Memorize') and resource ('a durable project fact') and gives concrete examples: technical decision, convention, resolved error. It does not explicitly distinguish itself from sibling tools like haki_context, but the durable-fact framing is specific enough to be actionable.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit when-to-use guidance ('Call at the END of a task') and clear exclusions ('Never memorize secrets, tokens or ephemeral data'). It does not name alternative sibling tools or describe when to prefer them, so it falls just short of full routing guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
haki_contextAInspect
Recall the project's memory (decisions, conventions, preferences)
relevant to a task. Call BEFORE planning or editing code. Returns a
ready-to-inject block with dates and sources, the trace_id (inspectable
via haki_inspect), and an explicit status ("ok"/"degraded"/"failed") —
never treat a degraded or failed response as "no known facts".
If the block does not hold what was needed, call this tool again with
the SAME query and `exclude_ids` set to the ids already received — it
serves the next page of the same ranked list. Do NOT rewrite the query
with what was just read: measured on this project's bench, that finds
the missing turn less often than asking unchanged.| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| exclude_ids | No | ||
| budget_tokens | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full behavioral disclosure. It explains the return structure (block with dates, sources, trace_id, status), the meaning of status values, and warns against misinterpreting degraded/failed as 'no known facts'. It also discloses pagination behavior via exclude_ids.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the core purpose and usage instruction, then adds behavioral warnings and pagination details. Every sentence serves a purpose, with no fluff. It is appropriately sized for the complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the output schema exists and the description explains the status field, pagination, and usage context, the description is complete for an agent to call the tool correctly. It covers what to do on failure and how to interpret results.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must explain parameters. It clearly explains query (implicitly) and exclude_ids (pagination), but budget_tokens is not mentioned. However, budget_tokens is an optional integer with a default, and its purpose is reasonably inferable. The description adds significant value for the key parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource: recalls project memory (decisions, conventions, preferences) relevant to a task. It is clear about the function, though it does not explicitly differentiate from sibling tools like haki_capture or haki_forget. However, the purpose is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly instructs to call BEFORE planning or editing code, and provides detailed guidance on failure handling: call again with the same query and exclude_ids, and warns against rewriting the query. This is strong, actionable usage guidance with clear conditions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
haki_correctAInspect
Correct the memory from inside the conversation (M10). rating='incorrect' with a fact_id moves that fact to 'disputed': haki_context will never recall it again. rating='useful'/'irrelevant' logs feedback on a recall without changing the fact. Exactly one target required: fact_id (one precise fact, usually seen via haki_context/haki_inspect) OR trace_id (one whole haki_context call). Same mechanism as POST /v1/feedback (app.ledger.submit_feedback): identical effect whatever the call path. Scope resolved by API key (see _resolve_scope) or, self-hosted without a key, by HAKI_MCP_PROJECT_ID.
| Name | Required | Description | Default |
|---|---|---|---|
| rating | Yes | ||
| comment | No | ||
| fact_id | No | ||
| trace_id | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses that rating='incorrect' moves a fact to disputed and that haki_context will never recall it again, that 'useful'/'irrelevant' only logs feedback without changing the fact, and that the effect is identical via the API path. It also mentions scope resolution via API key or HAKI_MCP_PROJECT_ID. This covers the key behavioral aspects, though it doesn't mention error handling or idempotency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is dense but not bloated. It front-loads the primary purpose and then details rating effects, target requirements, API equivalence, and scope. Every sentence contributes to understanding how to use the tool correctly. Slightly longer than minimal, but justified given the need to explain the conditional behavior.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity (4 parameters, no schema descriptions, no annotations), the description is complete enough for an agent to call the tool correctly. It covers what it does, how to select targets, scope resolution, and the API equivalence. An output schema exists, so return values are not required in the description. Missing details like error conditions are minor given the provided context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It explains the meaning of rating ('incorrect', 'useful'/'irrelevant'), fact_id (one precise fact), trace_id (one whole haki_context call), and implies the purpose of comment via 'logs feedback'. It adds meaningful context beyond the bare schema, covering all parameters except comment, which is adequately implied.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: correcting memory from within a conversation. It specifies the exact behavior for each rating value ('incorrect' moves a fact to disputed, 'useful'/'irrelevant' logs feedback) and distinguishes it from siblings by focusing on feedback/correction rather than capture, recall, or forgetting. This is a specific verb-resource pairing with clear scope.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit usage conditions: exactly one target required (fact_id for a precise fact, trace_id for a whole haki_context call). It also explains the effect on haki_context (won't recall disputed facts) and mentions equivalence to POST /v1/feedback. It doesn't explicitly contrast with sibling tools like haki_forget, but the mechanism is clear enough for an agent to infer when to use it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
haki_forgetAInspect
Forget the configured subject's memory in this project. mode='disable' (reversible, facts move to disabled) or 'delete' (real erasure: facts, embeddings, events, traces). Returns the erasure receipt (forget_id) and the counters of what was done.
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | disable |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly states that 'disable' is reversible (facts move to disabled) and 'delete' is a real erasure of facts, embeddings, events, and traces, and that it returns an erasure receipt and counters. This is transparent about the mutation and its consequences, though it does not mention permissions or reversibility of delete (which is implied by 'real erasure').
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise, two sentences long, and front-loaded with the core purpose. Every sentence adds value: the first defines the action and the second explains the modes and return value. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with a single parameter, the description is highly complete. It explains both modes, their effects, and the return value. The presence of an output schema means the return format doesn't need detailing. It lacks explicit mention of prerequisites (e.g., that a subject must be configured) but this is likely context-specific and not critical for invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema only provides the parameter 'mode' with a default and no description or enum. The description compensates fully by explaining the two allowed values ('disable' and 'delete') and their distinct semantics. This adds meaning beyond the bare schema, making the parameter clear for the agent.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'forget' and the resource 'configured subject's memory in this project', making the purpose unambiguous. It also distinguishes the two modes, which adds specificity. While it doesn't explicitly name sibling tools, the action of forgetting is inherently distinct from capture, context, correct, and inspect, so an agent can easily identify the correct tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains the two modes and their effects (disable vs delete), giving some usage guidance on mode selection. However, it does not mention when to use this tool versus its siblings, nor does it provide any exclusions or prerequisites. The context of when to use forgetting is implied but not explicit, so the agent must infer it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
haki_inspectBInspect
Inspect the trace of a haki_context call: which facts were included, excluded or blocked, and why (reason_code). Provenance proof of the served memory.
| Name | Required | Description | Default |
|---|---|---|---|
| trace_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses that the tool returns inclusion/exclusion/blocking details with reason codes and provenance proof, implying a read-only inspection. However, it does not mention potential side effects, errors, or authorization requirements.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise, with two clear sentences that front-load the core action and then summarize the output. No redundant wording.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description gives a good overview of the tool's purpose and output, but lacks parameter-level detail and usage context. Given the minimal schema and no annotations, it is adequate but not fully complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The only parameter, trace_id, has no schema description. The tool description mentions a trace but does not explain how to obtain trace_id, its format, or its relationship to a haki_context call.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Inspect') and object ('the trace of a haki_context call'), and distinguishes it from siblings by focusing on provenance and reason codes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit guidance is given about when to use this tool versus the sibling tools (capture, context, correct, forget). It implies use after a haki_context call but does not state alternatives or conditions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
- First observed
haki_capture - First observed
haki_context - First observed
haki_correct - First observed
haki_forget - First observed
haki_inspect
Frequently Asked Questions
Claiming proves that you control a remote MCP connector. It does not move, proxy, or interrupt the server.
Open the connector listing, choose Claim ownership, and sign in to Glama.
Complete one verification method:
GitHub identity – fastest for official registry listings. For a namespace such as
io.github.alice/server, link the matching GitHub user, then choose Claim with GitHub. An organization namespace such asio.github.acme/serveralso needs that organization to have installed the Glama AI GitHub App and approved its permissions, because GitHub discloses organization membership only to apps it has installed. Use HTTP or DNS when it has not.HTTP challenge – works when you can deploy a public file. Generate a token, publish the exact JSON Glama shows at
/.well-known/glama.jsonon the same origin as the connector, then choose Check HTTP challenge.DNS challenge – works when you control DNS but cannot change the server. Generate a token, create the exact TXT record Glama shows, wait for it to propagate, then choose Check DNS challenge.
After verification, Glama sends a confirmation email and gives you access to listing details, thumbnails, health checks, and analytics. Keep the HTTP file or DNS record in place: Glama periodically checks it and ownership remains verified while the token is discoverable.
The HTTP ownership file has this structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"claim": "glama_claim_..."
}Claim tokens are opaque, stable, and bound to the signed-in Glama account. They contain no email address or other personal information. If Glama can no longer discover a verified HTTP or DNS token, it starts a seven-day grace period before removing claim-based access. Restore the same token during that period to keep ownership verified. Never publish an email address, Glama session token, GitHub token, or connector credential as ownership proof.
If verification fails, confirm that you copied the current token exactly. The HTTP file must be public, return valid JSON with a successful HTTP response, and stay on the connector's origin. DNS changes may need more time to propagate. A claim cannot transfer to a different origin or hostname: if the connector target changes, Glama starts the grace period and the new target must be claimed separately after the previous claim is released.
For a connector linked to the official MCP Registry, registry updates continue to replace its name, description, and URL by default. After claiming, open Manage connector and enable Use Glama listing details as the source of truth if edits made on Glama should be preserved. Categories and thumbnails are always managed on Glama; registry linkage and technical connection settings continue to sync.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
To improve your MCP server's ranking:
Claim ownership of the server listing
Complete the server profile with an accurate description and thumbnail
Provide a test profile so Glama can connect to and evaluate the server
Keep tool definitions clear and complete to earn a high Tool Definition Quality Score (TDQS)
Route real usage through the Glama Gateway; more recorded successful server uses also improve the ranking
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Related MCP Connectors
Long-term memory for AI agents: semantic facts, episodic events, and procedural workflows
Long-term memory for AI agents: durable records, observable retrieval, governed context assembly.
Evidence-grounded, graph-connected, correctable memory for agents.
Shared, governed memory for fleets of AI agents: judged contributions, provenance, operator control
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to record, recall, correct, and forget evidence-backed factual claims with temporal history, while explaining whether remembered information is current, historical, or contested.5Apache 2.0

Lians Agent Memoryofficial
AlicenseAqualityAmaintenanceLocal-first bitemporal memory for AI agents with deterministic supersession, point-in-time recall, erasure proofs, and tamper-evident audit history.2910Apache 2.0- AlicenseNot gradedqualityAmaintenanceA neuro-inspired long-term memory architecture for AI agents.3MIT
- AlicenseAqualityCmaintenanceLong-term memory for AI agents. Compiles conversations into a structured knowledge base with Claim/Evidence model, source provenance, append-only timeline, and contradiction detection. Multi-path retrieval (Exact + BM25 + Graph + weighted RRF + reranker) — 96.6% R@5 on LongMemEval-S, zero vector dependencies.83MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.