Skip to main content
Glama

MCP Server By TestMu AI

SmartUI Screenshot Upload

smartui_screenshot_upload
Destructive

Upload screenshots to a SmartUI project as a new build, from local file_paths or from source_urls (fetched server-side, so it works without a client filesystem). Pass project_id to auto-resolve the project token. Set mark_baseline=true to seed a baseline. Returns build_id; follow with smartui_build_query(action=gate).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesWhat to upload (currently images)
build_nameNoName for this build (optional)
file_pathsNoAbsolute local image paths (.png/.jpg/.jpeg). Only usable when the MCP server runs locally over stdio — the hosted server cannot see your filesystem; use source_urls there.
project_idNoProject id — preferred; the projectToken is resolved automatically
source_urlsNoPublic http/https image URLs, fetched server-side (max 20). Works in hosted mode.
mark_baselineNoMark this build as the baseline
screenshot_nameNoName this screenshot (binds it to that baseline) instead of using the file/URL name. Sent exactly as given, with no extension added, so pass the baseline name as it appears in SmartUI (SDK and CLI captures have no extension). Only valid when uploading exactly one image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / screenshot_name / description
      Previous value: -"Name this screenshot (binds it to that baseline) instead of using the file/URL name. Only valid when uploading exactly one image."New value: +"Name this screenshot (binds it to that baseline) instead of using the file/URL name. Sent exactly as given, with no extension added, so pass the baseline name as it appears in SmartUI (SDK and CLI captures have no extension). Only valid when uploading exactly one image."
  2. Changed1 schema field changed
    • removedInput schema / properties / project_token
      Removed value: -{
      -  "description": "Explicit projectToken (alternative to project_id)",
      -  "type": "string"
      -}
  3. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the agent knows this mutates state. The description adds the build_id return and the gate follow-up, which the annotations do not convey. However, it never explains the destructive side — e.g. that mark_baseline=true may overwrite an existing baseline — which is the most important behavioral caveat for a tool flagged destructive.

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?

Three tight sentences, correctly front-loaded with the core action and the highest-value caveat (server-side fetch vs client filesystem). Slight redundancy: the 'fetched server-side' note repeats the schema's 'Works in hosted mode'.

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?

With no output schema, the description correctly discloses the return value (build_id) and the next step, so an agent can chain into the gate query. The only gap is behavioral — what marking a baseline displaces — which a destructive-flagged mutation tool should mention.

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 description coverage is 100%, so the schema already documents every parameter, including the stdio-vs-hosted constraint and the 'no extension added' rule for screenshot_name. The description largely restates this, adding only the minor tie between mark_baseline and later screenshot_name binding. Baseline 3 applies when the schema does the heavy lifting.

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 specific verb and resource ('Upload screenshots to a SmartUI project as a new build') and covers both ingestion modes, file_paths and source_urls. This distinguishes it cleanly from siblings like smartui_screenshot_review and smartui_build_query, which operate on existing builds.

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 conditional guidance: file_paths only works over local stdio, source_urls for hosted mode, project_id for token auto-resolution, mark_baseline to seed a baseline. It also names the follow-up tool (smartui_build_query(action=gate)). It stops short of saying when to use this vs smartui_baseline_manage for baseline operations.

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