Skip to main content
Glama

StyleTwin

Edit a piece

update_piece
Destructive

Change a piece's details: name, owned (true marks a saved shop item as bought), colour name, material, formality, warmth, sleeve, length, pattern, fit or brand. Needs the account connected with changes allowed.

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": {
      "piece": "<piece>"
    },
    "name": "update_piece"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitNo
nameNo
brandNo
ownedNotrue: the user has it (a saved shop item was bought).
pieceYesThe piece, by its id from get_closet (or its name).
lengthNo
sleeveNo
warmthNo
patternNo
materialNo
formalityNo
color_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=false, and the description correctly frames this as a mutation with an auth prerequisite, which adds value. But it does not say what the destructive aspect means in practice — whether fields omitted are left untouched, whether edits are reversible, or how failures surface.

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?

Two sentences, front-loaded with the action and field list followed by the prerequisite; little waste. The long comma-separated field run is dense but efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter, non-idempotent mutation with no output schema, the description covers the target fields and the auth prerequisite but leaves partial-update semantics and failure behavior unstated. Adequate, but a meaningful gap remains for a tool annotated as destructive.

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 only 17%, so the description must carry the load; it does list every editable field (name, owned, colour name, material, formality, warmth, sleeve, length, pattern, fit, brand), which compensates for the sparse schema. What it does not add is meaning beyond the field names — the enum choices and the effect of setting 'owned' to false go unexplained.

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?

The description gives a specific verb ('change') plus an enumerated set of editable fields on the 'piece' resource, which clearly separates it from update_look, delete_piece, and add_to_closet by resource noun. It stops short of naming a sibling to contrast with, but the scope is unambiguous.

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?

It states one real precondition ('Needs the account connected with changes allowed'), which is useful. However, there is no guidance on when to choose update_piece versus add_to_closet or delete_piece, nor on what to do if the piece cannot be found.

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