Skip to main content
Glama

ucp_image_validate

Optional helper before ucp_order_storyboard: detects faces in one photo and returns faces, faceCount and isMultiPerson, so you can pick the focal person (selectedFaceIndex or subjectRankInFrame) for multi-person photos.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "image": "<image>"
    },
    "name": "ucp_image_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesBase64 data URL (data:image/jpeg;base64,...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations and no output schema, the description carries the disclosure burden and does it well by naming the returned fields and the read-only detection behavior. It omits operational details such as image size limits, cost/latency, or whether the image is persisted, which leaves a small gap for a photo-upload tool.

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?

One sentence, front-loaded with the tool's role and followed by return fields and downstream purpose. No redundant or filler wording.

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?

For a single-parameter helper, the description covers purpose, return values, and how the results are consumed, which is everything needed to call it correctly given no output schema. Missing only error/failure behavior and input constraints, which are minor at this complexity.

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 coverage is 100% and the single parameter's format (base64 data URL) is already documented in the schema, so the description adds no new constraints on the input. Its added value is explaining what the outputs feed into downstream (selectedFaceIndex, subjectRankInFrame), not the input parameter itself.

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 operation (face detection on one photo) and the exact return fields (faces, faceCount, isMultiPerson). It also positions the tool relative to its sibling ucp_order_storyboard, so an agent can tell what it does and where it sits in the workflow.

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?

It states the tool is an optional pre-step to ucp_order_storyboard and gives the triggering condition (multi-person photos needing selectedFaceIndex or subjectRankInFrame). It does not explicitly say when to skip it, e.g. single-subject photos, though 'Optional' strongly implies that.

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