Skip to main content
Glama
Kenny-666

Dynamics 365 MCP Server

by Kenny-666

update_web_resource_and_publish

Destructive

Update an existing Dynamics 365 web resource by GUID and optionally publish it, with optional optimistic concurrency and a dry-run preview to verify changes before saving.

Instructions

Update an existing Web Resource by GUID and optionally publish it. Uses If-Match:* to prevent accidental upsert; pass if_match for optimistic concurrency. dry_run reads the latest saved/unpublished definition and returns hashes and ETag. Does not rename or change the resource type.

Input Schema

NameRequiredDescriptionDefault
idYes
dryRunNoCompatibility alias for dry_run; conflicting aliases are rejected.
contentNoInline content, UTF-8 by default. Supply exactly one of content or file_path; empty content is allowed.
dry_runNoRead-only preview showing the environment, target, metadata changes and content hashes. Does not save or publish.
ifMatchNoCompatibility alias for if_match; conflicting aliases are rejected.
publishNoDefault true preserves the old save-and-publish behavior. Set false to save without publishing.
filePathNoCompatibility alias for file_path; conflicting aliases are rejected.
if_matchNoA specific ETag from a previous read/preview, such as W/"123". HTTP 412 is a conflict and is never retried.
file_pathNoAbsolute source-file path on the MCP server machine; read as bytes and Base64 encoded. Supply exactly one of file_path or content. Maximum 10 MiB.
descriptionNoOptional description; an empty string clears it.
displayNameNoCompatibility alias for display_name; conflicting aliases are rejected.
display_nameNo
contentEncodingNoCompatibility alias for content_encoding; conflicting aliases are rejected.
content_encodingNoInline content encoding, default utf8. Base64 must be canonical. Not used with file_path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Adds real context beyond the annotations: the tool defaults to If-Match:* to prevent accidental upsert, dry_run performs a read-only preview of the latest saved/unpublished definition, and publish defaults to true. This meaningfully complements destructiveHint=true and idempotentHint=false by explaining the mutation's guardrail, though it doesn't say what happens to fields omitted from the request.

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?

Four tight sentences with the core action front-loaded, followed by concurrency, preview, and scope-limit notes. No filler, though the dry_run sentence reads slightly clipped compared to the rest.

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 14-parameter mutation with no output schema and risky annotations, the description covers the essential decision points: concurrency, preview mode, publish default, and scope limits. It omits what the response contains and how a conflict surfaces beyond the 412 note in the schema, but that is a minor gap.

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 coverage is 86%, so the schema already documents aliases, content vs file_path exclusivity, encoding and ETag conflict handling. The description reinforces if_match and dry_run but adds no syntax or format detail beyond the structured fields — baseline 3 is appropriate when the schema does the heavy lifting.

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 an existing Web Resource by GUID and optionally publish it") plus an explicit scope boundary ("Does not rename or change the resource type"). It implicitly separates itself from create_web_resource_and_publish and publish_web_resource via "existing," but never names those siblings, so an agent must infer the routing.

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 implied guidance: pass if_match for optimistic concurrency, use dry_run to preview, publish defaults to true. But it never states when to choose publish_web_resource (publish-only) or create_web_resource_and_publish (new resource) instead, which is the main ambiguity for an agent given three near-identical siblings.

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