Skip to main content
Glama

cortical_next_prompt

Harvest repo, issue, ADR, and memory state, then run a confidence gate or browser questionnaire to synthesize a precise continuation prompt.

Instructions

Harvest repo/issue/ADR state + loop_memory, run 5-Trigger confidence gate or open one-shot ephemeral loopback browser questionnaire, and synthesize a high-precision continuation prompt.

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": "cortical_next_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoResponse and questionnaire language (auto-detected from seed or explicit en/it).auto
modeNoExecution mode: browser (ephemeral 127.0.0.1:0 questionnaire), tui, auto, or auto_if_confident.auto
seedNoShort rough idea, seed request, or empty when resume=true.
issueNoOptional GitHub Issue number to anchor repository context on.
resumeNoResume from the latest saved loop memory snapshot.
targetNoTarget profile/harness (pi, argon, neon, hybrid, general, claude-code, codex, antigravity, opencode, dsh).
browserNoBrowser launcher preference when mode=browser.default
personaNoQuestioning style: auto-detect, plain-spoken colleague mode, or technical engineering mode.auto
detail_tierNoPrivacy detail tier applied when privatizing attached files or directories.medium
timeout_secNoTimeout in seconds before the ephemeral loopback elicitor server closes automatically.
attach_pathsNoOptional files or directories to privatize into the 3+1 Second Brain before synthesizing.
reconcile_brainNoWhen true, reconcile cross-document concepts and detect numeric/date discrepancies.
auto_curate_skillNoWhen true, generate a reusable zero-PII SKILL.md from the reconciled session.

Output Schema

NameRequiredDescriptionDefault
okYes
promptYes
targetNo
escalatedNo
mode_usedYes
confidence_gateYes
prompt_audit_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare the coarse safety profile (not read-only, not destructive, not idempotent, closed-world). The description adds substantive behavior beyond that: it opens an ephemeral loopback server at 127.0.0.1:0 with a timeout, can persist and resume loop_memory snapshots, and can emit a SKILL.md artifact, all side effects an agent should know about before invoking.

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?

A single dense sentence that front-loads the inputs, then the branching elicitation mechanism, then the synthesized deliverable. No filler sentences and no restatement of the tool name.

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

Completeness3/5

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

For a 13-parameter orchestration tool the description covers the workflow shape, and an output schema exists so return values need not be explained. However, it leaves unclear where loop memory is stored, what the confidence gate actually evaluates, and whether attached paths are copied or referenced, which matters given the non-read-only annotation.

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 description coverage is 100%, so every one of the 13 parameters is already documented with enums and defaults, establishing the baseline of 3. The description adds only the conceptual link between loop_memory harvesting and resume=true; it does not clarify interactions such as attach_paths with detail_tier or reconcile_brain with auto_curate_skill.

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 concrete multi-step workflow: harvest repo/issue/ADR state and loop_memory, run a confidence gate or an ephemeral loopback questionnaire, then synthesize a continuation prompt. The output artifact ('high-precision continuation prompt') is unambiguous, but internal jargon like '5-Trigger confidence gate' is not defined and no sibling (e.g. cortical_handoff, which likely produces similar continuation context) is referenced for differentiation.

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

Usage Guidelines2/5

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

There is no explicit statement of when to use this tool versus alternatives, nor any when-not-to-use exclusion. The only usage signal is implicit in the schema's resume flag and mode enum; an agent must infer that this is the 'start or resume a session and produce a continuation prompt' tool rather than, say, cortical_handoff.

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