Skip to main content
Glama
Hybrid SAGE

Hybrid SAGE

Official
by bioassembly

escalate_task

Escalates failed or complex bugs, race conditions, architecture, and security issues to a cloud frontier model. It redacts PHI/secrets and writes a NOTES.md handoff so local execution can resume.

Instructions

Escalate a 2-strike bug, subtle race condition, complex architecture design, or security audit from the local workhorse to upstream frontier intelligence (Gemini 4 Argon or Gemini 3.8 Flash via Antigravity). Runs pre-flight airgap check to prevent PHI/secret leaks, records the handoff packet in NOTES.md, queries the frontier model, and returns the architectural diagnosis and solution spec so the local model can resume execution.

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": {
      "prompt": "<prompt>"
    },
    "name": "escalate_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoOptional list of relevant source/test file paths to attach as context
promptYesClear explanation of the problem, failure symptom, or architectural bottleneck to solve
redactNoIf true, automatically redacts detected secrets and clinical PHI before sending to cloud
workdirNoOptional target project directory (defaults to current working directory)
attemptedNoList of prior attempts or approaches that failed (for the 2-Strike escalation packet)
auto_handoffNoIf true, automatically creates/updates NOTES.md with the escalation request and frontier solution spec
target_modelNoEscalation tier: 'auto' (smart cost-optimized routing: Flash for reviews/triage, Argon for 2-strike blockers/architecture), 'sprinter'/'flash' ('gemini-3.8-flash-medium'), or 'architect'/'argon' ('gemini-4-argon-medium')auto
failing_outputNoOptional tail of stdout/stderr from the failing command
failing_commandNoOptional command that reproduces the failure (e.g. 'pytest -q tests/test_x.py')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it discloses the important side effects: a pre-flight airgap check that blocks PHI/secret leaks, a NOTES.md handoff write, and a cloud query to a specific model tier. What is missing is failure behavior — what happens if the airgap check trips, or what cost/latency/auth expectations apply to the cloud call.

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 escalation criteria, then the execution pipeline in a logical order (check → record → query → return). Some density is wasted on vendor branding ('Gemini 4 Argon', 'Gemini 3.8 Flash via Antigravity'), and the whole description is essentially one very long sentence that could be split for scanability.

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?

For a 9-parameter, annotation-free tool with no output schema, the description covers what it does, what it writes, and what it returns ('architectural diagnosis and solution spec'). The remaining gap is error and boundary behavior — failure of the airgap check, model unavailability, or what the caller gets when escalation is refused — which an agent would want before invoking a cloud egress tool.

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 100%, so a 3 is the floor, but the description adds real workflow meaning: the airgap check explains why redact defaults to true, the 'handoff packet' and 'resume execution' explain the role of attempted and auto_handoff, and the 'smart cost-optimized routing' framing clarifies the target_model tier choice beyond the schema's enum-like prose.

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?

The description names a specific verb (escalate) and a precisely enumerated set of triggering resources (2-strike bug, race condition, architecture design, security audit), plus the destination (upstream frontier model). It is clearly distinguishable from siblings like route_task or consult_codex, which the description's local-workhorse-to-frontier framing implicitly contrasts with.

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?

The trigger conditions for escalation are stated concretely ('2-strike bug, subtle race condition, complex architecture design, or security audit'), which gives an agent a usable decision rule. It stops short of naming alternatives or stating when NOT to escalate (e.g., use consult_codex or delegate_local instead), leaving routing to siblings partly to inference.

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