Skip to main content
Glama

user_setting_upsert

Idempotent

Create-or-update a user_setting keyed on 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": "user_setting_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
valueYes
value_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare non-readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds the useful fact that identity is the 'key' field (making repeat calls overwrite rather than duplicate), but says nothing about what happens to the previous value or what the call returns.

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?

A single well-formed sentence with no padding, but it is under-specified rather than concise — the brevity comes at the cost of the gap-filling an agent needs.

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

Completeness2/5

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

A three-parameter mutation tool with no output schema and zero parameter documentation; the description never explains value_type semantics, overwrite behavior, or the response. An agent could invoke it but might store a boolean as text without realizing.

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% and the description only names 'key', leaving 'value' and especially 'value_type' (text/integer/boolean/json enum, which presumably controls how the 4000-char string is interpreted) entirely unexplained. With this little schema documentation, the description should have compensated and does not.

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 pair and resource ('Create-or-update a user_setting') plus the natural key, which cleanly separates it from the read/list/search/delete siblings. It stops short of differentiating against other upsert-style tools (e.g. user_interest_upsert, sales_settings_upsert), but the resource name does most of that work.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance: it never says whether an agent should prefer this over user_setting_read + a separate write, nor what happens on a conflicting key. The sibling set includes list/read/search/delete, yet none are referenced.

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