Skip to main content
Glama

check_contradictions

Scan stored memories for contradictions and resolve flagged pairs by recording the outcome, so conflicting facts stop warning and outdated entries can be retired.

Instructions

Scan for contradictions. Tier 1 (default): fast heuristic. Tier 2 (use_api=True): Claude API verification. mode='resolve' (key_a, key_b, outcome, winner, reason, retire_loser) records how a pair was settled: a person confirms it, and the pair stops warning. supersedes and both_wrong also work on a pair no scan linked, such as a changed value the heuristic can't see (lives in Berlin, then moved to Lisbon).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_contradictions"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo`resolve` records a person's decision about a linked pair; anything else (or nothing) is the scan.
key_aNo
key_bNo
queryNo
reasonNo
winnerNoFor `supersedes`: the key of the memory that is current.
outcomeNo`supersedes`, `both_valid`, `both_wrong`, `false_positive` or `reopened`.
use_apiNo
namespaceNoepisodic
retire_loserNo`true` or `"deprioritise"` stops the loser surfacing, `"archive"` retires it. For `both_wrong` it applies to both.
project_filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv7.1.7

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does so reasonably: it states the fast-heuristic vs. Claude API verification tradeoff (implying cost/latency differences), and explains that resolve records a person's confirmation after which "the pair stops warning." That is real state-change context not present in the schema. Gaps remain — it doesn't state whether resolve is reversible, what a scan returns, or API-tier costs/limits.

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?

Dense and front-loaded: the core action, the tier choice, and the resolve path arrive in that order with no filler sentences. The parenthetical style is terse and jargon-heavy, but every clause conveys a distinct fact rather than restating the name.

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?

For an 11-parameter tool with zero required parameters, no annotations, no enums, and no output schema, the description covers the two modes and their key semantics but leaves the scanning filters (query, namespace, project_filter) and any notion of return values unexplained. It is workable for the main paths but incomplete for the full parameter surface.

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 coverage is only 36%, so the description must compensate, and it does for most of the surface: it names key_a, key_b, outcome, winner, reason and retire_loser and explains how they combine in resolve mode, including that supersedes/both_wrong can apply to unlinked pairs. It says nothing about query, namespace, or project_filter, leaving three parameters undocumented in both schema and prose.

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 opens with a specific verb+resource ("Scan for contradictions") and immediately distinguishes two operating tiers (heuristic vs. Claude API verification), which makes the tool's identity clear. It also discloses a second, non-obvious capability (mode='resolve' recording a settled pair), so an agent understands this is both a scanner and a resolution recorder. It stops short of differentiating itself from nearby tools such as find_duplicates, so it does not reach 5.

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?

Clear selection guidance for the two paths: Tier 1 is the default and Tier 2 is selected with use_api=True, while mode='resolve' switches from scanning to recording a human decision. The note that supersedes and both_wrong work on pairs no scan linked (e.g., a changed value the heuristic can't see) is a concrete when-to-use case. No sibling tool is named as an alternative for related tasks like duplicate detection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.