Skip to main content
Glama
aminehamlouchi

InterLogue

Fallback writer: generate the piece deterministically

generate_piece

Assembles a customer case study from a saved transcript, ordering story, quotes, and answers. Saves the piece only when every quote matches a transcript timestamp.

Instructions

FALLBACK writer, used when no host is writing (for example npm run spine). Inside Claude, prefer draft_piece then check_citations, where the host writes the prose. This tool assembles the customer case study deterministically from the saved transcript: the story first, pull quotes second, per-question answers third. Every quote is a verbatim span of a subject turn and carries its transcript timestamp; the piece is saved only if the citation check passes. Regenerate any time; the transcript is never edited to fit a piece. Next step: check_citations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
brief_idYesThe brief_id whose transcript should be written up.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full load and delivers: deterministic assembly, verbatim quote spans with transcript timestamps, save-only-if-citation-check-passes, transcript never edited to fit a piece, and idempotent regeneration. These are exactly the behavioral traits an agent needs before invoking it.

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?

Front-loads the crucial routing word FALLBACK in caps, then layers usage, mechanics, and next step in four tight sentences. Slightly dense but every sentence carries distinct information; no filler.

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?

Covers purpose, routing, output ordering, citation gating, and follow-up tool despite having no annotations or output schema. An agent has everything needed to decide whether and how to call it.

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?

Only one parameter (brief_id) and schema description coverage is 100%, so the schema already documents it. The description adds only the implication that the brief's transcript is what gets written up; it adds no syntax or selection nuance beyond the schema. Baseline 3 applies.

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?

Explicitly names itself as the FALLBACK writer for deterministic assembly of the case study from the saved transcript, and states the output order (story, quotes, per-question answers). This makes it clearly distinguishable from the sibling draft_piece, which is the host-written path.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition (only when no host is writing, e.g. `npm run spine`) and a when-not/preferred-alternative (inside Claude, use draft_piece then check_citations). It even names the next step, check_citations.

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