Skip to main content
Glama

build_publish_pack

Idempotent

Generate YouTube chapters, social post copy, LinkedIn copy, and metadata.json from a successful render's deck_resolved.json, then write and return the four output file paths.

Instructions

Generate YouTube chapters, social post copy, LinkedIn copy and metadata.json from deck_resolved.json, which build_deck.py creates during a render. Run it after a successful render. Writes four files into out/ with the slug in their names, overwriting existing files with the same names. Returns their paths (chapters, post_copy, linkedin, metadata). Same input gives the same output.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "build_publish_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
resolvedNoPath to deck_resolved.json written by build_deck.py during the last render (default src/generated/deck_resolved.json)src/generated/deck_resolved.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.4
    • changedInput schema / properties / resolved / description
      Previous value: -"Path to resolved deck JSON produced by build_deck.py"New value: +"Path to deck_resolved.json written by build_deck.py during the last render (default src/generated/deck_resolved.json)"
  2. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / resolved / description
      Added value: +"Path to resolved deck JSON produced by build_deck.py"
  3. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the description only needs to add the side effects. It does: four named files written into out/ with the slug in their filenames, overwriting same-named files, plus a determinism guarantee. The overwrite wording sits in mild tension with destructiveHint=false, but since the targets are the tool's own regenerated outputs and idempotentHint is true, it is a caution rather than a contradiction.

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?

Content is front-loaded: what is generated, the source file, the ordering constraint, the write behavior, then the return values. Every sentence carries information, with only minor redundancy where "same input gives the same output" restates idempotentHint=true.

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 one-optional-parameter tool, the description covers source input, prerequisite sequencing, output file locations, overwrite risk, and the return payload keys in lieu of a missing output schema. An agent has everything needed to call it and interpret the result.

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 100% and the single parameter already documents itself as the deck_resolved.json path with a default. The description adds little beyond noting the file is produced by build_deck.py during the last render, which is helpful but close to what the schema description says. Baseline 3 is appropriate when the schema carries the load.

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 (generate) and enumerates the exact artifacts produced: YouTube chapters, social post copy, LinkedIn copy, and metadata.json, plus the source file deck_resolved.json. It is unmistakable what the tool does, though it never contrasts itself with nearby siblings such as plan_video_pack or render_deck.

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 prerequisite and ordering rule: "Run it after a successful render," and ties the input to a file that build_deck.py writes during that render. There is no statement of when not to use it or which sibling to pick instead, so it stops short of full alternative routing.

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