Skip to main content
Glama

aiworkhub_needfix_convert

Converts accepted NeedFix records into task cards; previews and commits a task plan in one call, refusing when conversion checks fail.

Instructions

Convert an accepted NeedFix into a task card; task_plan alone commits in one call.

With task_plan and no plan_digest this previews the plan and, only when the preview is convertible with no input refusal, commits it with the digest that preview returned, in the same call. A captured or triaged NeedFix whose task_plan names non-empty allowed_writes is auto-promoted to accepted (reason auto_promoted_by_convert) first. Any refusal returns the preview and commits nothing. plan_digest alone also commits the exact plan its preview signed; a digest this server no longer holds is refused with previewed_plan_unavailable. The digest re-check is unchanged, so NeedFix drift still fails closed.

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": {
      "needfix_id": "<needfix_id>"
    },
    "name": "aiworkhub_needfix_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
launchNoAlso launch a worker for the card this call committed, through aiworkhub_agent_launch_task; default false. Only a NEW commit launches; a refused or already-converted NeedFix never does, and the reply then carries launch with skipped set.
task_planNoTask card fields as in aiworkhub_needfix_preview_convert. Given without plan_digest, the plan is previewed and committed in one call.
needfix_idYesNeedFix id, e.g. NF-2026-01447.
plan_digestNoplan_digest from the matching aiworkhub_needfix_preview_convert; optional when task_plan is given. A digest this server no longer holds is refused.
include_planNoReturn the plan body verbatim instead of a summary of its identity and counts; default false.
launch_adapter_idNoAdapter for that launch, passed through to aiworkhub_agent_launch_task; omit to let it derive the adapter. Refused with launch_adapter_requires_launch unless launch is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.16

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds substantial context beyond that, including a hidden side effect (a captured or triaged NeedFix is auto-promoted to accepted with reason auto_promoted_by_convert), the fail-closed rule that any refusal commits nothing, and the launch side effect that fires only on a new commit. This is exactly the behavioral disclosure a mutation tool needs.

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?

The commit-versus-preview distinction is front-loaded in the first clause and each subsequent sentence carries a distinct mode or failure case. It loses a point for density and reStructuredText backtick markup that adds noise, and for restating the digest re-check rule in the final sentence after the digest behavior was already covered.

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 six-parameter mutation tool with no output schema, the description covers the commit paths, the refusal cases, the auto-promotion side effect, and the launch coupling well enough to call it correctly. It stops short of describing the shape of the returned preview or the converted card, leaving the agent to infer the response envelope from the refusal and launch notes.

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 the per-parameter descriptions already carry the basics and the baseline is 3. The description still adds value by explaining the interaction between task_plan and plan_digest (preview-in-place versus replaying a signed plan) and the commit/refuse semantics of each combination, which the schema fields describe only individually.

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?

Opens with a specific verb and resource ("Convert an accepted NeedFix into a task card") and immediately narrows the scope with "task_plan alone commits in one call", which distinguishes it from the preview-then-commit path used by aiworkhub_needfix_preview_convert. An agent knows exactly what state transition this tool performs and which inputs trigger which mode.

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 concrete conditional guidance: task_plan alone previews-and-commits in one call, plan_digest alone commits a previously previewed plan, and a stale digest is refused. What is missing is an explicit statement of when an agent should prefer aiworkhub_needfix_preview_convert over the combined preview+commit path — the two-step alternative is implied through the digest reference rather than named as a choice.

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

Deploy Server

Other Tools