Skip to main content
Glama
Dynamics 365 MCP Server

Dynamics 365 MCP Server

by Kenny-666

disassociate_records

Destructive

Removes a native association between Dynamics 365 records without deleting the related record. Clears a lookup only when it points to the specified target or removes collection membership.

Instructions

Remove a native association. A single lookup is cleared only if it currently points to the supplied target; collection membership uses DELETE on the specific $ref. No related record is deleted.

Input Schema

NameRequiredDescriptionDefault
idYes
dryRunNoCompatibility alias for dry_run. Conflicting aliases are rejected.
dry_runNoRead-only preview of environment, target, changes and write blockers. Default false; sensitive fields are masked.
ifMatchNoCompatibility alias for if_match. Conflicting aliases are rejected.
if_matchNoSpecific ETag from a prior read/preview. Without it, reads the current record ETag when the table supports concurrency.
relatedIdNoCompatibility alias for related_id. Conflicting aliases are rejected.
related_idNo
collectionNameNoCompatibility alias for collection_name. Conflicting aliases are rejected.
collection_nameNoNative EntitySetName, such as accounts. Validated against table metadata.
navigationPropertyNoCompatibility alias for navigation_property. Conflicting aliases are rejected.
environment_profileNoOptional named environment profile for this call; omit to use the configured default.
navigation_propertyNoNative navigation property, resolved from relationship metadata to the specified related table.
allowUnprotectedWriteNoCompatibility alias for allow_unprotected_write. Conflicting aliases are rejected.
relatedCollectionNameNoCompatibility alias for related_collection_name. Conflicting aliases are rejected.
allow_unprotected_writeNoDefault false. Explicitly allow an unprotected write if table concurrency is unconfirmed, or for collection relationship membership. Does not bypass a supplied ETag conflict.
related_collection_nameNo

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.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, yet the description adds real value: the conditional clearing rule ('only if it currently points to the supplied target') bounds the blast radius, and 'No related record is deleted' confirms the target record survives. It stops short of covering ETag/if_match behavior, dry_run preview, or the unprotected-write gate, which the annotations alone don't reveal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action, then conditional semantics, then the non-destructive guarantee. No filler and nothing that could be cut without losing meaning.

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 destructive, non-idempotent mutation with 16 parameters and no output schema, the description covers the core semantics but leaves gaps: no mention of the unprotected-write requirement for collection membership, no guidance on if_match conflicts, and no pointer to dry_run as a preview path. Adequate but noticeably incomplete for a write operation of this complexity.

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

Parameters3/5

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

Schema description coverage is 81%, so the schema carries the parameter burden; the description only alludes to the 'supplied target' (related_id) and the $ref semantics of collection membership. It adds a little conceptual framing but no syntax, alias, or required/optional detail beyond what the schema states.

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?

States a specific verb and resource ('Remove a native association') and immediately clarifies the two different shapes of association it handles: a single lookup versus collection membership via DELETE on the $ref. This distinguishes it cleanly from sibling 'associate_records' and from 'delete_record_by_id'.

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?

It implies when to use it (removing an association rather than deleting a record) and explicitly rules out one adjacent behavior with 'No related record is deleted', which steers the agent away from delete_record_by_id. However, it never names an alternative tool, and it omits the prerequisite that collection-membership removal requires allow_unprotected_write per the schema—a significant usage condition left to the parameter docs.

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