Skip to main content
Glama

Update the story bible

update_bible
Idempotent

Writes the story bible: premise, structural conflict, theme, tone references, world, central question, engine of satisfaction, season arc (phases with episode ranges and beats), dramatic-irony ledger, production notes, character relationships. Send only the sections to change. Map the whole season here before writing scenes. expected_version is the bible version from get_drama_context.

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": {
      "drama_id": "<drama_id>",
      "expected_version": "<expected_version>",
      "patch": "<patch>"
    },
    "name": "update_bible"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYesOnly the bible sections to change (premise, world, season_arc, relationships…); the others keep their text.
drama_idYesThe drama id (drm_…), from list_dramas or create_drama.
expected_versionYesThe version you read; the write fails with VERSION_CONFLICT if it changed since

Output Schema

NameRequiredDescriptionDefault
changedYes
versionYes
drama_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare readOnly=false, destructive=false and idempotent=true, so safety is covered; the description adds the non-obvious semantics that unspecified sections keep their existing text and that expected_version acts as an optimistic-concurrency guard tied to get_drama_context. The VERSION_CONFLICT outcome is also documented in the expected_version schema field, so this is reinforcement rather than net-new disclosure — hence 4, not 5.

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?

Three sentences, front-loaded with the resource and its section inventory, then the patch rule, then the version requirement. The long section list is dense but each item maps to a real patch field, so nothing is padding; minor cost is that the enumeration dominates the opening sentence.

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

Completeness4/5

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

For a nested-patch mutation with an output schema present, the description covers the patch-merge contract, the concurrency guard, and the workflow ordering (season before scenes) — the things an agent would otherwise get wrong. Remaining gaps like exact conflict-recovery steps are minor since the tool's complexity is well covered.

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?

Schema description coverage is 100%, so the baseline is 3, but the description adds prose meaning the schema does not: season_arc is "phases with episode ranges and beats" and the irony ledger is characterized as knowledge asymmetry tracked over episodes. It also anchors expected_version's provenance to get_drama_context, which helps an agent obtain a valid value rather than merely pass one.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete verb+resource ("Writes the story bible") and then enumerates every section the bible holds, from premise through season_arc to the irony ledger. That enumeration makes it immediately distinguishable from update_drama (drama record) and update_scene (scene text), so an agent can pick it without opening a schema.

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

Usage Guidelines4/5

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

"Send only the sections to change" states the patch contract, and "Map the whole season here before writing scenes" gives a clear sequencing rule for when to call it. It also routes the agent to get_drama_context as the source of expected_version. It stops short of explicit exclusions (e.g. 'use update_drama for metadata'), so it is strong context rather than a full when/when-not/alternatives triad.

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.