Skip to main content
Glama

identify

Analyze a product photo to plan the listing cut: return a segmentation-ready product concept, alternate phrasings, and listing copy such as title, bullets, and condition notes.

Instructions

Plan the cut for a product photo (step inside the listing chain).

Args: image: The product photo — an asset handle (asset://), an http(s) URL, or a base64 data URI. It is ingested and normalized first.

Reads the photo with the vision model and returns the plan the chain consumes: a structured description, the noun-phrase concept suitable for text-prompted segmentation ("brown leather wallet") with at least two alternate phrasings the mask-recovery loop can retry with, plus listing copy (suggested_title, listing_bullets, condition_notes). When phrase hygiene had to change the model's own concept (a frame/medium phrase rewritten or promoted over), concept_rewritten_from names the phrase the model actually returned; it is None when the concept passed through intact. The call is billed through the spend-cap choke point and the result carries its actual cost and token usage.

Without META_API_KEY configured the tool returns a structured NOT_CONFIGURED error and makes no call (and no ledger entry). This tool exists to serve the chain; the sellable outputs are cut_out's transparent PNG and draw's staged composite with its fidelity receipt.

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

Input Schema

NameRequiredDescriptionDefault
imageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.9/5.0
Behavior5/5

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

With no annotations, the description carries the full load and does so well: it discloses that the image is ingested and normalized first, that the call is billed through a spend-cap choke point with actual cost and token usage returned, and that a missing META_API_KEY yields a structured NOT_CONFIGURED error with no call and no ledger entry. It also explains a subtle field semantic (concept_rewritten_from is None when the concept passed through intact), which is behavior an agent could not infer from schema alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first line front-loads the purpose well, but a leftover docstring 'Args:' block breaks the flow and the final sentence about chain serve/sellable outputs is loosely bolted on. Content mostly earns its place, yet the formatting artifacts and run-on closing sentence cost readability.

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 and no annotations, the description steps up by naming the returned fields (structured description, concept + alternates, suggested_title, listing_bullets, condition_notes, cost/token usage) and the error mode. An agent has enough to invoke and interpret the result; only failure handling for bad image inputs is unaddressed.

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?

Schema coverage is 0% — the schema only says string titled 'Image' — so the description must compensate, and it does: the single parameter accepts an asset handle (asset://<id>), an http(s) URL, or a base64 data URI, and is normalized on ingest. It stops short of stating size limits or rejection behavior for malformed values, so it is thorough but not exhaustive.

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?

States a specific action ("Plan the cut for a product photo") plus the concrete outputs: a structured description, a noun-phrase concept with alternate phrasings, and listing copy. It also distinguishes itself from siblings by declaring that the sellable artifacts belong to cut_out and draw, not this tool. The only friction is the name 'identify' versus the stated job of planning a cut, which a reader must reconcile.

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?

Positioning is implied rather than stated: "step inside the listing chain" and "this tool exists to serve the chain" tell the agent it is a precursor whose result the chain consumes, and the closing sentence redirects to cut_out/draw for final outputs. What's missing is an explicit ordering rule (call this first, then cut_out) or a condition for when an agent should skip it and use a sibling directly.

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