Skip to main content
Glama

Update Issue

update_issue

Updates fields of an existing MantisBT issue via partial PATCH: status, resolution, handler, priority, notes and custom fields. Only provided fields change, so unrelated issue data stays as is.

Instructions

Update one or more fields of an existing MantisBT issue using a partial PATCH.

The "fields" object accepts any combination of:

  • summary (string)

  • description (string)

  • steps_to_reproduce (string)

  • additional_information (string)

  • status: { name: "new"|"feedback"|"acknowledged"|"confirmed"|"assigned"|"resolved"|"closed" }

  • resolution: { id: 20 } (20 = fixed/resolved)

  • handler: { id: <user_id> } or { name: "" }

  • priority: { name: "<priority_name>" }

  • severity: { name: "<severity_name>" }

  • reproducibility: { name: "<reproducibility_name>" }

  • category: { name: "<category_name>" }

  • version: { name: "<version_name>" } (affected version)

  • target_version: { name: "<version_name>" }

  • fixed_in_version: { name: "<version_name>" }

  • view_state: { name: "public"|"private" }

  • custom_fields: [{field: {id|name}, value: ""}] (only the listed custom fields are changed, others stay untouched; use get_issue_schema to discover fields)

  • notes: [{ id: <note_id>, text?: "", view_state?: "public"|"private" }] (edits existing notes; note IDs come from get_issue. An omitted view_state keeps the note's current visibility. To add a new note use the "note" parameter or add_note.)

Important: when resolving an issue, always set BOTH status and resolution to avoid leaving resolution as "open".

Use the optional "note" parameter to append a note in the same call (e.g. the reason for a status change) — no separate add_note call needed. For a note without field changes use add_note.

Use "add_monitors" / "remove_monitors" (lists of MantisBT login names) to change who watches the issue — "fields" may be omitted then. The response contains "monitors" with added/removed/not_monitoring and the current monitor list. Adding or removing other users requires the monitor_add_others_bug_threshold / monitor_delete_others_bug_threshold access level.

The response is the updated issue. With response: "short" it holds only id, summary, status, resolution, updated_at, view_url and the fields that were changed (custom_fields and notes narrowed to the changed entries; an appended note as { id, view_url }) — use it for routine changes. Default is "full"; it changes to "short" in 2.0.0.

Steps run in order: fields, monitors, note. Once one step succeeded, a later failure is reported inline ("notes_error" when a note edit was not applied, "monitors_error", "note_error") instead of failing the call — do not retry the steps that went through. Only if every requested step failed is the call an error.

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": {
      "id": "<id>"
    },
    "name": "update_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesNumeric issue ID to update
noteNoOptional note text appended after a successful update (e.g. reason for a status change). Replaces a separate add_note call.
fieldsNoFields to update (partial update — only provided fields are changed; unknown keys are rejected). May be omitted when only add_monitors, remove_monitors or note are given.
dry_runNoIf true, return the patch payload that would be sent without actually updating the issue. Useful for previewing changes before committing them.
responseNo"full" (default): the whole issue as MantisBT returns it, including description, notes and history. "short": only the fields that confirm the change — far fewer tokens. The default changes to "short" in 2.0.0.full
add_monitorsNoMantisBT login names to add as monitors (watchers) of the issue
note_view_stateNoVisibility of the appended note: "public" (default) or "private". Only used when "note" is set.public
remove_monitorsNoMantisBT login names to remove from the monitors of the issue; names that are not monitoring are ignored. Rejected when the server runs with MANTIS_DISABLE_DESTRUCTIVE=true

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.18.2
    • changedInput schema / properties / remove_monitors / description
      Previous value: -"MantisBT login names to remove from the monitors of the issue; names that are not monitoring are ignored"New value: +"MantisBT login names to remove from the monitors of the issue; names that are not monitoring are ignored. Rejected when the server runs with MANTIS_DISABLE_DESTRUCTIVE=true"
  2. Changed1 schema field changed
    • addedInput schema / properties / response
      Added value: +{
      +  "default": "full",
      +  "description": "\"full\" (default): the whole issue as MantisBT returns it, including description, notes and history. \"short\": only the fields that confirm the change — far fewer tokens. The default changes to \"short\" in 2.0.0.",
      +  "enum": [
      +    "short",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  3. Changed5 schema fields changedv1.15.0
    • addedInput schema / properties / add_monitors
      Added value: +{
      +  "description": "MantisBT login names to add as monitors (watchers) of the issue",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / fields / description
      Previous value: -"Fields to update (partial update — only provided fields are changed; unknown keys are rejected)"New value: +"Fields to update (partial update — only provided fields are changed; unknown keys are rejected). May be omitted when only add_monitors, remove_monitors or note are given."
    • addedInput schema / properties / fields / properties / notes
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "description": "ID of the note to edit (from get_issue)",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "text": {
      +        "description": "New note text",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "view_state": {
      +        "description": "New visibility; omitted = keep the current one",
      +        "enum": [
      +          "public",
      +          "private"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / remove_monitors
      Added value: +{
      +  "description": "MantisBT login names to remove from the monitors of the issue; names that are not monitoring are ignored",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "id",
      -  "fields"
      -]New value: +[
      +  "id"
      +]
  4. Changed38 schema fields changedv1.14.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / fields / properties / category / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / category / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / category / type
      Added value: +"object"
    • removedInput schema / properties / fields / properties / custom_fields / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / fields / properties / custom_fields / items / properties / field / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / custom_fields / items / properties / field / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / custom_fields / items / properties / field / type
      Added value: +"object"
    • changedInput schema / properties / fields / properties / custom_fields / items / required
      Previous value: -[
      -  "field"
      -]New value: +[
      +  "field",
      +  "value"
      +]
    • removedInput schema / properties / fields / properties / fixed_in_version / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / fixed_in_version / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / fixed_in_version / type
      Added value: +"object"
    • removedInput schema / properties / fields / properties / handler / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / handler / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / handler / type
      Added value: +"object"
    • removedInput schema / properties / fields / properties / priority / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / priority / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / priority / type
      Added value: +"object"
    • removedInput schema / properties / fields / properties / reproducibility / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / reproducibility / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / reproducibility / type
      Added value: +"object"
    • removedInput schema / properties / fields / properties / resolution / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / resolution / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / resolution / type
      Added value: +"object"
    • removedInput schema / properties / fields / properties / severity / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / severity / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / severity / type
      Added value: +"object"
    • removedInput schema / properties / fields / properties / status / additionalProperties
      Removed value: -false
    • removedInput schema / properties / fields / properties / target_version / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / target_version / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / target_version / type
      Added value: +"object"
    • removedInput schema / properties / fields / properties / version / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / version / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / version / type
      Added value: +"object"
    • removedInput schema / properties / fields / properties / view_state / $ref
      Removed value: -"#/properties/fields/properties/status"
    • addedInput schema / properties / fields / properties / view_state / properties
      Added value: +{
      +  "id": {
      +    "type": "number"
      +  },
      +  "name": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / fields / properties / view_state / type
      Added value: +"object"
    • addedInput schema / properties / id / maximum
      Added value: +9007199254740991
  5. Changed3 schema fields changedv1.10.5
    • addedInput schema / properties / fields / properties / custom_fields
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "$ref": "#/properties/fields/properties/status",
      +        "description": "Custom field reference: { id } or { name }"
      +      },
      +      "value": {
      +        "description": "Field value as string",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "field"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / note
      Added value: +{
      +  "description": "Optional note text appended after a successful update (e.g. reason for a status change). Replaces a separate add_note call.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / note_view_state
      Added value: +{
      +  "default": "public",
      +  "description": "Visibility of the appended note: \"public\" (default) or \"private\". Only used when \"note\" is set.",
      +  "enum": [
      +    "public",
      +    "private"
      +  ],
      +  "type": "string"
      +}
  6. Addedv1.10.4
  7. Removed
  8. Changed1 schema field changedv1.5.15
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "If true, return the patch payload that would be sent without actually updating the issue. Useful for previewing changes before committing them.",
      +  "type": "boolean"
      +}
  9. First observedv1.5.6

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-idempotent, non-destructive write; the description goes far beyond that by disclosing step ordering (fields, monitors, note), partial-failure semantics with the exact inline error keys, the instruction not to retry successful steps, and the access thresholds required for changing other users' monitors. The response shape is described in enough detail to substitute for the missing output schema.

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?

Despite its length, it is front-loaded with the core action, then structured as a scannable bullet list of fields, followed by a short set of usage and failure-handling notes. A few clauses (e.g. repeating that custom_fields only touch listed fields, which the schema already says) could be trimmed without loss.

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 an 8-parameter mutation tool with nested objects and no output schema, the definition covers the full apply order, partial-failure behavior, permission requirements, dry_run capability, and both response shapes, including the announced 2.0.0 default change. An agent has everything needed to invoke it correctly and interpret the result.

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 description coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks: the allowed status names, the resolution id convention (20 = fixed/resolved), the rule that only listed custom_fields are changed, and that notes edit existing notes found via get_issue. Its only redundancy is restating the note/view_state behavior already documented in the schema.

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 opening sentence names a specific verb and resource ("Update one or more fields of an existing MantisBT issue using a partial PATCH") and the partial-update scope immediately distinguishes it from create_issue and from add_note. The enumerated field list makes the operation's surface concrete without opening the schema.

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

Usage Guidelines5/5

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

Explicit routing rules are given for every adjacent tool: use the "note" parameter instead of a separate add_note, use add_note for a note with no field changes, and use add_monitors/remove_monitors for watcher changes. It also states a concrete correctness rule ("when resolving an issue, always set BOTH status and resolution") and recommends response:"short" for routine changes.

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