Skip to main content
Glama

pad_peek

Capture live handwritten notes from an Android study tablet with privacy guard, ink auto-cropping, and unchanged-canvas diffing to skip redundant image bytes.

Instructions

Capture the user's study tablet canvas with privacy guard, ink auto-crop, and ETag diff check.

Args: auto_crop: Crop empty infinite-canvas margins & toolbars around handwritten ink for sharper OCR. max_size: Max output image edge in pixels (clamped to 128-4096, default 1200). if_changed_since: Optional canvas_hash returned by a previous pad_peek call in this chat. If the canvas has not changed, skips sending image bytes (0 image tokens!). allow_any_app: Relaxes the study-app allowlist when the user explicitly asks to view another non-sensitive app. Never bypasses blocked sensitive apps, FLAG_SECURE, or NotificationShade. device: Optional explicit ADB serial or ip:port override.

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

Input Schema

NameRequiredDescriptionDefault
deviceNo
max_sizeNo
auto_cropNo
allow_any_appNo
if_changed_sinceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the privacy guard, that blocked sensitive apps, FLAG_SECURE and NotificationShade can never be bypassed even with allow_any_app, and that an unchanged canvas costs zero image tokens. It still omits what happens on capture failure, whether user consent is required per call, and any latency or rate considerations.

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 capability summary is front-loaded and the Args block is scannable, with each entry a single functional sentence. There is mild redundancy between the header sentence and the auto_crop entry, and the description necessarily restates parameter names already visible in the schema, but nothing is padded.

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?

A five-parameter capture tool with an output schema does not need return-value documentation, and the description covers every parameter plus the security envelope that governs allow_any_app. It stops short of describing failure modes or whether a capture can silently return an empty/blocked result, which is the main remaining gap for an agent deciding whether to trust the output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 document all five parameters, and it does: auto_crop's purpose, max_size with its clamp range (128-4096) and default of 1200, if_changed_since tied to a prior call's canvas_hash, allow_any_app's relaxation scope and hard limits, and device as an explicit ADB serial or ip:port override. Meanings, defaults, and constraints all go beyond the bare 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?

Opens with a concrete verb+resource ('Capture the user's study tablet canvas') and names three distinguishing capabilities: privacy guard, ink auto-crop, and ETag diff check. It does not explicitly contrast itself with the sibling pad_status or pad_zoom, but the capture semantics are specific enough that an agent can separate them on name and verb alone.

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?

Usage context is embedded in the parameter prose rather than stated up front: if_changed_since implies a cheap re-poll pattern within the same chat, and allow_any_app implies a 'only when the user explicitly asks for another app' rule. There is no explicit statement of when to call this instead of pad_status/pad_zoom, or of any polling frequency guidance, so the guidance is present but only inferable.

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

Deploy Server

Other Tools