Skip to main content
Glama

Clear errors

errors_clear
DestructiveIdempotent

Clears stored errors so subsequent error queries start fresh; existing cursors stay valid for previously collected errors.

Instructions

Forgets the errors kept so far (errors_since then starts empty); cursors keep growing, so an old cursor stays valid. Result: {cleared, next_cursor}.

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": "errors_clear"
  }
}

Input Schema

NameRequiredDescriptionDefault
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.

Output Schema

NameRequiredDescriptionDefault
nextNo
noteNo
clearedYes
warningNo
next_callNo
answered_byNo
next_cursorYes
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds the important clarification that cursors keep growing so an old cursor remains valid – this bounds the 'destructive' implication to the error buffer rather than cursor validity. It also names the return shape. It does not say whether the clear is scoped per instance, though the schema covers the instance parameter.

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?

Two short clauses pack the effect, the interaction with errors_since, the cursor guarantee, and the return shape with zero filler, and the primary effect is front-loaded.

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?

A destructive-but-idempotent one-parameter tool with full schema coverage and an output schema. Safety semantics, cursor behavior, and interaction with the companion read tool are all covered; nothing an agent needs in order to call it correctly is missing.

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% and the single optional instance parameter is fully documented in the schema, including the coordinator relay behavior. The description adds nothing about the parameter, 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 and resource (forget/clear the retained errors) and immediately ties it to the sibling it complements by naming errors_since and the resulting empty state. An agent can distinguish it from errors_since and debug_clear without opening either schema.

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?

Usage is clear from the parenthetical: call this when you want errors_since to start collecting from a clean slate. It does not explicitly state when not to use it or mention alternatives like debug_clear, but the intended context is unambiguous.

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