Skip to main content
Glama
Dynamics 365 MCP Server

Dynamics 365 MCP Server

by Kenny-666

update_web_resource_and_publish

Destructive

Updates an existing Dynamics 365 web resource by GUID and optionally publishes it, with dry-run preview and ETag concurrency checks.

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.
environment_profileNoOptional named environment profile for this call; omit to use the configured default.

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

A4.1/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=false; the description adds the reason and mitigation, namely that If-Match:* is applied by default to prevent an accidental upsert into a create. It also explains that dry_run is a read-only preview returning hashes/ETag and that name/type are immutable, which is beyond what the annotations say.

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, front-loaded with the operation and its main side effect, then concurrency, then preview, then scope limits. No filler, though the if_match sentence slightly duplicates the schema's ETag/412 wording rather than adding to it.

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 15-parameter destructive mutation with no output schema, the description covers identity, content source, concurrency, publish control, and preview mode adequately. Gaps are minor: it does not mention display_name/description edits, environment_profile, or what a successful non-dry-run call returns.

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 87%, so most parameters are already documented, including if_match's 412 conflict behavior and the content/file_path exclusivity. The description reinforces if_match and dry_run but adds no new meaning for the remaining parameters (display_name, description, environment_profile, encodings), so baseline 3 applies.

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 plus the identifying key ('Update an existing Web Resource by GUID') and the conditional publish side effect. It also carves out what it will not do ('Does not rename or change the resource type'), which separates it from create_web_resource_and_publish and publish_web_resource.

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

Usage Guidelines4/5

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

Gives clear usage context: use if_match for optimistic concurrency, use dry_run to preview saved/unpublished state, and the publish flag toggles save-only vs save-and-publish. It stops short of naming the sibling alternatives (e.g., publish_web_resource for publish-only, create_web_resource_and_publish for new resources), so routing is left partly 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