Skip to main content
Glama

Set preferences

set_preferences
DestructiveIdempotent

Store up to 20 of the user's toggle, text, number, choice or time_rule preferences at once. Only call this when the user has stated the preference clearly. Values are validated against each key's type. Only existing keys can be set; create a new one with define_preference.

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": {
      "preferences": "<preferences>",
      "reason": "<reason>"
    },
    "name": "set_preferences"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesone sentence on why these values are being set, usually what the user said
preferencesYespreference keys mapped to their new values, such as {"profile.timezone": "Europe/London", "format.time_24h": true}

Output Schema

NameRequiredDescriptionDefault
pendingNochanges waiting for the user's approval; they take effect only if approved
updatedYesthe normalized values that were stored

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses two real behavioral facts: values are type-validated per key, and only pre-existing keys can be written. Given destructiveHint=true, it never explicitly says existing values are overwritten or whether a batch fails atomically on one bad value, which is the main residual gap for a mutation tool; annotations already cover safety and idempotency.

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?

Four short sentences, front-loaded with the capability and cap, then the precondition, then the constraint, then the escape hatch. Every sentence carries a distinct constraint; nothing is redundant with the title or schema.

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?

The output schema exists, so return values need no prose, and the nested time_rule shape is fully described in the schema. For a destructive, idempotent mutation the description is nearly sufficient, but it leaves unstated whether partial validation failure aborts the whole batch and what exactly is overwritten.

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 type-by-type value format is already documented and earns no extra credit. The description does add one constraint absent from the schema itself: the 20-preference batch ceiling (the schema sets no maxProperties), which materially shapes how an agent batches calls.

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 (store the user's preferences), enumerates the supported value kinds (toggle, text, number, choice, time_rule), and bounds the operation at 20 items at once. It also distinguishes itself from the creation path by naming define_preference, so an agent can tell setting from defining without opening either schema.

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?

"Only call this when the user has stated the preference clearly" gives a concrete precondition, and the closing clause names define_preference as the alternative for unknown keys. What is missing is what to do in the negative case (ask the user? use search_preferences to resolve a key first?), so the guidance is clear but not fully closed.

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