Skip to main content
Glama

OpenFactory

desktop_close_tab

Close the currently active browser tab, then return screenshot + elements.

This sends the normal human browser shortcut Ctrl+W to the desktop VM. Use it after extracting what you need from a page, unless that tab has an unsaved form, draft, active download, authentication flow, or pending user approval.

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": {
      "vm_name": "<vm_name>"
    },
    "name": "desktop_close_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoMCP API key
vm_nameYesVM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM.
include_perfNoInclude per-stage timing metrics in the response.
response_modeNoResponse detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), none (no capture; blind action only).full
session_tokenNoSession token
screenshot_delayNoSeconds to wait after closing the active browser tab before taking a screenshot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does it reasonably: it names the underlying mechanism (Ctrl+W to the desktop VM), warns against use on tabs holding unsaved state, and states what is returned. It stops short of covering edge cases such as the last-remaining tab or whether the close is recoverable.

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 and its return value, then mechanism, then the cautionary clause. Two sentences plus an enumeration, with no filler, though the exclusion list inside a subordinate clause is slightly dense.

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?

No output schema exists, but the description names the response payload (screenshot + UI elements), which is the key missing piece; the screenshot_delay parameter implies capture happens post-action. What remains thin is the shape of "elements" and failure modes, which for a 6-parameter destructive desktop action is a modest gap rather than a blocking one.

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 description coverage is 100%, so the schema already documents vm_name, response_mode, screenshot_delay and include_perf. The description only alludes to capture behavior via "return screenshot + elements" and adds no format, default, or trade-off detail beyond the schema.

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 ("Close the currently active browser tab") plus the observable side effect ("return screenshot + elements"). The disclosure that it sends Ctrl+W implicitly separates it from a generic key-press tool, though no sibling is named outright.

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

Usage Guidelines5/5

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

Gives an explicit trigger ("after extracting what you need from a page") and a concrete set of exclusions: unsaved form, draft, active download, authentication flow, pending user approval. An agent can decide when not to call this without guessing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.