Skip to main content
Glama

Continuity by Ouroboros Apps

upsert canon entry

upsert_canon_entry
DestructiveIdempotent

Saves user-approved facts or canon revisions, including story-level TONE, STORY_TYPE, and WRITING_STYLE. TONE is mood. STORY_TYPE is genre, audience, and format. WRITING_STYLE is POV, tense, voice, dialogue, banned phrases, and approved examples; put parseable lines in content such as 'POV: third person limited', 'Tense: past', and 'Banned: very, suddenly'. LOCKED entries change only after the author approves them. Existing entries require their current expectedRevision; conflicting edits fail without overwriting. Identical retries preserve revision history.

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": {
      "projectId": "<projectId>",
      "kind": "<kind>",
      "title": "<title>",
      "status": "<status>",
      "content": "<content>"
    },
    "name": "upsert_canon_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
tagsNo
canonNofalse marks a temporary, alternate, or what-if entry as non-canon. Omit to keep the current value; new entries default to canon.
titleYes
statusYes
contentYes
expiresAtNoOptional ISO 8601 date or datetime after which a non-canon or temporary entry expires. Omit to keep, null to clear.
projectIdYes
revisionReasonNo
expectedRevisionNo

Output Schema

NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "CHARACTER",
      -  "RELATIONSHIP",
      -  "APPEARANCE",
      -  "ABILITY",
      -  "LOCATION",
      -  "WORLD_RULE",
      -  "TIMELINE",
      -  "PLOT_THREAD",
      -  "ITEM",
      -  "FACTION",
      -  "OTHER"
      -]New value: +[
      +  "CHARACTER",
      +  "RELATIONSHIP",
      +  "APPEARANCE",
      +  "ABILITY",
      +  "LOCATION",
      +  "WORLD_RULE",
      +  "TIMELINE",
      +  "PLOT_THREAD",
      +  "ITEM",
      +  "FACTION",
      +  "TONE",
      +  "STORY_TYPE",
      +  "WRITING_STYLE",
      +  "OTHER"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / canon
      Added value: +{
      +  "description": "false marks a temporary, alternate, or what-if entry as non-canon. Omit to keep the current value; new entries default to canon.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / expiresAt
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 40,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Optional ISO 8601 date or datetime after which a non-canon or temporary entry expires. Omit to keep, null to clear."
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds real substance on top: the approval gate on LOCKED entries, the optimistic-concurrency contract via expectedRevision, conflict failure without overwrite, and what idempotency concretely means ('Identical retries preserve revision history'). It does not cover what happens to fields when omitted beyond the schema's own 'Omit to keep' notes.

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 dense paragraph that front-loads the core action before the per-kind details, and the parseable-line examples genuinely earn their space because the schema cannot express that format. The weighting is slightly lopsided — three enum values receive several clauses while other parameters receive none — but there is no filler.

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?

Return values need no explanation since an output schema exists, and the annotations plus the approval/concurrency notes cover the risky parts of this mutation. What remains missing for a 10-parameter destructive write tool is semantics for status transitions, tag behavior, revisionReason intent, and the create-vs-update distinction in projectId scope.

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 only 20% across 10 parameters, so the description carries real burden; it does explain content formatting for the three writing kinds ('POV: third person limited', 'Banned: very, suddenly') and the expectedRevision requirement, which add meaning the schema lacks. However status, tags, revisionReason, projectId, and canon handling get no elaboration in the description, leaving most parameters documented only shallowly.

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 opening clause uses a specific verb+resource combo ('Saves user-approved facts or canon revisions') and names the concrete kinds it governs (TONE, STORY_TYPE, WRITING_STYLE), so the agent knows exactly what operation and payload this is. It never names a sibling such as get_canon_history or search_story_canon to contrast against, so it stops short of full sibling differentiation.

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?

Usage conditions are implied through prerequisites ('LOCKED entries change only after the author approves them', 'Existing entries require their current expectedRevision') rather than an explicit when-to-use/when-not-to-use statement. There is useful decision context (conflicting edits fail without overwriting) but no routing guidance toward the history or audit siblings for read-side questions.

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.