Skip to main content
Glama

Set Contact Preferences

set_contact_preferences
Destructive

Replace a contact's preference overrides at the user's request; pass an empty object to restore global values.

Instructions

Replace this contact's preference overrides at the user's request; {} restores the global values.

Stored off the connection. No messages, sharing, checkpoints or scheduler edits.

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": {
      "data_type": "<data_type>",
      "peer_userid": "<peer_userid>",
      "overrides": "<overrides>"
    },
    "name": "set_contact_preferences"
  }
}

Input Schema

NameRequiredDescriptionDefault
data_typeYes
overridesYes
peer_useridYes
expected_peer_useridsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.18.7

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare destructiveHint=true and readOnlyHint=false; the description adds real context beyond that by stating it fully replaces overrides, that an empty object restores globals, and that it touches nothing in messaging, sharing, checkpoints, or scheduling. The 'at the user's request' phrasing is vague rather than contradictory.

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 short, front-loaded sentences with no wasted wording; the replacement semantics come first and the scope exclusions second. The second sentence's telegraphic fragments read slightly terse but remain parseable.

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?

An output schema exists so return values needn't be explained, and the destructive replace behavior is well covered. The 0% parameter coverage on a four-parameter nested-object mutation leaves an agent guessing at data_type and expected_peer_userids, which is a meaningful gap.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters (including a nested overrides object and expected_peer_userids), so the description must carry the meaning. It only hints at overrides via the '{}' case and says nothing about data_type, peer_userid, or the purpose of expected_peer_userids.

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?

"Replace this contact's preference overrides" gives a specific verb and resource, and 'replace' distinguishes it from the read-side sibling get_contact_preferences. It stops short of explicitly routing the agent away from that sibling, leaving the differentiation implicit.

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?

The '{} restores the global values' note is genuinely actionable usage guidance for clearing overrides. However, 'at the user's request' is opaque (which user, what request context), and there is no explicit statement of when to prefer this over get_contact_preferences or set_contact_status.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.