Skip to main content
Glama

get_screen_size

Read-only

Retrieves an instance's screen width, height, active vision backend, and version. Call before any coordinate math so clicks and element actions land within valid pixel bounds.

Instructions

Screen size of an instance + the active vision backend and server version.

Returns {"ok", "instance", "width", "height", "vision", "version"}. Call it once before coordinate math — coordinates are absolute pixels, top-left origin, within THIS instance's display (0 <= x < width, 0 <= y < height; out-of-range coordinates are rejected). "vision" is the EFFECTIVE grounding backend: 'basic'/'local' → parse_screen + click_element; 'none' → screenshot + reason about pixels yourself. Fails (isError) if the instance is down.

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

Input Schema

NameRequiredDescriptionDefault
instanceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantive behavior beyond that: out-of-range coordinates are rejected, coordinates are absolute pixels with a top-left origin bounded by this instance's width/height, and the call errors (isError) if the instance is down. These are exactly the operational facts annotations cannot convey, though nothing is said about cost or latency of the probe.

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 description is front-loaded with the purpose, then the return shape, then the coordinate contract, then the routing semantics; nearly every clause earns its place. Minor waste: it enumerates the returned keys even though an output schema exists, and several concerns are packed tightly into one dense paragraph.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter probe feeding coordinate math, the description covers the coordinate frame, the rejection rule for out-of-bounds input, the failure mode, and how the returned 'vision' value changes downstream tool choice. Nothing an agent needs in order to call it correctly and interpret the result is missing.

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?

There is one parameter, 'instance', with 0% schema description coverage, and the description never explains what a valid instance identifier is or how to find one (list_instances is a sibling). It only implies the parameter's meaning through phrases like 'THIS instance's display' and 'if the instance is down', leaving discovery of the value undocumented.

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?

The description names a specific resource and scope: the screen dimensions of one instance, plus the effective vision backend and server version. The clause 'Call it once before coordinate math' immediately separates it from siblings like window_info or screenshot, which report content rather than the coordinate frame.

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?

It explicitly states when to call it ('once before coordinate math'), which conditions matter ('vision' basic/local routes to parse_screen + click_element, 'none' routes to screenshot and manual pixel reasoning), and what the failure condition is. That is explicit when-to-use guidance plus routing to the right alternative tools.

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