Skip to main content
Glama

analysis.clear_cache

Clear cached decompiler state for the current session so later analysis requests rebuild it cleanly.

Instructions

Clear cached decompiler state for the current session so later requests rebuild it cleanly.

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>"
    },
    "name": "analysis.clear_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two useful facts: what is discarded (cached decompiler state) and that it is session-scoped. It leaves open whether the operation is destructive to anything else, whether other sessions or in-flight requests are affected, and what the call returns on success or failure.

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?

One sentence, front-loaded with the action and resource, with the rationale trailing rather than padding. Nothing here is redundant or droppable.

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 a simple one-parameter cache-reset tool this is nearly adequate, and the absence of an output schema relieves it of explaining return values. The remaining hole is the undocumented session_id and the unstated blast radius of the clear, both of which an agent needs before invoking it.

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% for the single required parameter, session_id, and the description never mentions it. The agent must guess what identifier is expected and whether it must match the active session, which is precisely the kind of meaning the description should supply when the schema is bare.

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?

States a specific verb and resource: 'Clear cached decompiler state,' scoped to 'the current session.' That distinguishes it from sibling clear operations on bookmarks, listings, and reference ranges, which touch different state. It stops short of naming a sibling alternative, but the resource noun does the disambiguating work.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The clause 'so later requests rebuild it cleanly' implies the motivating scenario (stale or inconsistent decompiler output), which is genuine usage context. However, it never states a concrete trigger condition, any when-not case, or an alternative tool for refreshing state, leaving the agent to infer when a clear is warranted.

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