Skip to main content
Glama

Add Chat Photos to Board

add_chat_photos_to_board

Use this when the user attaches images in this chat and wants them in Uwear, on the Shoot Board or in a shoot: clothing, a Model, a Location or a reference. Put each attachment in its own field, image_file_1, image_file_2, ... in attachment order, as the chat provides it: ChatGPT passes the file itself, also when you see only a file name or path. Chat attachments only: a web address is refused (ask the user to attach that photo). kinds: {image_file_N: garment|avatar|location|reference} for photos whose kind the user said or is clear (avatar: a person to use as a Model); Uwear sorts the rest. Saves each photo to the library (a repeat is reused), adds it to the board and returns its pile and asset id for propose_brief / update_brief. A photo returned unsure lists two candidates: ask the user and call again with the same files, kinds, sides and back_of. back_of: {image_file_N: image_file_M} when image_file_N is the back of the same garment image_file_M shows from the front (you can see they match): Uwear saves one garment with both photos. sides: {image_file_N: back} for a garment photo that plainly shows a garment's back with no front photo of it here; left out, a photo is its garment's front.

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_file_1": "<image_file_1>",
      "board_id": "<board_id>"
    },
    "name": "add_chat_photos_to_board"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNoWhat each photo is, when you can tell (garment: clothing; avatar: a person to use as a Model; location: a place; reference: a pose, mood or styling photo), or the user's answer for one that came back unsure: {image_file_N: kind}. A photo left out is sorted by Uwear.
sidesNoGarment photos only, when you can see which side one shows: {image_file_N: back} for a photo of the garment's back. A photo left out is its garment's front.
back_ofNoTwo photos of one garment, when you can see they match: {image_file_N: image_file_M} for image_file_N showing the back of the garment image_file_M shows from the front. Uwear saves one garment with both photos.
board_idYesThe open Shoot Board's board_id, from Open Shoot Board or your context.
image_file_1YesAn image attached in this chat, passed as the chat provides it.
image_file_2NoAn image attached in this chat, passed as the chat provides it.
image_file_3NoAn image attached in this chat, passed as the chat provides it.
image_file_4NoAn image attached in this chat, passed as the chat provides it.
image_file_5NoAn image attached in this chat, passed as the chat provides it.
image_file_6NoAn image attached in this chat, passed as the chat provides it.
image_file_7NoAn image attached in this chat, passed as the chat provides it.
image_file_8NoAn image attached in this chat, passed as the chat provides it.
image_file_9NoAn image attached in this chat, passed as the chat provides it.
image_file_10NoAn image attached in this chat, passed as the chat provides it.
upload_handlesNoOnly after running a previous call's upload_command: {image_file_N: the sha256 it printed for that photo}. Never the attachments themselves: those go in image_file_N.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / back_of
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Two photos of one garment, when you can see they match: {image_file_N: image_file_M} for image_file_N showing the back of the garment image_file_M shows from the front. Uwear saves one garment with both photos.",
      +  "properties": {
      +    "image_file_1": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    },
      +    "image_file_10": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    },
      +    "image_file_2": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    },
      +    "image_file_3": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    },
      +    "image_file_4": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    },
      +    "image_file_5": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    },
      +    "image_file_6": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    },
      +    "image_file_7": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    },
      +    "image_file_8": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    },
      +    "image_file_9": {
      +      "pattern": "^image_file_([1-9]|10)$",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / sides
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Garment photos only, when you can see which side one shows: {image_file_N: back} for a photo of the garment's back. A photo left out is its garment's front.",
      +  "properties": {
      +    "image_file_1": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    },
      +    "image_file_10": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    },
      +    "image_file_2": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    },
      +    "image_file_3": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    },
      +    "image_file_4": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    },
      +    "image_file_5": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    },
      +    "image_file_6": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    },
      +    "image_file_7": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    },
      +    "image_file_8": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    },
      +    "image_file_9": {
      +      "enum": [
      +        "front",
      +        "back"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / upload_handles / description
      Previous value: -"Only the upload_handle values a previous call of this tool returned in upload_needed, after running their commands: {image_file_N: upload_handle}. Never the attachments themselves: those go in image_file_N."New value: +"Only after running a previous call's upload_command: {image_file_N: the sha256 it printed for that photo}. Never the attachments themselves: those go in image_file_N."
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say non-readonly, non-destructive, non-idempotent; the description adds the substantive behavior: each photo is saved to the library, a repeat is reused, it is added to the board, and the return includes pile and asset id for propose_brief/update_brief. It also discloses the unsure-two-candidates flow and that Uwear auto-sorts unlabeled photos, none of which is derivable from the annotations.

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 activation condition is correctly front-loaded, but the body is a set of long run-on sentences dense with internal jargon ('Uwear sorts the rest', 'returns its pile'), which slows parsing. Nearly every clause carries information, but the packaging is heavier than needed for a 15-parameter tool.

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 15-parameter nested-schema mutation with no output schema, the description covers trigger, refusal case, kind/side/back_of semantics, and what is returned (pile and asset id). The main omission is the upload_handles / upload_command escape hatch for oversized files, which is only discoverable from the schema.

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 100%, so baseline is 3; the description still earns a bump by giving the ordering rule (attachment order into image_file_1, image_file_2, ...), the meaning of avatar ('a person to use as a Model'), the sides default, and the matching rule for back_of. It never mentions upload_handles or the upload_command retry, leaving that two-step path to the schema alone.

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 trigger and verb+resource: attaching images in the chat and getting them onto the Shoot Board in Uwear, with the accepted photo categories spelled out. It does not name the near-sibling upload paths (save_reference_file_from_chat_file, upload_avatar_from_chat_file, upload_garment_from_public_url), so the agent must infer the boundary from 'Chat attachments only: a web address is refused'.

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?

States the activation condition ('when the user attaches images in this chat and wants them in Uwear'), the exclusion ('Chat attachments only: a web address is refused (ask the user to attach that photo)'), and the re-invocation path when a photo returns unsure – 'ask the user and call again with the same files, kinds, sides and back_of'. When-to-use, when-not, and the follow-up loop are all explicit.

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