Skip to main content
Glama

Save preferences

set_user_prefs
Idempotent

Save the shopper's default size and/or fit on their allover.art account, so later chats can skip asking. Call it only when the human states a size or fit or asks you to remember one; read it back with get_user_prefs. Pass only what they stated: an omitted field keeps its saved value, an empty string clears it. size is XS, S, M, L, XL or 2XL–5XL (case-insensitive); fit is basic or oversized. The saved size fills in add_to_cart when size is omitted, and the fit maps to search_products style (basic → tee, oversized → oversized). Any other size or fit returns an error and saves nothing. ai_opt_in (true or false) saves the AI tools switch — pass it only when they say so. It turns AI tools on or off for a designer or an admin; a shopper's AI tools stay on whatever it says. While the account does not keep this choice yet it returns an error and saves nothing.

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

Input Schema

NameRequiredDescriptionDefault
fitNoFit preference: basic or oversized; empty string clears it.
sizeNoDefault size: XS, S, M, L, XL, 2XL…5XL; empty string clears it.
ai_opt_inNoThe AI tools switch: true — on, false — off (for designers and admins; a shopper keeps AI tools either way). Omit to keep the saved choice.

Output Schema

NameRequiredDescriptionDefault
fitNo
sizeNo
errorNo
ai_opt_inNoThe AI tools switch as saved now; absent while the account does not keep this choice yet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / ai_opt_in
      Added value: +{
      +  "description": "The AI tools switch: true — on, false — off (for designers and admins; a shopper keeps AI tools either way). Omit to keep the saved choice.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / ai_opt_in
      Added value: +{
      +  "description": "The AI tools switch as saved now; absent while the account does not keep this choice yet.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / fit / description
      Previous value: -"Fit preference: basic or oversized."New value: +"Fit preference: basic or oversized; empty string clears it."
    • changedInput schema / properties / size / description
      Previous value: -"Default size: XS, S, M, L, XL, 2XL…5XL."New value: +"Default size: XS, S, M, L, XL, 2XL…5XL; empty string clears it."
  3. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare a non-read-only, idempotent, non-destructive write, and the description adds substantial context beyond that: omitted fields preserve saved values, empty strings clear them, invalid values save nothing and return an error, and ai_opt_in is a no-op for shoppers and errors when unsupported. That is exactly the kind of side-effect and failure-mode detail annotations cannot express.

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?

Front-loaded with purpose, then trigger, then mechanics; every sentence carries operational information. It is dense and slightly long, with the valid size/fit lists partially duplicating the schema enums, but nothing is padding.

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

Completeness5/5

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

For a zero-required-param mutation tool with an output schema, the description covers triggers, per-field write semantics, validation failure behavior, permission-dependent effects of ai_opt_in, and downstream consumers of the stored values. Nothing an agent needs before calling is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though schema coverage is 100%, the description adds meaning the schema cannot: accepted case-insensitive size range and fit values, clear-on-empty-string semantics, and downstream mapping (size fills add_to_cart, fit → search_products style basic→tee / oversized→oversized). It also explains that ai_opt_in only takes effect for designers/admins.

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?

States a specific verb and resource ('Save the shopper's default size and/or fit on their allover.art account') and immediately scopes it against the sibling reader ('read it back with get_user_prefs'). An agent can distinguish it from other cart/product tools without opening the schema.

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?

Gives an explicit trigger condition ('only when the human states a size or fit or asks you to remember one') and names the alternative tool for retrieval (get_user_prefs). It also warns to 'pass only what they stated', which is usage guidance, not just schema repetition.

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