Skip to main content
Glama

Close Binary

close_binary
Destructive

Release the active reverse-engineering engine and replay cache after pending requests finish, optionally saving a target-bound snapshot before closing while retaining investigation evidence references.

Instructions

Drain earlier requests and release the active engine, replay cache and owned resources while retaining investigation Evidence references and complete Unknown history in memory. Optionally save a target-bound analysis snapshot before closing; resource-only sessions have no binary snapshot binding. Later requests wait for this transition. Existing files require overwrite; a failed snapshot save keeps the engine open. Metadata edits prevent snapshot saves until the engine is recreated. Use reset_investigation to clear records explicitly, optionally saving a complete cross-domain Evidence bundle for import in a new process. With Ghidra checkpoint mode enabled, normal close saves Program metadata; a failed save retains the live Program for close retry. Closing does not automatically persist investigation Evidence/Unknown records.

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

Input Schema

NameRequiredDescriptionDefault
overwriteNo
snapshot_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the destructive/non-idempotent annotations: later requests wait for the transition, existing snapshot files require overwrite, a failed snapshot save keeps the engine open, metadata edits block saves until recreation, and Ghidra checkpoint mode retains the live Program on failure for retry. It also flags the important limitation that closing does not persist Evidence/Unknown records.

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?

The core action is front-loaded in the first clause and every sentence carries substantive constraints. However, the closing sentence ('Closing does not automatically persist investigation Evidence/Unknown records') largely restates the retention behavior already established in sentence one, and the dense run-on phrasing makes it harder to scan.

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?

For a destructive, stateful session-teardown tool this is close to complete: failure modes, blocking behavior, snapshot preconditions, and the alternative tool are all covered, and return values are handled by the output schema. What remains unstated is the behavior when no engine is active (no-op vs error), which matters for a non-idempotent close.

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 0% and neither parameter carries a description, so the description has to compensate. It does explain overwrite semantics ('Existing files require overwrite') and that snapshot_path is an optional target-bound analysis snapshot, but it never clarifies the absolute-path requirement encoded in the schema pattern.

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: drain pending requests, release the active engine, replay cache and owned resources, while retaining Evidence references in memory. It explicitly differentiates itself from reset_investigation, which clears records instead of just closing the engine.

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?

Gives a clear use condition (close out the engine, optionally snapshotting) and names the alternative for record clearing: 'Use reset_investigation to clear records explicitly.' It also explains when snapshotting is impossible (resource-only sessions, after metadata edits), but does not spell out when an agent should prefer close_binary over simply letting the session idle.

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