Skip to main content
Glama

forkflux_get_reopen_context

Retrieves focused rejection context for a reopened retry job, including rejection reason, original job ID, retry counters, summary, and constraints. Use after claiming a retry job to understand why the prior attempt was reopened.

Instructions

Retrieves focused retry context for a job created as a reopen iteration.

Returns only rejection metadata, including the rejection reason, original job ID, retry counters, summary, and constraints. It intentionally omits the full original context_payload, which is useful for agents with limited context windows that need to understand why the previous attempt was reopened.

Use this after claiming a retry job when you need the focused rejection context before 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": {
      "job_id": "<job_id>"
    },
    "name": "forkflux_get_reopen_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe unique ID of the reopened job (a retry iteration).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.3/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 most of the work: it discloses the exact returned surface, that context_payload is deliberately withheld, and that this is a read-only retrieval. It does not say what happens if the job is not a reopen iteration, nor whether permissions or ownership checks apply.

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?

Three short sentences, front-loaded with the purpose, then the returned/omitted fields, then the usage trigger. Every sentence earns its place and there is no filler or redundant restatement of the name.

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?

With no output schema, the description must describe return values, and it does so field by field while explaining the deliberate omission. For a one-parameter read tool this is complete enough that an agent could call it correctly without further exploration.

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% with a single required integer that is already documented as 'the unique ID of the reopened job (a retry iteration).' The description adds only the framing that the ID refers to a retry iteration, which the schema already conveys, so baseline 3 is right.

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 specific verb and resource: 'Retrieves focused retry context for a job created as a reopen iteration.' It then lists exactly which fields come back (rejection reason, original job ID, retry counters, summary, constraints) and explicitly excludes the full context_payload, which distinguishes it from the broader job-details sibling without naming it.

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?

Gives clear placement in the workflow: 'Use this after claiming a retry job when you need the focused rejection context before execution.' The note that it is for limited context windows implicitly signals when to prefer the lean call over a full payload fetch, but no alternative tool is named and no when-not condition is stated outright.

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