Skip to main content
Glama

run_bp_check

Read-only

Run Microsoft Best Practices checks on a D365FO project to return best practice warnings and errors with rule codes for targeted fixes.

Instructions

Run Microsoft Best Practices checker (xppbp.exe) on a D365FO project. Returns BP warnings and errors with rule codes. Runs AFTER a build, not after a write; build_d365fo_project(bpCheck:true) already folds it in, so a separate call is rarely needed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_bp_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
objectsNoSeveral objects in ONE call, findings grouped per object. An entry "git:<ref>" (e.g. "git:origin/main") checks only objects changed since that ref. Later runs list only findings new since the last run.
modelNameNoModel name to check. Auto-detected if omitted.
packagePathNoPackagesLocalDirectory root path. Auto-detected if omitted.
projectPathNoAbsolute path to the .rnrproj file to analyze. Auto-detected if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.25.0
    • changedInput schema / properties / objects / description
      Previous value: -"Check several objects in ONE call — preferred over targetFilter. Shared preamble is printed once and findings are grouped per object."New value: +"Several objects in ONE call, findings grouped per object. An entry \"git:<ref>\" (e.g. \"git:origin/main\") checks only objects changed since that ref. Later runs list only findings new since the last run."
  2. Changed2 schema fields changedv1.16.2
    • removedInput schema / properties / targetElementType
      Removed value: -{
      -  "description": "Element type for targetFilter. Looked up in the symbol index if omitted; ambiguous or unknown names error rather than being assumed to be a class.",
      -  "type": "string"
      -}
    • removedInput schema / properties / targetFilter
      Removed value: -{
      -  "description": "Single-object form: object name to check. Use objects[] for more than one.",
      -  "type": "string"
      -}
  3. Changed3 schema fields changedv1.14.0
    • changedInput schema / properties / modelName / description
      Previous value: -"Model name to check. Auto-detected from .mcp.json if omitted."New value: +"Model name to check. Auto-detected if omitted."
    • changedInput schema / properties / packagePath / description
      Previous value: -"PackagesLocalDirectory root path. Auto-detected from .mcp.json if omitted."New value: +"PackagesLocalDirectory root path. Auto-detected if omitted."
    • changedInput schema / properties / projectPath / description
      Previous value: -"Absolute path to the .rnrproj file to analyze. Auto-detected from .mcp.json if omitted."New value: +"Absolute path to the .rnrproj file to analyze. Auto-detected if omitted."
  4. Changed3 schema fields changedv1.9.0
    • addedInput schema / properties / objects
      Added value: +{
      +  "description": "Check several objects in ONE call — preferred over targetFilter. Shared preamble is printed once and findings are grouped per object.",
      +  "items": {
      +    "properties": {
      +      "objectName": {
      +        "description": "Object name.",
      +        "type": "string"
      +      },
      +      "objectType": {
      +        "description": "class, table, form, enum, view, query, edt, ... Looked up in the symbol index if omitted.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "objectName"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / targetElementType / description
      Previous value: -"Element type for the filter when using xppbp 10.0.24+ (equals-style CLI). Common values: class, table, form, enum, view, query. Defaults to \"class\" when targetFilter is set but this is omitted."New value: +"Element type for targetFilter. Looked up in the symbol index if omitted; ambiguous or unknown names error rather than being assumed to be a class."
    • changedInput schema / properties / targetFilter / description
      Previous value: -"Optional: filter results to a specific object name (class, table, form, enum, ...)."New value: +"Single-object form: object name to check. Use objects[] for more than one."
  5. First observedv1.8.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description adds real value beyond that by disclosing the external tool invoked (xppbp.exe), the shape of the return (warnings and errors with rule codes), and the build prerequisite. It stops short of runtime expectations or whether a symbol index must be current, which matters for a check that depends on compilation state.

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

Conciseness5/5

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

Three sentences, front-loaded with purpose before caveats. Every sentence earns its place: what it runs, what it returns, and why you probably should not call it. No filler or restatement of the title.

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?

There is no output schema, and the description compensates by stating that findings come back as warnings and errors with rule codes. Prerequisite (post-build) and the preferred alternative are both covered. Minor gap: nothing about expected duration for a Best Practices run, which affects whether an agent should call it directly or defer to the build.

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 100%, with all four parameters documented including auto-detection fallbacks and the git:<ref> incremental entry form, so the schema carries the parameter burden. The description contributes only the general scoping phrase 'on a D365FO project' and adds no syntax or precedence detail beyond the schema — baseline 3.

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 ('Run Microsoft Best Practices checker (xppbp.exe) on a D365FO project') plus the kind of result ('BP warnings and errors with rule codes'). It also names the sibling that subsumes it (build_d365fo_project with bpCheck:true), so an agent can distinguish it without opening any schema.

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

Usage Guidelines5/5

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

Explicit sequencing guidance: 'Runs AFTER a build, not after a write,' which rules out the wrong trigger. It also names the preferred alternative and the condition that selects it — build_d365fo_project(bpCheck:true) already folds it in, so a separate call is rarely needed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.