Skip to main content
Glama

Get saved preferences

get_user_prefs
Read-onlyIdempotent

Return the shopper's saved default size and fit. Call this BEFORE asking the user for a size — if a default is set, apply it automatically (add_to_cart uses it when size is omitted), and search in their fit: search_products style='oversized' for oversized, style='tee' for basic. Once the account keeps the person's AI tools choice it also returns ai_opt_in: the AI tools switch, which decides access for designers and admins only — a shopper's AI tools stay on whatever it says.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
fitNoSaved fit preference: basic | oversized, or null.
sizeNoSaved default size, or null.
ai_opt_inNoThe AI tools switch: their own choice, otherwise on for shoppers and admins and off for designers. It decides access for designers and admins; shoppers keep AI tools either way. Absent while the account does not keep this choice yet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / ai_opt_in
      Added value: +{
      +  "description": "The AI tools switch: their own choice, otherwise on for shoppers and admins and off for designers. It decides access for designers and admins; shoppers keep AI tools either way. Absent while the account does not keep this choice yet.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the value is consumed implicitly by add_to_cart when size is omitted, and ai_opt_in gates access for designers/admins. The ai_opt_in sentence is garbled ('Once the account keeps the person's AI tools choice...') and slightly obscures rather than clarifies the semantics, which keeps this from a 5.

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 opening clauses are front-loaded and actionable, but the final sentence about ai_opt_in is long, syntactically tangled, and hard to parse on first read. It spends roughly a third of the description on a point an agent may not need in order to call the 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?

An output schema exists, so return values need not be described, and the description instead covers the important preconditions and downstream usage. It is complete for a zero-arg read, though the ai_opt_in explanation leaves the 'whose access does this decide' question partly ambiguous.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline is 4. The description correctly avoids inventing filter arguments and instead frames the call as parameterless context retrieval.

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 first sentence gives a specific verb and resource — 'Return the shopper's saved default size and fit' — and the description then names two concrete return fields (default size, fit, ai_opt_in). An agent can distinguish this from set_user_prefs (write) and get_saved_addresses (different resource) without opening any 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?

It states an explicit ordering rule ('Call this BEFORE asking the user for a size'), explains the fallback behavior ('if a default is set, apply it automatically'), and names two sibling tools with the exact argument to pass (add_to_cart when size is omitted; search_products with style='oversized' / style='tee'). This is when-to-use plus how-to-apply, with the alternative paths spelled out.

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