Skip to main content
Glama
Dynamics 365 MCP Server

Dynamics 365 MCP Server

by Kenny-666

get_record_access

Read-only

Retrieve a principal's effective access rights for a specific Dataverse record via RetrievePrincipalAccess. Read-only; reports record-level rights without changing permissions.

Instructions

Use native bound RetrievePrincipalAccess for the specified principal and record. Returns effective record rights without inventing why they were granted or claiming field/business-rule access. Does not change permissions.

Input Schema

NameRequiredDescriptionDefault
recordIdNoCompatibility alias for record_id; conflicting values are rejected.
record_idNo
principalIdNoCompatibility alias for principal_id; conflicting values are rejected.
principal_idNo
principalTypeNoCompatibility alias for principal_type; conflicting values are rejected.
collectionNameNoCompatibility alias for collection_name; conflicting values are rejected.
principal_typeNoDefault current systemuser; team/organization require principal_id.
collection_nameNo
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

A3.6/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. The description adds genuinely useful scope caveats beyond that: the result reflects effective rights only, does not explain why rights were granted, and does not cover field-level or business-rule access. Those limitations materially affect how an agent should interpret the answer.

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?

Three short sentences with the operation stated first and the scope caveats immediately after; nothing is redundant or padded. The phrasing is somewhat jargon-heavy ('native bound RetrievePrincipalAccess') but remains compact and front-loaded.

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 nine-parameter read tool with no output schema, the description covers purpose and scope limits but never sketches the shape of the response (e.g. an access-rights value or list), which an agent needs to interpret results. Combined with the unaddressed alias/default parameter behavior, it is adequate rather than complete.

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 67%, so the schema already documents aliases, the principal_type enum, and environment_profile. The description only restates 'principal and record' at a high level and adds no detail on the snake_case/camelCase alias duality, UUID formats, or the default of current systemuser. Baseline 3 fits when the schema carries most of the burden.

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: retrieve effective access rights for a given principal on a given record, naming the underlying RetrievePrincipalAccess operation. An agent can tell it is a permission-inspection tool rather than a mutation or a role-management tool. It does not, however, distinguish itself from near-neighbors such as get_principal_security_context or query_security_principals.

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 opening 'Use native bound RetrievePrincipalAccess for the specified principal and record' implies the scenario (checking one principal's rights on one record), and 'Does not change permissions' rules out write use. There is no explicit when-to-use versus the sibling security tools, no stated prerequisites, and no guidance on choosing principal_type.

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