Skip to main content
Glama
Dynamics 365 MCP Server

Dynamics 365 MCP Server

by Kenny-666

get_audit_details

Read-only

Retrieves audit details and summary metadata for a specified Dynamics 365 audit ID, optionally returning bounded old/new values with sensitive-field masking and separate permission status.

Instructions

Read native bound RetrieveAuditDetails and independent audit summary metadata. Attribute audit old/new values are opt-in and bounded; other detail types are named without fabricating unsupported fields. Detail and summary permissions are reported separately.

Input Schema

NameRequiredDescriptionDefault
auditIdNoCompatibility alias for audit_id; conflicting values are rejected.
audit_idNo
maxTextCharsNoCompatibility alias for max_text_chars; conflicting values are rejected.
includeValuesNoCompatibility alias for include_values; conflicting values are rejected.
include_valuesNoDefault false. Native audit values are received but withheld from output. Explicit true projects bounded attribute old/new values with heuristic sensitive-field masking.
max_text_charsNoPer-text preview limit, default 2000; truncation is explicit.
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

B3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered by structured data; the description goes further by disclosing that attribute old/new values are withheld by default and only projected when explicitly opted in, that projection is bounded with heuristic sensitive-field masking, and that detail and summary permissions are reported separately. These are genuine behavioral facts not expressible in annotations. It stops short of saying what happens on a missing/unauthorized audit_id or how the two permission sets surface in output.

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

Conciseness3/5

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

Three tightly packed sentences with no filler, but they are jargon-dense ("native bound RetrieveAuditDetails", "independent audit summary metadata") and front-load the least informative clause. Compactness here comes at the cost of readability rather than being genuinely efficient.

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 seven-parameter, read-only tool with no output schema, the description covers the key behavioral affordance (value redaction/opt-in) and permission reporting, but leaves the return shape of "audit summary metadata" undefined and gives no guidance on required-vs-alias parameter usage. It is adequate but leaves real gaps an agent must guess at.

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?

With 86% schema description coverage the schema already carries most parameter meaning, so a 3 baseline applies. The description reinforces include_values semantics (opt-in, bounded, masked), which is useful but largely duplicative of the schema text, and it adds nothing about max_text_chars, environment_profile, or the audit_id/auditId alias conflict resolution.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Read native bound RetrieveAuditDetails and independent audit summary metadata" does name a verb (read) and a resource (audit details/summary), but the phrasing leans on an internal API message name and an abstract "summary metadata" concept rather than saying plainly that it returns audit records for a given audit_id. Critically, it never distinguishes itself from close siblings such as get_record_audit_history, get_change_journal, or list_change_journal, so an agent cannot tell which to pick from the description alone.

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

Usage Guidelines2/5

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

There is no explicit when-to-use statement and no named alternative. Given the crowded sibling set of audit and journal tools, the description should route the agent (e.g. history vs. single-detail vs. change journal) but gives no selection criteria or exclusions.

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