Skip to content

mcp_get_business_rules

PhuocLe edited this page Jun 20, 2026 · 3 revisions

Summary

Field Value
Tool name get_business_rules
MCP title List business rules for an entity
Category standard
Implementation DynamicsCrm.DevKit.Cli/Mcp/Tools/GetBusinessRulesTool.cs
Estimated token count ~194 tokens (tools/list tool JSON, o200k_base, measured 2026-06-18)
Last verified 2026-06-18

MCP Tool Description (Exact)

Business rules (client-side logic) for a Dataverse entity. rule_id empty = list (name, scope, status). Set = detail (conditions + actions parsed from XAML). Rules run BEFORE JavaScript form events. Scope 'Entity' = runs on ALL forms.

WHEN TO USE:
- Debug form behavior (fields hide/show unexpectedly)
- Audit client-side logic before adding JavaScript

Parameters

Name Type Required Default Description
entity_name string Yes - Entity Display Name or logical name.
rule_id string No "" GUID → detail. Empty = list.
status string No "" 'active' or 'draft'. Empty = all.
max_records integer No 50 Max 200.

Input Schema

{
  "type": "object",
  "properties": {
    "entity_name": {
      "type": "string",
      "description": "Entity Display Name or logical name."
    },
    "rule_id": {
      "type": "string",
      "description": "GUID → detail. Empty = list.",
      "default": ""
    },
    "status": {
      "type": "string",
      "description": "'active' or 'draft'. Empty = all.",
      "default": ""
    },
    "max_records": {
      "type": "integer",
      "description": "Max 200.",
      "default": 50
    }
  },
  "required": [
    "entity_name"
  ]
}

Related MCP Resources

Resource URI / URI template MIME type Reason
server_logic_guide docs://server_logic_guide text/markdown Inferred from source: Filtering patterns, list/detail modes, and entity scoping for server-logic tools. Read this when get_plugins, get_workflows, get_flows, etc. returns an error.

When To Use

  • Debug form behavior (fields hide/show unexpectedly)
  • Audit client-side logic before adding JavaScript

Notes

  • Use the exact MCP description and parameter schema above as the authoritative contract.

Example

{
  "entity_name": "string"
}

Output

Returns CallToolResult from the MCP server. The response content and structured fields follow the tool implementation and model returned by GetBusinessRulesTool.get_business_rules.

Prompt Examples

  • "List active business rules on Account so I can review client-side form behavior."
  • "Show details for this business rule and explain the conditions and actions."
  • "Check whether any Contact business rule hides or requires fields on all forms."

Clone this wiki locally