Skip to main content
Glama

upsert_character

Create or update a character in the active campaign: omit the ID to add a new record, or supply it to revise existing details, keeping your campaign roster current.

Instructions

Create or update a character in the active campaign. Omit id to create a new character record.

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": {
      "character": "<character>"
    },
    "name": "upsert_character"
  }
}

Input Schema

NameRequiredDescriptionDefault
characterYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and mostly doesn't. It never says whether an update replaces the whole character record or merges with existing fields, whether the optional `note` is appended to historyLog (a side effect), what happens if the `id` doesn't exist, or whether required permissions apply. For a mutation tool with zero annotation coverage, that is a substantial gap.

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?

Two short sentences, front-loaded with the core purpose and immediately followed by the one operational rule. No filler, no restatement of the tool name.

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?

Given a nested 25-field object, no annotations, and no output schema, the description is the minimum viable: it tells the agent what the tool does and how to switch between create and update. It omits the merge-vs-replace semantics and side effects that matter most for a upsert on a rich record.

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?

The single top-level parameter is a nested object with roughly 25 fields; schema description coverage is reported as 0% at the parameter level. The description only clarifies one field (`id`), which is already documented in the schema, and adds nothing about the deeply nested structures like activeGrudges, formativeScars, or how partial updates are interpreted. It falls well short of compensating for 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?

States a specific verb pair (create/update) and resource (character), scoped to 'the active campaign'. This clearly separates it from delete_character, get_character, and list_characters. It doesn't name a sibling, but the name-plus-description combination leaves little ambiguity.

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?

Provides one concrete routing rule: omit `id` to create, implying presence of `id` means update. That is genuine mode-selection guidance. However, it says nothing about when to reach for this versus add_relationship, or what happens to existing fields on update, leaving the more consequential usage question unanswered.

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