Skip to main content
Glama
Dynamics 365 MCP Server

Dynamics 365 MCP Server

by Kenny-666

update_model_relationship

Destructive

Preview and apply changes to an existing unmanaged custom 1:N or N:N relationship menu or cascade behavior via native PUT, preserving identity and omitted settings with plan-hash validation.

Instructions

Preview/update an existing unmanaged custom 1:N menu/cascade or N:N per-side menus by full native PUT with language merging. Preserves table/column/intersect identity and omitted settings. Menu must be confirmed customizable. Cascade changes can affect future related-record deletion, ownership and access; native cross-relationship rules remain platform-validated. Requires planHash and explicit unprotected write; saves and reads back separately from publication.

Input Schema

NameRequiredDescriptionDefault
patchNo
dryRunNoDefault true performs reads/eligibility checks and returns a native request preview. Set false to execute.
dry_runNoDefault true performs reads/eligibility checks and returns a native request preview. Set false to execute.
schemaNameNo
schema_nameNo
expectedHashNoCurrent preview planHash (binds target, patch and environment), required for execution.
expected_hashNoCurrent preview planHash (binds target, patch and environment), required for execution.
solutionUniqueNameNoExisting unmanaged solution; its publisher prefix is validated for new schemas.
environment_profileNoOptional named environment profile for this call; omit to use the configured default.
solution_unique_nameNoExisting unmanaged solution; its publisher prefix is validated for new schemas.
allowUnprotectedWriteNoExplicitly permit the native PUT/Action without atomic concurrency protection. A preview fingerprint is still required.
allow_unprotected_writeNoExplicitly permit the native PUT/Action without atomic concurrency protection. A preview fingerprint is still required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.2
    • addedInput schema / properties / environment_profile
      Added value: +{
      +  "description": "Optional named environment profile for this call; omit to use the configured default.",
      +  "pattern": "^[A-Za-z][A-Za-z0-9_]{0,31}$",
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that identity of table/column/intersect is preserved, that omitted settings survive the PUT, that cascade changes affect future related-record deletion, ownership and access, and that results are saved and read back separately from publication. The annotations already flag destructiveHint=true, so this additional risk framing is what earns the score above baseline.

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?

Front-loaded with the core action and resource, and every clause carries information about scope, safety or side effects. The second sentence is long and jargon-dense ('native cross-relationship rules remain platform-validated'), which costs readability but not correctness.

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 12-parameter, deeply nested mutation with no output schema and no annotations covering the preview/execute split, the description covers the important gaps: dry-run default, hash binding, unprotected-write opt-in, cascade risk and the save/publish separation. It omits what a preview returns and how the hash is obtained, which an agent would still need to discover.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the baseline is 3, and the description only partially adds meaning: 'language merging' explains the label arrays and 'Preserves omitted settings' explains patch merge semantics, while planHash and unprotected write are described. However, the most consequential parameters (expectedHash, allowUnprotectedWrite, dryRun) already carry their own schema descriptions, and the description adds nothing about the nested menu/cascade fields or the alias pairs.

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 pair (Preview/update) and a precise resource (existing unmanaged custom 1:N menu/cascade or N:N per-side menus), plus the mechanism (full native PUT with language merging). It is clearly distinct from create_model_relationship and get_model_relationship, though it never names those siblings explicitly.

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

Usage Guidelines3/5

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

Gives real prerequisites ('Menu must be confirmed customizable', requires planHash and explicit unprotected write) and implies the preview-then-execute workflow via 'Preview/update'. It does not state when to reach for this versus create_model_relationship or get_model_relationship, so routing still requires inference.

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