Skip to main content
Glama

Clear debug primitives

debug_clear
Idempotent

Removes all primitives drawn by debug_draw in the client realm and returns the cleared count, allowing you to reset debug visuals.

Instructions

Client only (unsupported on srcds). Removes every primitive drawn by debug_draw (client realm). Result: {cleared: count}.

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": "debug_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
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (idempotent, non-destructive, closed-world), the description discloses two traits the annotations do not: the client-only platform restriction and the precise blast radius — only primitives created via debug_draw in the client realm, implying other drawing state is untouched. It does not mention permissions or rate limits, but clears add little of that surface.

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?

Three terse sentences, each earning its place: the environment restriction first, the exact effect second, the return shape third. No filler or restatement of the tool name beyond what adds scope information.

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 an output schema present and full parameter coverage, the description only needs to supply the behavioral framing, which it does via the platform restriction and the debug_draw scoping. One minor gap remains: it does not say whether clearing applies to a relayed remote instance's primitives when 'instance' is set.

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?

The single 'instance' parameter is fully documented in the schema (100% coverage) including the coordinator relay behavior, and the description adds nothing about it. That is the expected baseline when the schema carries the semantics, not a deficiency the description must fix.

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 ('Removes every primitive drawn by debug_draw') and pins the realm ('client realm'), which distinguishes it from the sibling debug_draw that creates those primitives. The scope qualifier 'Client only (unsupported on srcds)' further sharpens the purpose without ambiguity.

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?

Implicitly defines the use case as the inverse of debug_draw and gives an explicit environment exclusion ('unsupported on srcds'), which prevents an agent from calling it in a context where it silently does nothing. It stops short of naming a fallback for the srcds case, so it is clear context rather than a full when/when-not routing rule.

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