Skip to main content
Glama
Kenny-666

Dynamics 365 MCP Server

by Kenny-666

execute_record_batch

Destructive

Executes up to 100 validated record mutations in native $batch chunks with preflight checks and per-item outcomes, stopping on unknown results.

Instructions

Execute up to 100 validated record mutations in native $batch chunks. Each operation has its own change set, so a later failure does not roll back earlier operations. Preflights all operations before dispatch, reports per-item outcomes, stops after unknown results and respects request cancellation.

Input Schema

NameRequiredDescriptionDefault
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.
chunkSizeNoCompatibility alias for chunk_size. Conflicting aliases are rejected.
chunk_sizeNoDefault 25. Every chunk must fit the 10 MiB wire-body limit.
operationsYes
continueOnErrorNoCompatibility alias for continue_on_error. Conflicting aliases are rejected.
continue_on_errorNoDefault false. Continue after known per-item rejection; unknown results always stop future chunks. Native support is not assumed when responses are incomplete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=true) by disclosing the non-atomic change-set model, preflight validation before dispatch, per-item outcome reporting, the stop-on-unknown-results safety rule, and cancellation handling. These are exactly the behavioral traits an agent needs before committing destructive writes.

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?

Two tight sentences, front-loaded with the verb, scope, and batching model; each subsequent clause carries a distinct behavioral fact with no filler.

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, multi-operation tool with no output schema, the description adequately covers execution model, failure semantics, and outcome reporting. The main gap is the absence of routing guidance versus execute_record_transaction, which an agent would still need to infer.

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 86%, so aliases, dry_run, chunk_size, if_match, and operation variants are already documented in the schema. The description only reinforces the 100-item cap and chunking model, adding little syntax or format detail beyond structured fields.

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 ('Execute up to 100 validated record mutations in native $batch chunks') with a clear scope. The non-atomic, per-change-set semantics implicitly distinguish it from the transactional sibling, but no sibling is named explicitly, so it falls short of a 5.

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?

The behavior described (no rollback across operations, preflight, per-item outcomes) implies this is for multi-mutation batches where partial success is acceptable, but the description never states when to choose this over execute_record_transaction or when to avoid it. Usage is left to 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