Skip to main content
Glama
powerdesigner-mcp-dfd
by 011011bjf

update_reference

Updates a CDM/LDM reference's name, code, comment, roles, cardinality, and mandatory flag; set dry_run to preview changes before applying.

Instructions

Update a reference: name, code, comment, mandatory, parent_role, child_role, cardinality ('0,n', '1,1', ...), parent_cardinality. In a CDM/LDM the cardinalities map onto the two role cardinalities and dependent_role ('A'/'B') marks the dependent side. Supports dry_run.

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": {
      "model_id": "<model_id>",
      "reference_ref": "<reference_ref>"
    },
    "name": "update_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
nameNo
commentNo
dry_runNo
model_idYes
mandatoryNo
child_roleNo
cardinalityNo
parent_roleNo
reference_refYes
dependent_roleNo
parent_cardinalityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the mutation nature of the call and the availability of dry_run, which is genuine behavioral value. However, it is silent on critical traits for a 12-parameter mutation: whether omitted fields are reset to their schema defaults (full replacement) or left untouched, permission requirements, and irreversibility.

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?

Two dense sentences, both earning their place: the first front-loads the verb and the field inventory, the second supplies the domain semantics that the schema cannot. The parenthetical field list is somewhat run-on but is justified given zero schema coverage.

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 annotations and no output schema, the definition covers the field vocabulary and the CDM/LDM semantics but omits update semantics (partial vs full replacement), failure modes, and the meaning of the two required identifiers. Adequate to invoke, not sufficient to invoke safely.

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 0%, so the description must compensate, and it does: it names 10 of the 12 parameters and adds real meaning beyond the schema — cardinality format examples ('0,n', '1,1') and the fact that dependent_role ('A'/'B') marks the dependent side, with the CDM/LDM role-cardinality mapping. The two required identifiers, model_id and reference_ref, are left unexplained, though their names are largely 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?

States a specific verb and resource ('Update a reference') and enumerates the mutable fields, so the agent knows exactly what domain object and attributes are affected. It is clearly distinct from create_reference/delete_reference/get_reference by the verb alone, though it never explicitly names those siblings.

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 guidance on when to call this instead of create_reference or apply_schema_patch, no prerequisites (e.g. that the reference must already exist), and no statement of what happens when a field is omitted. 'Supports dry_run' is the only usage-oriented hint and it is not developed into when-you-should-use-it advice.

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