Skip to main content
Glama

correct

Store corrections to prevent AI mistakes from recurring. Corrections override normal memories and always surface first for accurate responses.

Instructions

Store a correction. Always maximum importance. Always surfaces first.

Use this when the AI made a mistake and you want to prevent it from
happening again. Corrections override normal memories.

Args:
    content: What the correct behavior/answer should be.
    context: When/where this correction applies.
    tags: Comma-separated tags.
    namespace: Namespace for organizing memories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
contextNo
tagsNo
namespaceNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The `correct` tool handler which uses the Memory layer to store corrections.
    @mcp.tool()
    def correct(content: str, context: str = "", tags: str = "",
                namespace: str = "default") -> str:
        """Store a correction. Always maximum importance. Always surfaces first.
    
        Use this when the AI made a mistake and you want to prevent it from
        happening again. Corrections override normal memories.
    
        Args:
            content: What the correct behavior/answer should be.
            context: When/where this correction applies.
            tags: Comma-separated tags.
            namespace: Namespace for organizing memories.
        """
        mem = _get_mem()
        tag_list = [t.strip() for t in tags.split(",") if t.strip()] if tags else []
        mid = mem.correct(content, context=context, tags=tag_list,
                          namespace=namespace)
        return f"Stored correction #{mid} (importance: 10, always surfaces first)"
Behavior4/5

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

With no annotations provided, the description carries the full burden and successfully discloses key behavioral traits: maximum importance prioritization ('Always surfaces first') and hierarchical relationship to other memories ('override normal memories'). Missing minor details like persistence guarantees or reversibility, but covers the critical behavioral profile.

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?

Every sentence earns its place: purpose statement, behavioral priority, usage condition, and differentiation from siblings. The structured Args section efficiently documents parameters without redundancy. Front-loaded and appropriately sized for the complexity.

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?

Complete for a 4-parameter memory tool with output schema. The description covers purpose, usage context, all parameters (compensating for empty schema), and behavioral优先级. No gaps requiring consultation of external documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The Args section fully compensates for 0% schema description coverage by documenting all 4 parameters with clear semantics: 'content' defines correct behavior, 'context' specifies applicability, 'tags' notes the comma-separated format, and 'namespace' explains organizational purpose. Adds substantial value beyond the bare schema.

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 opens with the specific action 'Store a correction' and immediately distinguishes this from the sibling 'store' tool by noting that corrections 'override normal memories.' The additional behavioral details ('Always maximum importance. Always surfaces first') clarify the special status of this operation versus regular memory storage.

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?

Provides explicit when-to-use guidance: 'Use this when the AI made a mistake and you want to prevent it from happening again.' It implies the alternative (normal memories) by stating corrections override them, though it stops short of explicitly naming the 'store' sibling or stating when NOT to use this tool.

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/WeberG619/neveronce'

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