Skip to main content
Glama

update_relation

Destructive

Update a work package relation's type or description with a preview-first confirmation step, so you can adjust dependencies and notes before applying changes.

Instructions

Update the type or description of a relation.

relation_type is subject to the same write-time canonicalization as create_work_package_relation: setting it to a "reverse" pair member (precedes, blocked, duplicated, partof, required) rewrites the stored relation to the paired canonical type (follows, blocks, duplicates, includes, requires) with from_id/to_id swapped relative to the relation's existing from/to. Read the actual type/from_id/to_id back afterward rather than assuming they match what was requested.

Input Schema

NameRequiredDescriptionDefault
confirmNofalse: preview only, nothing changes. true: applies it; get the user's approval of the preview first.
descriptionNo
relation_idYes
relation_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.4

TDQS

A3.8/5.0
Behavior5/5

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

The description adds substantial behavioral detail beyond annotations: relation_type is canonicalized at write time, reverse pair members are rewritten to canonical types with from_id/to_id swapped, and the agent should read back the actual type and IDs rather than assume requested values persisted. This directly warns about surprising mutation side effects.

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 first sentence front-loads the purpose, followed by focused canonicalization detail. The explanation is dense but each sentence earns its place; minor formatting improvements could make the reverse-pair list easier to scan.

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 destructive mutation tool with no output schema, the description covers the critical behavioral risk of relation_type rewriting and advises verifying the result. Annotations already declare the destructive/write profile, and the confirm preview workflow is documented in the schema, so the remaining gaps are minor.

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 only 25% (only confirm is documented), so the description must clarify parameters. It provides deep semantics for relation_type, the most ambiguous parameter, explaining the canonicalization and swapping behavior. It does not explain relation_id or description, but those are comparatively self-evident.

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?

The description states a specific verb and resource: update the type or description of a relation. It is clear and unambiguous, though it does not explicitly contrast with sibling tools like create_work_package_relation or delete_relation.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives. It references create_work_package_relation only to explain canonicalization behavior, not to route the agent between tools. The implied use case (updating an existing relation) is obvious from the name, but no exclusions or prerequisites are given.

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