Skip to main content
Glama

rdp_screenshot

Captures the connected RDP window to an absolute PNG path for verification; run host_status first if no session is open.

Instructions

Capture the RDP window (found by class "AxHostWindow", else the hwnd rdp_connect recorded) to an absolute PNG path via PrintWindow and write it with fs; fails with BAD_ARGS on hosts where rdp_connect never connected or no window is open -- run host_status first.

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": {
      "outputPath": "<outputPath>"
    },
    "name": "rdp_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo
outputPathYesAbsolute path for the PNG file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the whole burden and does well: it discloses the capture API (PrintWindow), that the file is written via fs to an absolute path, the window-lookup fallback order, and the specific BAD_ARGS failure condition. It omits permissions/privilege needs, overwrite behavior when outputPath exists, and what a success response looks like.

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 dense sentence with the mechanism, fallback lookup, target path, and failure condition, with no filler. The prerequisite is deferred to the end, but it still reads front-loaded because the action and mechanism come first.

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 two-parameter tool with no annotations and no output schema, it covers mechanism and failure modes but never says what the tool returns on success (path? dimensions?) or whether parent directories must exist. The host parameter also remains only implicitly explained, leaving a modest gap against the complexity.

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 50%: outputPath is documented in the schema, while host is not. The description only indirectly conveys host's meaning by referring to 'the hwnd rdp_connect recorded', so an agent can infer host selects which connection's window is captured, but this is never stated plainly.

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 concrete verb+resource (capture the RDP window) plus the exact mechanism (PrintWindow to an absolute PNG path written via fs) and even the window-resolution rule (class "AxHostWindow", else the hwnd rdp_connect recorded). An agent can distinguish this from adb_screencap or monitor_events without opening the schema.

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 an explicit prerequisite (run host_status first) and an explicit precondition for failure (hosts where rdp_connect never connected, or no window open, yield BAD_ARGS). It does not name an alternative tool for the non-RDP case, so it falls just short of full routing guidance.

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