Skip to main content
Glama

update_dependency

Destructive

Updates an existing dependency. NATURE of the dependency: type ('business' = dashed business arrow, 'structural' = solid hierarchy) — change it HERE rather than by deleting then recreating, which would lose the dependency's identity and its history. Per-arrow appearance: label, style ('solid'/'dashed'), shares, fromAnchor/toAnchor, animated (true/false/null), color (ColorKey or null), strokeWidth (px or null), waypoints (list of manual waypoints or null to go back to automatic routing).

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

Input Schema

NameRequiredDescriptionDefault
idYes
typeNobusiness = dashed business arrow, structural = solid hierarchy. Changes the NATURE of the dependency without losing its identity (hence its history).
colorNoStroke color. null = default.
labelNo
styleNo
sharesNo
animatedNoEnables/disables the animation. null = type default.
toAnchorNo
waypointsNoManual waypoints (absolute canvas px). null to go back to automatic routing.
fromAnchorNo
strokeWidthNoWidth in px. null = default.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed6 schema fields changed
    • changedInput schema / properties / animated / description
      Previous value: -"Active/désactive l'animation. null = défaut du type."New value: +"Enables/disables the animation. null = type default."
    • changedInput schema / properties / color / description
      Previous value: -"Couleur du trait. null = défaut."New value: +"Stroke color. null = default."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / strokeWidth / description
      Previous value: -"Épaisseur en px. null = défaut."New value: +"Width in px. null = default."
    • changedInput schema / properties / type / description
      Previous value: -"business = flèche tiretée métier, structural = hiérarchie solide. Change la NATURE du lien sans perdre son identité (donc son historique)."New value: +"business = dashed business arrow, structural = solid hierarchy. Changes the NATURE of the dependency without losing its identity (hence its history)."
    • changedInput schema / properties / waypoints / description
      Previous value: -"Points de coude manuels (px canvas absolus). null pour repasser en routage auto."New value: +"Manual waypoints (absolute canvas px). null to go back to automatic routing."
  4. First observed

TDQS

A4/5.0
Behavior3/5

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

With destructiveHint=true already disclosed by annotations, the description adds useful context that updating preserves the dependency's identity and history, and it explains null resets for several appearance fields. However, it does not explain what is overwritten or destroyed by the update, nor permission or reversibility behavior, leaving key destructive semantics to the annotation alone.

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 purpose is front-loaded in the first sentence, and the remaining text is dense but relevant to the 12-parameter update surface. The long parenthetical appearance list is functional, though a bulleted or more segmented structure would be easier to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter mutation tool with no output schema, the description covers the core purpose, update-vs-recreate rationale, and many parameter behaviors. It still leaves gaps around the meaning of 'shares', the role of expectedProjectId, and what the tool returns, so it is adequate but not fully complete.

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 50%, so the description needs to compensate, and it largely does: it clarifies type values, style, anchors, animation null behavior, color null behavior, strokeWidth null behavior, and waypoint null behavior. It adds less meaning for 'shares' and 'label', but overall it gives substantial semantics beyond the schema for the appearance parameters.

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 description opens with a specific verb and resource: 'Updates an existing dependency.' It also distinguishes the update from delete-then-recreate for changing dependency type, so an agent can tell why this tool exists rather than reaching for delete/add siblings.

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?

It gives a clear when-to-use rule for changing dependency type: do it HERE rather than deleting and recreating, because that would lose identity and history. It does not state broader exclusions or when to prefer other update tools, but the primary alternative is explicitly addressed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.