Skip to main content
Glama
Kenny-666

Dynamics 365 MCP Server

by Kenny-666

diagnose_plugin_failure

Read-only

Builds a read-only evidence report from exception-filtered traces, failed jobs, and current plugin steps so you can investigate Dynamics 365 plugin failures by correlation, step, or plugin type.

Instructions

Build a read-only evidence report from exception-filtered traces, failed jobs and current plugin steps, anchored by correlation, step or plugin type. Uses native IDs for links, reports missing/forbidden/limited sources and keeps root cause undetermined. Current step state is not historical configuration.

Input Schema

NameRequiredDescriptionDefault
topNoMaximum visible rows, default 50. Reaching this bound is not a complete inventory.
stepIdNoCompatibility alias for step_id; conflicting values are rejected.
toTimeNoCompatibility alias for to_time; conflicting values are rejected.
step_idNo
to_timeNoISO timestamp with explicit timezone, inclusive. Default current UTC time.
fromTimeNoCompatibility alias for from_time; conflicting values are rejected.
maxPagesNoCompatibility alias for max_pages; conflicting values are rejected.
from_timeNoISO timestamp with explicit timezone, inclusive. Default 24 hours before to_time.
max_pagesNoMaximum native pages, default 5. Bounded reads report incompleteness.
includeTextNoCompatibility alias for include_text; conflicting values are rejected.
include_textNoDefault false. Opt in to trace/exception/job message text, which can contain business data. Secure/unsecure configuration columns are never selected.
maxTextCharsNoCompatibility alias for max_text_chars; conflicting values are rejected.
correlationIdNoCompatibility alias for correlation_id; conflicting values are rejected.
correlation_idNo
max_text_charsNoPer-text preview limit, default 2000; truncation is explicit.
pluginTypeNameNoCompatibility alias for plugin_type_name; conflicting values are rejected.
plugin_type_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare readOnly/non-destructive; the description adds substantial behavioral context beyond them: that missing, forbidden, and limited sources are reported, that root cause is deliberately left undetermined, that current step state is not historical config, that include_text opts into business data with secure columns never selected, and that bounded reads report incompleteness.

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?

Two dense sentences, front-loaded with the core action and source list, with caveats packed at the end. Efficient for a 17-parameter tool, though the warnings are terse to the point of being easy to skim past.

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 complex, no-output-schema tool the description covers the sources, anchoring, safety, and limits well. It does not describe the resulting report's sections or how the sources are correlated, which would help an agent interpret results, but the essentials are present.

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 82%, so most parameters are documented in the schema itself. The description adds the semantic of the anchoring keys (correlation, step, plugin type) but says nothing about top, max_pages, from_time/to_time defaults beyond what the schema already states; baseline 3 is appropriate.

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 deliverable ('build a read-only evidence report') and names the three data sources (exception-filtered traces, failed jobs, current plugin steps) plus the anchoring keys. It implicitly distinguishes itself from single-source siblings like query_plugin_trace_logs and query_failed_system_jobs by being a composite, though it never names them.

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 context ('anchored by correlation, step or plugin type') and the caveat 'Current step state is not historical configuration' imply a diagnostic/forensic use case, but there is no explicit when-to-use or when-to-prefer-sibling guidance despite many adjacent query tools. Usage must be inferred.

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