Skip to main content
Glama

emu_close

Releases an emulator and its native engine to free memory after large-image work, preventing resource buildup when sessions create emulators in a loop.

Instructions

Release an emulator and its native engine.

Worth calling when you are done with a large image: unicorn holds memory per instance, and a session that creates emulators in a loop will grow until they are closed.

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": {
      "key": "<key>"
    },
    "name": "emu_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
sessionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 real behavior: unicorn holds memory per instance and unclosed emulators accumulate. It omits what happens to the key afterward (is it invalid? does a second close error? is close idempotent?), which matters for a destructive lifecycle operation.

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?

Front-loaded with the action in the first sentence, followed by the rationale. The memory explanation is slightly wordy but every clause adds motive for calling the tool, so little is wasted.

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?

An output schema exists, so return values need no prose, and the motivation for cleanup is well covered. But the required `key` argument's meaning is entirely undocumented, which is a substantive gap for a two-parameter lifecycle tool.

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 coverage is 0% and neither parameter is explained. The word "session" appears in prose but is not tied to the optional `session` parameter, and the required `key` is never defined as an emulator handle (presumably returned by emu_create), leaving an agent to guess its provenance.

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?

"Release an emulator and its native engine" names a specific verb and resource, making it clearly distinct from emu_create. However, it never distinguishes itself from the sibling session_close, which an agent could easily confuse with releasing a single emulator.

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 concrete when-to-use condition ("when you are done with a large image") plus the consequence of skipping it (memory growth in loops). It stops short of naming an alternative or stating when-not to call, but the trigger condition itself is unambiguous.

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