Skip to main content
Glama

bench_capture

Measure local screen capture and encode latency in milliseconds for a chosen display and iteration count, helping agents assess capture performance before relying on screen frames.

Instructions

Measure local grab+encode latency (ms). display_id 0 = default/primary.

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

Input Schema

NameRequiredDescriptionDefault
display_idNo
iterationsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It says what latency is measured but omits whether the tool actually grabs frames, whether it affects recording state, how long it may run, or what the iterations parameter does. It also does not state whether the operation is read-only or has side effects.

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?

The description is two short sentences and front-loads the main purpose. The display_id clarification follows immediately and no words are wasted. It is appropriately sized for a simple two-parameter tool.

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

Completeness2/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 not be explained, but the description still leaves key gaps. It does not clarify the iterations parameter or describe behavioral characteristics such as side effects or resource impact, which matter more because no annotations are present.

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 description coverage is 0%, so the description must compensate for both parameters. It explains that display_id 0 means default/primary, but says nothing about the iterations parameter, its default of 5, or how increasing it changes the benchmark. Only one of two parameters receives semantic clarification.

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?

The description states a specific verb and resource: measure local grab+encode latency in milliseconds. It clearly identifies a benchmarking action rather than frame retrieval or recording control. It does not explicitly differentiate from siblings such as run_capacity_profile, but the purpose is unambiguous.

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

Usage Guidelines3/5

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

The description implies the tool is for latency benchmarking, but provides no explicit when-to-use or when-not-to-use guidance. It does not name alternatives or clarify whether this is preferable to run_capacity_profile or doctor in specific situations. Usage is only reasonably inferable from the stated measurement purpose.

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