Skip to main content
Glama

haki

haki_correct

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ratingYes
commentNo
fact_idNo
trace_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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.

Conciseness4/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.