Skip to main content
Glama

StyleTwin

Send a piece to StyleTwin

add_to_closet

Send a piece to the user's StyleTwin closet: a shop's product page (shop_link) and/or one picture of it (image, image_url or image_base64), with what it is (piece) and the product's details (product). Use this when the user wants a piece from this chat in StyleTwin, one they own or one they like in a shop. The app adds it the next time the user opens StyleTwin, or shows it at the top of the Closet tab for them to add. Needs Allow changes for this chat in the app.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_to_closet"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoWhat it is, for the user, e.g. "Linen shirt from Zara, size M".
imageNoA photo the user attached in this chat, as taken: their own photo of the piece, or a photo of them in it (ChatGPT fills it in). StyleTwin cuts the piece out on the phone.
pieceNoWhat the piece is. With a picture, the app adds it by itself.
productNoWhat you know about the product on shop_link, kept with the piece.
image_urlNoA direct https link to the shop's own product photo (as the shop shows it) or to the user's photo. An unedited picture: StyleTwin cuts the piece out itself. JPEG, PNG or WebP.
shop_linkNoA shop's product page. Send it with image_url (the product photo) when you have it.
image_base64NoA small unedited picture inline: 768 px JPEG, quality 80, under 500 KB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the asynchronous delivery model: 'The app adds it the next time the user opens StyleTwin, or shows it at the top of the Closet tab for them to add.' It also discloses the permission requirement ('Allow changes for this chat') and background processing ('StyleTwin cuts the piece out on the phone'), which is exactly the context the readOnly/openWorld hints cannot convey.

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 sentences, front-loaded with what is sent, then when to use it, then the delivery and permission mechanics. Dense but every clause carries information; the only mild cost is the long parenthetical enumerating image variants, which is arguably necessary given four mutually alternative image inputs.

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 non-idempotent write tool with nested objects and no output schema, the description covers the important unknowns: accepted inputs, timing, permissions, and server-side image processing. Minor gaps remain, such as what happens when called with no image and no shop_link (all 7 params are optional) and what the call returns.

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 the baseline is 3, but the description adds real meaning the schema does not express: the 'and/or' relationship between shop_link and exactly one picture among image, image_url or image_base64. It also frames product as 'what you know about the product on shop_link,' clarifying that product data accompanies the link rather than standing 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?

States a specific verb and resource ('Send a piece to the user's StyleTwin closet') and enumerates the accepted inputs (shop_link, image/image_url/image_base64, piece, product). It is unmistakably an add/send operation, though it never names or contrasts a sibling such as start_upload or save_collection, so the agent must infer that this is the chat-to-closet path rather than an upload flow.

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?

Explicitly says 'Use this when the user wants a piece from this chat in StyleTwin, one they own or one they like in a shop,' covering both the owned and store-product cases. It also states the prerequisite 'Needs Allow changes for this chat in the app.' It stops short of naming when-not-to-use or pointing to an alternative tool.

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