Skip to main content
Glama

external_prompt

Fetch the exact system and user prompt a paused run needs for an external stage, optionally paged for long prompts, so you can answer it and let the run resume.

Instructions

When a run is paused at an external seat: the exact system and user prompt that stage needs answered. A long prompt can be read in pages: pass max_chars (500 or more) and part (from 1); the answer says part, parts and total_chars. A run can wait on several stages at once (e.g. a panel of external critics): waiting lists them all; pass stage to get another one's prompt. Answer each with submit_stage; the run resumes once none is left.

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": {
      "run": "<run>"
    },
    "name": "external_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYes
partNowhich page to return, counting from 1; needs max_chars
stageNowhich waiting stage to return; defaults to the first in `waiting`
max_charsNoread a long prompt in pages of at most this many characters (500 or more); the answer says part, parts and total_chars. Leave out for the whole prompt

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.4
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "read a long prompt in pages of at most this many characters (500 or more); the answer says part, parts and total_chars. Leave out for the whole prompt",
      +  "maximum": 1000000,
      +  "minimum": 500,
      +  "type": "integer"
      +}
    • addedInput schema / properties / part
      Added value: +{
      +  "description": "which page to return, counting from 1; needs max_chars",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observedv0.8.1

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it does well: it discloses pagination behavior (part, parts, total_chars in the answer), the multi-stage waiting model, and the resume lifecycle. It does not say what happens when the run is not actually paused or whether the read itself has any side effects, which leaves a small gap for a no-annotation tool.

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 the triggering condition, then paging, then the multi-stage case and the handoff to submit_stage, so the most important facts come first. The third sentence packs waiting-list semantics and the resume condition densely, which is efficient but slightly overloaded.

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?

With no output schema, the description must cover return values, and it does for the paging envelope (part, parts, total_chars) and the `waiting` list. It does not describe the non-paged return shape (how the system versus user prompt is labeled), which is the only remaining gap.

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 already 75%, yet the description still adds meaning: the dependency that part requires max_chars, the 500-character floor on max_chars, 1-based part counting, and that stage defaults to the first entry in `waiting`. Only the `run` identifier gets no explanation beyond 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?

Names a specific resource (the exact system and user prompt a paused external seat needs) and its trigger condition (a run paused at an external seat). It is clearly distinguishable from submit_stage and prepare_stage_prompt, both of which are either named or implied as different steps in the same loop.

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?

States exactly when to call it, what to do when several stages wait at once (pass stage; `waiting` lists them), and what the follow-up tool is (answer each with submit_stage). The termination condition ('the run resumes once none is left') closes the loop with no inference needed.

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