Skip to main content
Glama

list_rejections

Read-onlyIdempotent

List rejected and near-duplicate memories logged by Wenlan’s quality gate to diagnose missing captures or review flagged duplicates; filter by reason and limit results.

Instructions

List quality-gate flags and rejections: memories the daemon discarded before storing (low quality or another filter), plus near-duplicate memories that were stored anyway but logged for review (reason "near_duplicate"). Use only to diagnose a missing capture, a flagged near duplicate, or when the user asks what Wenlan rejected. Returns reason codes, detail, and similarity info; optional limit and reason filters narrow the audit.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum records to return. Default 50. Clamped to 1..=500.
reasonNoFilter by rejection reason code (e.g. "duplicate", "low_quality").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.19.3

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description's added value is defining the near_duplicate semantics (stored anyway but logged) and the returned fields (reason codes, detail, similarity). This is meaningful context beyond the safety profile, though it doesn't discuss volume/pagination limits of the list.

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?

Front-loads what is listed, then the near_duplicate clarification, then usage. Dense but each clause carries information; slightly long but no filler.

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?

With no output schema, the description correctly summarizes return contents (reason codes, detail, similarity). It omits behavior of unlimited queries (default/clamp) but that is covered in the schema, leaving the definition complete for an agent to call it.

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

Parameters3/5

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

Schema coverage is 100%, so both limit and reason are fully documented there (default 50, clamp 1..=500, example reason codes). The description only restates that optional limit and reason filters narrow the audit, adding no syntax or behavior beyond the schema, so the baseline 3 applies.

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?

States a specific verb+resource ('List quality-gate flags and rejections') and then defines the two distinct categories it covers: discarded memories and stored-but-logged near duplicates. An agent can distinguish this audit tool from the retrieval siblings without reading schemas.

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?

Explicitly scopes usage with 'Use only to diagnose a missing capture, a flagged near duplicate, or when the user asks what Wenlan rejected,' which tells the agent when-not to reach for it. It stops short of naming a specific alternative sibling (e.g. recall) for normal lookups, so not a full 5.

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