Skip to main content
Glama

aiworkhub_needfix_update

Idempotent

Update mutable NeedFix fields with partial evidence patches, list add/remove edits, and optimistic concurrency checks to prevent stale overwrites.

Instructions

Manager update of mutable NeedFix fields.

None keeps a field. evidence is an explicit FULL REPLACE of the evidence object; evidence_patch is a JSON merge patch (keys merged, nested objects merged, null deletes a key) applied server-side to the stored object, so one measurement can be added without re-sending the rest. The two are mutually exclusive. evidence_refs_add/remove, tags_add/remove, scope_files_add and scope_symbols_add edit the lists in place (add appends missing values, remove filters). expected_updated_at is optimistic concurrency: the update is refused (needfix_update_stale) when the stored updated_at differs. kind vocabulary and synonym normalisation are as in aiworkhub_needfix_add.

Replies with a delta receipt (aiworkhub.needfix_update_receipt.v1): id, status, fields_changed, updated_at, evidence_keys_after, event_id, kind_normalized. The updated audit event records the same fields_changed plus the evidence sha256 before and after.

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_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoAccepted kind values: benchmark_gap, bug, docs, documentation_drift, feature, idea, improvement, investigation, optimization, other, refactor, roadmap_candidate, security, security_risk, technical_debt. None keeps the field; case, space and known synonyms normalize server-side.
tagsNoFull replacement tag list; omit to keep the current tags.
scopeNoNew free-text scope label; omit to keep the current one.
titleNoNew title; omit to keep the current one.
evidenceNoFull replacement evidence object, at most 500000 bytes serialized; refused together with evidence_patch. Omit to keep the stored evidence.
severityNoAccepted severity values: critical, high, info, low, medium. None keeps the field.
tags_addNoTags to append when not already present.
needfix_idYesId of the NeedFix to update, e.g. NF-2026-01447; a NeedFix that is converting cannot be updated.
descriptionNoNew description; omit to keep the current one.
scope_filesNoFull replacement list of repository file paths this NeedFix concerns; omit to keep the current list.
tags_removeNoTags to remove when present.
evidence_refsNoFull replacement list of evidence reference strings; omit to keep the current list.
scope_symbolsNoFull replacement list of code symbols this NeedFix concerns; omit to keep the current list.
evidence_patchNoJSON merge patch applied to the stored evidence: keys merge, nested objects merge, null deletes a key. Refused together with evidence.
readiness_scoreNoNew readiness score, an integer from 0 to 100; omit to keep the current one.
scope_files_addNoRepository file paths to append to scope_files when not already present.
evidence_refs_addNoEvidence reference strings to append when not already present.
scope_symbols_addNoCode symbols to append to scope_symbols when not already present.
expected_updated_atNoOptimistic concurrency guard: the updated_at timestamp you last read; the update is refused as needfix_update_stale when the stored value differs.
evidence_refs_removeNoEvidence reference strings to remove when present.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.16

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the exact full-replace vs merge-patch contract (nested merge, null deletes a key), the stale-refusal error code needfix_update_stale, and the audit side effect recording fields_changed plus evidence sha256 before/after. This tells an agent precisely what will be mutated and how failures surface, which the readOnly/idempotent hints alone cannot.

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?

Dense but front-loaded: the None-keeps-field rule and the evidence/evidence_patch split come first, then list-edit semantics, then concurrency, then the reply contract. Paragraphs of inline code make it scannable despite the length, which is justified by 20 parameters.

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?

For a 20-parameter mutation with no output schema, the description supplies what the schema cannot: the receipt version and its fields (id, status, fields_changed, updated_at, evidence_keys_after, event_id, kind_normalized) and the audit event contents. The only tool-level constraint it omits, that a converting NeedFix cannot be updated, appears in the schema's needfix_id description.

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 baseline is 3; the description still earns a bump by explaining the interaction between the paired replace/add/remove parameter families and the mutual exclusion of evidence and evidence_patch, plus the practical 'add one measurement without re-sending the rest' rationale. It does not add format detail for expected_updated_at or the receipt id format beyond what the schema states.

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?

Opens with a specific verb and resource ("Manager update of mutable NeedFix fields"), which is instantly distinguishable from add/archive/convert siblings. It does not explicitly say 'to create a NeedFix use needfix_add', but it references add for vocabulary sharing, which implies the boundary.

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 operating rules: None keeps a field, evidence vs evidence_patch are mutually exclusive, add/remove lists edit in place, expected_updated_at is the concurrency guard. It stops short of explicit exclusion guidance such as 'use transition to change lifecycle state' or how it differs from manager_needfix_draft.

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