Skip to main content
Glama

add_rule

Create neuro-symbolic rules to filter or rerank memory recall results based on specified conditions, enhancing retrieval accuracy in the Cortex memory system.

Instructions

Add a neuro-symbolic rule to the memory store. Rules hard-filter or soft-rerank recall results based on conditions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conditionYes
actionYes
rule_typeNosoft
scopeNoglobal
scope_valueNo
priorityNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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 explains that rules 'hard-filter or soft-rerank recall results', which gives some insight into behavior, but lacks details on permissions, side effects, error handling, or response format, leaving significant gaps for a mutation tool.

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 front-loaded and concise with two sentences that directly state the tool's purpose and effect. There's no unnecessary information, though it could be slightly more structured by explicitly listing key parameters.

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

Completeness3/5

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

Given the tool's complexity (6 parameters, mutation operation) and lack of annotations, the description is minimally adequate but incomplete. It covers the basic purpose and effect, but with 0% schema coverage and an output schema present, it should provide more parameter context and behavioral details to be fully helpful.

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

Parameters2/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 for undocumented parameters. It mentions 'conditions' and hints at 'rule_type' (hard-filter vs. soft-rerank), but doesn't explain the meaning or usage of the 6 parameters (e.g., 'scope', 'priority'), failing to add sufficient value beyond the bare schema.

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?

The description clearly states the action ('Add') and resource ('neuro-symbolic rule to the memory store'), with a specific purpose of filtering or reranking recall results. However, it doesn't explicitly differentiate from sibling tools like 'get_rules' or 'validate_memory', which would require 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives, such as when to add rules versus using other tools like 'recall' or 'validate_memory'. The description mentions the tool's effect but not the context for its application.

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/cdeust/Cortex'

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