Skip to main content
Glama

Narracore Screenplay Formatter

Story window split + anchoring

prepare_story_window
Read-onlyIdempotent

FREE. Split a story conversation (verbatim user/assistant turns) into stable, hash-anchored units for the Narracore Story Continuity Protocol. YOU judge the story; the server only slices and anchors provenance — a source is traceable, not proof your interpretation is true. Keep the full text and returned StoryState client-side (server stores nothing); failed calls are never charged. 免费:故事窗口确定性切分与锚定;AI 判断、服务端只核验出处,出处不证明结论真伪;全文与 state 由调用方保存,失败不收费。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoen
stateNo
request_idNoIdempotency key (optional; same request_id never double-charges)
conversationYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
toolNo
stateNo
unitsNo
reasonNo
messageNo
recoveryNo
conflictsNo
window_fpNo
worksheetNo
request_idNo
diagnosticsNo
base_state_hashNo
contract_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "base_state_hash": {
      +      "type": "string"
      +    },
      +    "conflicts": {},
      +    "contract_version": {
      +      "type": "string"
      +    },
      +    "diagnostics": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "block_id": {
      +            "type": "string"
      +          },
      +          "code": {
      +            "type": "string"
      +          },
      +          "line": {
      +            "type": "number"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "type": "string"
      +          },
      +          "suggested_action": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "severity",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "recovery": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "action": {
      +          "type": "string"
      +        },
      +        "field_path": {
      +          "type": "string"
      +        },
      +        "keep_request_id": {
      +          "type": "boolean"
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "resets_at_utc": {
      +          "type": "string"
      +        },
      +        "retry_after_ms": {
      +          "type": "number"
      +        },
      +        "retryable": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "action",
      +        "retryable",
      +        "keep_request_id"
      +      ],
      +      "type": "object"
      +    },
      +    "request_id": {
      +      "type": "string"
      +    },
      +    "state": {},
      +    "tool": {
      +      "const": "prepare_story_window",
      +      "type": "string"
      +    },
      +    "units": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "window_fp": {
      +      "type": "string"
      +    },
      +    "worksheet": {}
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower, yet the description adds real context beyond them: it is FREE, failed calls are never charged, the server stores nothing, and the caller must retain the full text and returned StoryState. It also draws an important epistemic boundary ('a source is traceable, not proof your interpretation is true'). No annotation contradictions.

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?

The core purpose, cost, and statelessness are front-loaded ('FREE. Split a story conversation...'), and each sentence carries operational meaning. The full bilingual duplication effectively doubles the length, though the lang enum suggests bilingual support is intentional rather than padding.

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 tool with a deeply nested state object and an existing output schema, the description covers the non-obvious essentials: no server-side persistence, cost/idempotency behavior, and the provenance-vs-truth caveat. It omits explicit routing versus the sibling absorb_story_window and any guidance on the state/language parameters, leaving modest gaps.

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 description coverage is only 25% (essentially just request_id), so the schema does not carry the load. The description helps partially by framing that StoryState is returned and must be kept client-side, which clarifies the state round-trip, but it says nothing about the lang enum, the state sub-structure, or the conversation item shape.

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 and resource: 'Split a story conversation (verbatim user/assistant turns) into stable, hash-anchored units.' It clarifies its role relative to the caller ('YOU judge the story; the server only slices and anchors provenance'), which distinguishes it conceptually from the sibling absorb_story_window, but it never names that sibling explicitly.

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 is implied through the workflow context ('for the Narracore Story Continuity Protocol') and the caller/server division of labor, and the idempotency note tells the agent how repeated calls behave. However, there is no explicit statement of when to use this tool versus the sibling absorb_story_window or when to skip it entirely.

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.