Skip to main content
Glama

Set preference

set_preference
Idempotent

Record/adjust a learned preference (a tendency, not a fact). Corroboration raises confidence, contradiction lowers it. Upserts by (person, category, key).

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": {
      "key": "<key>",
      "value": "<value>"
    },
    "name": "set_preference"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes'reply_style', 'invoice_day', …
valueYes
confidenceNo0..1; if omitted, corroboration nudges it up / a changed value resets toward 0.5.
category_idNo
category_slugNo
subject_person_idNoWhose preference (omit = the owner).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior on top: corroboration raises confidence, contradiction lowers it, and a changed value resets confidence toward 0.5. What it does not say is what happens on conflicting category_id/category_slug or what the upsert returns.

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?

Three short sentences, front-loaded with the core action and constraint, then the behavioral rule, then the identity key. Every sentence carries information an agent needs and nothing is repeated from the schema or annotations.

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 six-parameter mutation with no output schema, the description covers the important semantics: what is stored, how confidence evolves, and what makes two writes the same record. Missing pieces are the category identifier duality and the return shape, both minor given the schema's own descriptions.

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?

With only 50% schema coverage, the description compensates well: it explains the confidence dynamic (corroboration nudges up, changed value resets toward 0.5) and defines the composite upsert key spanning person, category and key. It leaves the category_id vs category_slug relationship unexplained, which is the main remaining ambiguity.

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+resource (record/adjust a learned preference) and immediately scopes it with '(a tendency, not a fact)', which separates it from fact-storing siblings like create_ai_memory. The upsert key '(person, category, key)' further pins down what the tool operates on. It stops short of naming an explicit alternative, so it is clear but not fully sibling-differentiated.

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?

Usage is implied rather than stated: an agent can infer it should call this when it observes a durable tendency rather than a one-off fact. There is no explicit when-not guidance, no mention of how it relates to memory or profile tools, and no preconditions 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