Skip to main content
Glama

apply_structure_template

Lay down an acts-and-chapters story skeleton for an empty book plan in one atomic step without overwriting existing content; choose 'none' to declare free-form and create nothing.

Instructions

Lay down a story-structure skeleton — acts and placeholder chapters — in one atomic step, for a book whose plan is still empty. It will not overwrite work: if the spine already has content the template is recorded as a declaration only and nothing is created (the reply says which happened). 'none' declares free-form and creates nothing.

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": {
      "bookId": "<bookId>",
      "templateId": "<templateId>"
    },
    "name": "apply_structure_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdYesBook ID
templateIdYesWhich structure to lay down

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, destructiveHint=false, openWorldHint=true — they don't explain the safety semantics. The description supplies that: it will not overwrite existing work, in the collision case it records a declaration without creating anything, and the response signals which branch occurred. That is meaningful behavioral disclosure beyond the annotation surface.

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?

Three compact sentences: capability first, non-destructive guarantee second, edge-case value third. Every sentence carries distinct information and there is no filler or repetition of the schema.

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

Completeness5/5

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

For a two-parameter mutation tool with no output schema, the description covers what is created, atomicity, the non-overwrite guarantee, the degenerate 'none' case, and even hints at the return value ('the reply says which happened'). Nothing an agent needs in order to call it correctly appears to be missing.

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 coverage is 100%, so baseline is 3; the description earns a point above baseline by explaining the semantics of the 'none' enum value ('declares free-form and creates nothing'), which the schema only labels as 'Which structure to lay down.' bookId gains no extra meaning, but the templateId interpretation is genuinely additive.

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?

The opening states a specific verb and resource: 'Lay down a story-structure skeleton — acts and placeholder chapters — in one atomic step.' The phrase 'in one atomic step' implicitly distinguishes it from the single-object siblings like create_act and create_chapter, and the audience is scoped to 'a book whose plan is still empty.' An agent can tell what it does and roughly what it creates without opening the 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?

It gives an explicit precondition (empty plan) and an explicit no-op case (spine already has content → declaration only, nothing created), plus a special-value rule for 'none'. What keeps it from a 5 is that it never names a sibling alternative (e.g., create_act/create_chapter for incremental building) or states what to do if the precondition fails.

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