Skip to main content
Glama

Direct the piece

direct
Destructive

A natural-language instruction to the project's Director — the same chat turn the human director types: the planner reads the instruction, picks the ops (rewrite_scene / set_scene_fields / set_visual / swap_voice / replan_scenes / tighten_hook) and applies them to the staged draft. Suited to an editorial change that spans several fields or scenes («make scene 3 quote the source verbatim and shorten the closing»); a single exact op has its own tools. The call waits up to 60 s for the turn (50 of the 58 turns measured finished within that) and answers with the reply, the staged ops and the coherence report (outcome: completed_inline); a longer turn keeps running and the answer is its job (outcome: still_running, runId), which the project status reports by run_id. An identical call while the turn runs, or within 15 minutes after it succeeded, returns the same job, so a retry does not pay a second turn; request_id names a deliberately repeated request. One authoring turn at a time per project (authoring-in-progress). The staged draft becomes a version when it is committed. Requires write. Spends LLM budget (charged like a chat turn); a turn whose planned edits all fail stages nothing and is not charged (editOutcome: none_applied).

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": {
      "project_id": "<project_id>",
      "message": "<message>"
    },
    "name": "direct"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesThe instruction to the Director, in any language.
qualityNoReasoned authoring pass (slower, better). Default false.
project_idYes
request_idNoOptional: a caller-chosen key for this request (up to 64 characters). The same key returns the same job for 24 h; a new key runs it again. Without it, an identical call within 15 minutes is the same request.
active_scene_indexNoOptional: the scene the instruction refers to (0-based).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / active_scene_index / description
      Previous value: -"Optional: the scene your instruction refers to (0-based)."New value: +"Optional: the scene the instruction refers to (0-based)."
    • changedInput schema / properties / message / description
      Previous value: -"Your instruction to the Director, in any language."New value: +"The instruction to the Director, in any language."
    • changedInput schema / properties / request_id / description
      Previous value: -"Optional: a key of your own for this request (up to 64 characters). The same key returns the same job for 24 h; a new key runs it again. Without it, an identical call within 15 minutes is the same request."New value: +"Optional: a caller-chosen key for this request (up to 64 characters). The same key returns the same job for 24 h; a new key runs it again. Without it, an identical call within 15 minutes is the same request."
  2. Changed1 schema field changed
    • addedInput schema / properties / request_id
      Added value: +{
      +  "description": "Optional: a key of your own for this request (up to 64 characters). The same key returns the same job for 24 h; a new key runs it again. Without it, an identical call within 15 minutes is the same request.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: the 60 s inline wait with the measured 50-of-58 statistic, the `completed_inline` versus `still_running`/`runId` split, `write` scope, LLM budget charging, and the `editOutcome: none_applied` no-charge case. The 15-minute dedupe window sits in mild tension with `idempotentHint: false`, but the description resolves it via `request_id`/24 h keying, so it is a nuance rather than a contradiction. What it does not say is what mutating the staged draft destroys or how to roll it back short of not committing.

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-loaded with purpose and the routing rule, then tiers the operational facts (latency, dedupe, concurrency, cost) in descending order of importance, so nothing essential is buried. It is dense and runs long, and a few clauses — such as restating the staged-draft-commits-to-a-version point — slightly repeat material implied elsewhere.

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 complex five-parameter tool with no output schema, the description covers the return shape (`completed_inline` with reply, staged ops and coherence report versus `still_running` plus `runId` resolved via project status), the retry semantics, the concurrency limit, budget cost and the authorization requirement. An agent has everything needed to call it correctly and interpret both outcomes.

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 80%, so the baseline is 3, and the description earns above it by characterizing `message` as the free-form turn a human director would type (any language, planner interprets it) rather than a structured query. `request_id` is explained as naming a deliberately repeated request, reinforcing the schema's 24 h/15 min keying. `quality` and `active_scene_index` are left entirely to the schema.

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?

States a concrete verb and resource — a natural-language instruction to the project's Director that a planner turns into ops applied to the staged draft — and enumerates the concrete op vocabulary (rewrite_scene, set_scene_fields, set_visual, swap_voice, replan_scenes, tighten_hook). It explicitly separates itself from the single-op tools, so an agent can pick this over `author_op` 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 Guidelines5/5

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

Gives an explicit when-to-use rule — an editorial change spanning several fields or scenes, with a worked example («make scene 3 quote the source verbatim and shorten the closing») — and an explicit when-not rule: a single exact op has its own tools. It also states the concurrency constraint (one authoring turn at a time per project, `authoring-in-progress`).

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.

Resources