Skip to main content
Glama

user_interest_upsert

Idempotent

Create-or-update a user_interest keyed on interest.

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": {
      "interest": "<interest>"
    },
    "name": "user_interest_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
interestYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=true and openWorldHint=false. The description's contribution is the key semantics ('keyed on interest'), which explains why repeated calls converge instead of duplicating, but it says nothing about what happens to other stored fields on update or what a successful 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; every word carries information. It is on the edge of being too terse for a write tool, but nothing is wasted.

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?

For a one-parameter tool with full annotation coverage and no output schema, the essentials are present. Still missing is any hint about the expected value domain of 'interest' or the effect of an update on previously set interest data, which an agent writing to persistent state would want.

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

Parameters3/5

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

Schema coverage is 0%, so the schema gives only the type (string, maxLength 100) with no meaning. The description adds that 'interest' is the lookup/identity key, which is genuinely useful, but it does not say what kind of value the key holds (label vs. identifier) and does not compensate for the rest of the coverage gap.

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?

The description states a specific verb pair (create-or-update) and the resource (user_interest), plus the natural key it operates on. It is clearly distinguishable from user_interest_list and user_interest_delete, though it never contrasts itself with the parallel user_setting_upsert pattern.

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?

There is no statement of when to use this versus user_interest_delete/list or why one would upsert rather than look up first. The only usage signal is the 'create-or-update' phrasing, which implies dedup-by-key but leaves the workflow decision to inference.

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