Skip to main content
Glama

listing.clear

Clears listing content over a specified range and can remove symbols, comments, references, functions, or context, so you can reset analyzed code before reworking it.

Instructions

Clear listing content over a range, including optional symbols, comments, references, functions, or context.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>",
      "start": "<start>"
    },
    "name": "listing.clear"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
startYes
lengthNo
session_idYes
clear_contextNo
clear_equatesNo
clear_symbolsNo
clear_commentsNo
clear_bookmarksNo
clear_functionsNo
clear_registersNo
clear_propertiesNo
clear_user_referencesNo
clear_import_referencesNo
clear_default_referencesNo
clear_analysis_referencesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a destructive operation. It names categories that may be destroyed (symbols, comments, references, functions, context), which is worth some credit, but says nothing about irreversibility/undo, permission requirements, or the important edge case of what happens when no clear_* flag is set.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no padding, which is good. But the brevity comes at the cost of under-specification: the trailing 'including ...' list reads as an afterthought rather than structured coverage of the clear_* options.

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

Completeness2/5

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

With 16 parameters, a required start/session_id pair, three different range encodings, no annotations, no output schema and zero schema descriptions, the definition is far short of what an agent needs to invoke this destructively and correctly. Key unknown — the default behavior when no clear_* flag is true — is never addressed.

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 and largely does not. It gestures at clear_symbols, clear_comments, clear_*_references, clear_functions and clear_context, but omits clear_equates, clear_bookmarks, clear_registers, clear_properties, says nothing about defaults, and leaves start/end/length/session_id semantics entirely unexplained — including whether end and length are mutually exclusive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Clear') and a resource ('listing content over a range'), plus a partial enumeration of what can be cleared. However, 'listing content' is vague, and nothing distinguishes this from the sibling listing.data.clear or equate.clear_range, so an agent cannot confidently pick between them from the text alone.

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?

There is no explicit when-to-use guidance, no when-not-to-use, and no named alternative despite several overlapping siblings (listing.data.clear, equate.clear_range, bookmark.clear). The only hint is the phrase 'over a range', from which usage must be inferred.

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

Deploy Server

Other Tools