Skip to main content
Glama

Prepare Screenshot Upload

prepare_screenshot_upload

Get a curl command for uploading screenshots that request_approval can show on the review screen. Call it once before request_approval when a screenshot helps the user decide, such as test results, a UI change, or an error. Run the returned command from your shell once per PNG, JPEG, or WebP file (2 MB at most), replacing the file path; each run prints a JSON response with a screenshot ID. Pass up to 5 of those IDs in request_approval screenshots. The upload token works for 15 minutes, and an upload not used by an approval within an hour is deleted. Sends nothing to the user's devices.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
max_bytesYes
expires_atYes
upload_urlYes
curl_commandYes
upload_tokenYes
accepted_content_typesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the execution model (run the returned shell command once per file), supported formats (PNG/JPEG/WebP) and the 2 MB cap, that each run prints JSON containing a screenshot ID, the 5-ID handoff limit, and two distinct lifetimes (15-minute token, one-hour unused-upload deletion). It also states side effects are confined to no user devices, which meaningfully complements openWorldHint=false.

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?

Five sentences, front-loaded with purpose then sequencing, then mechanics, then limits, then side effects — a logical escalation with no filler. Every sentence carries an actionable constraint (format, size, count, expiry) that an agent would otherwise get wrong.

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?

Given zero inputs, a present output schema, and a multi-step out-of-band workflow (shell execution, token expiry, ID handoff), the description covers everything an agent needs to plan the sequence correctly. The return-value details are supplied even though an output schema exists, because the real output arrives from the shell command rather than the tool call.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is a 4; the schema has nothing to disambiguate. The description does add useful operational semantics for the artifact that substitutes for parameters — the file path substitution, per-file invocation, and the 5-ID list passed to request_approval.

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 opening sentence states a specific verb and resource ('Get a curl command for uploading screenshots') and immediately ties it to the sibling that consumes the result (request_approval), so it cannot be confused with the approval tools themselves. It also clarifies that the tool returns a command rather than performing the upload, which is a non-obvious distinction.

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 gives explicit sequencing ('Call it once before request_approval') plus a selecting condition ('when a screenshot helps the user decide') with three concrete examples: test results, UI changes, errors. The conditional clause also functions as implicit when-not guidance, since nothing is needed when a screenshot would not help.

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.

Resources