Skip to main content
Glama

upsert_tome

Create a new lore tome or update an existing one in the active campaign; omit the ID to add a tome and include it to revise stored lore.

Instructions

Create or update a lore tome in the active campaign. Omit id to create a new tome.

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": {
      "tome": "<tome>"
    },
    "name": "upsert_tome"
  }
}

Input Schema

NameRequiredDescriptionDefault
tomeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses very little. It does not say whether an update overwrites the whole nested tome object or merges fields, what happens to omitted optional fields (tags, category, relatedEventIds) on update, whether an unknown id errors or creates, or whether the created id is returned for later reference. For a mutation tool taking a nested document object, these are material omissions.

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, zero filler, and the create/update rule is front-loaded right after the purpose statement. Nothing needs trimming or reordering.

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?

This is a mutation of a nested 12-field document with no annotations and no output schema, so the description is the only place an agent can learn update/merge semantics and return behavior — and it says nothing about them. Against that complexity, two sentences stating purpose and the id rule are not enough to call it safely.

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?

Placeholder

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 names a specific verb pair and resource ("Create or update a lore tome") plus the scope ("in the active campaign"), which separates it cleanly from get_tome, find_tome_by_title, and delete_tome by natural verb contrast. It stops short of explicitly naming a sibling or stating how it differs from upsert_character/upsert_thread beyond the resource, so a 4 rather than a 5.

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?

"Omit `id` to create a new tome" is a real decision rule covering the create-vs-update branch, which is the main ambiguity in an upsert tool. However, there is no guidance on when to prefer this over locating an existing tome first (find_tome_by_title), no prerequisites, and no mention of what to do if an id is supplied that does not exist.

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