Skip to main content
Glama

Finish Local Garment Upload

finish_local_garment_upload

Second step only for local garment images already prepared with prepare_local_garment_upload and uploaded to every returned target. Classify each upload_handle as a full/detail front/back/side asset. Do not use this for ChatGPT attachments or arbitrary public URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
garmentsYesGarments assembled from owned upload handles returned by prepare_local_garment_upload

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $defs
      Removed value: -{
      -  "GarmentLocalUploadAssetInput": {
      -    "additionalProperties": false,
      -    "description": "One classified garment asset previously prepared and uploaded directly.",
      -    "properties": {
      -      "asset_kind": {
      -        "default": null,
      -        "description": "Asset kind: full garment view or detail crop.",
      -        "enum": [
      -          "full",
      -          "detail"
      -        ],
      -        "type": "string"
      -      },
      -      "asset_role": {
      -        "default": null,
      -        "deprecated": true,
      -        "description": "Deprecated role-only adapter. Prefer asset_kind and asset_view.",
      -        "enum": [
      -          "front",
      -          "back",
      -          "side",
      -          "detail"
      -        ],
      -        "type": "string"
      -      },
      -      "asset_view": {
      -        "default": null,
      -        "description": "Visible garment view. New detail uploads require front, back, or side.",
      -        "enum": [
      -          "front",
      -          "back",
      -          "side",
      -          "unspecified"
      -        ],
      -        "type": "string"
      -      },
      -      "upload_handle": {
      -        "description": "Owned upload handle returned by prepare_local_garment_upload",
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "upload_handle"
      -    ],
      -    "type": "object"
      -  },
      -  "GarmentLocalUploadItem": {
      -    "additionalProperties": false,
      -    "description": "One garment assembled from directly uploaded local assets.",
      -    "properties": {
      -      "assets": {
      -        "description": "Uploaded garment assets. Exactly one full front is required; full front/back/side views are unique and detail views can repeat.",
      -        "items": {
      -          "additionalProperties": false,
      -          "description": "One classified garment asset previously prepared and uploaded directly.",
      -          "properties": {
      -            "asset_kind": {
      -              "default": null,
      -              "description": "Asset kind: full garment view or detail crop.",
      -              "enum": [
      -                "full",
      -                "detail"
      -              ],
      -              "type": "string"
      -            },
      -            "asset_role": {
      -              "default": null,
      -              "deprecated": true,
      -              "description": "Deprecated role-only adapter. Prefer asset_kind and asset_view.",
      -              "enum": [
      -                "front",
      -                "back",
      -                "side",
      -                "detail"
      -              ],
      -              "type": "string"
      -            },
      -            "asset_view": {
      -              "default": null,
      -              "description": "Visible garment view. New detail uploads require front, back, or side.",
      -              "enum": [
      -                "front",
      -                "back",
      -                "side",
      -                "unspecified"
      -              ],
      -              "type": "string"
      -            },
      -            "upload_handle": {
      -              "description": "Owned upload handle returned by prepare_local_garment_upload",
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "upload_handle"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "description": {
      -        "default": null,
      -        "description": "Optional item-level garment description hint",
      -        "type": "string"
      -      },
      -      "gender": {
      -        "default": null,
      -        "description": "Target gender: male, female, unisex",
      -        "type": "string"
      -      },
      -      "name": {
      -        "default": null,
      -        "description": "Name for the garment. If omitted, derived from the front image filename.",
      -        "type": "string"
      -      },
      -      "processing_mode": {
      -        "default": null,
      -        "description": "Optional image processing. 'background_removal' removes the background (the platform upload default); 'none' stores the image as-is. Omit to use background removal.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "assets"
      -    ],
      -    "type": "object"
      -  }
      -}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations are all false (readOnlyHint: false, destructiveHint: false), so the description carries the disclosure burden. It explains the prerequisite and classification action but does not reveal side effects like whether it finalizes the garment, consumes handles, or is idempotent. Some scope constraints are added, but deeper behavior remains opaque.

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?

The description is three sentences, front-loaded with the prerequisite ('Second step only'), and every sentence adds value: prerequisite, action, and exclusion. No fluff or redundancy.

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?

Given no output schema, the description doesn't need to explain return values. It covers the two-step flow, the requirement for prepared/uploaded handles, the classification scope, and explicit non-uses. It could mention that it ultimately creates/updates garment records, but the schema's garments array implies this. Fairly complete for an agent.

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% with detailed field explanations (e.g., upload_handle description, asset_kind enum, processing_mode). The description only restates the classification concept (full/detail front/back/side) without adding new parameter-level semantics beyond what the schema already provides. Baseline 3 applies.

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 clearly states the tool's purpose: 'Second step only for local garment images already prepared with prepare_local_garment_upload' and 'Classify each upload_handle as a full/detail front/back/side asset.' It explicitly distinguishes itself from tools for ChatGPT attachments or public URLs, making it highly specific.

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?

The description gives explicit usage conditions: 'Second step only' and 'uploaded to every returned target.' It also includes a clear exclusion: 'Do not use this for ChatGPT attachments or arbitrary public URLs.' This effectively tells the agent when to use it versus alternatives.

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