Skip to main content
Glama

build_d365fo_project

Idempotent

Compile an entire D365FO model (not a single project) with xppc.exe in one blocking call. Use fullBuild to clear stale-symbol compile errors.

Instructions

Build a D365FO model with xppc.exe (compiles the ENTIRE model, not one project). Blocks until done — call ONCE per build, do NOT poll (wait:false = legacy polling mode). fullBuild:true fixes "not been successfully compiled since it was last changed" stale-symbol errors.

Input Schema

NameRequiredDescriptionDefault
waitNoWhen true (default) the tool blocks until the build finishes and returns the final result in a single call. The agent should make exactly one call per requested build. Set false for legacy fire-and-forget polling behaviour.
forceNoKill any running build processes for this model and restart.
aosUrlNorestartAos root. Default: Infrastructure.HostUrl in AosService web.config; required on UDE.
dbSyncNoOn a SUCCESSFUL build, also run the database sync (SyncEngine.exe) — REQUIRED after any table/view/data-entity change. true = partial sync of the syncable objects in the project, full-model when it has none; an ARRAY syncs exactly those tables/views (much faster).
bpCheckNoOn a SUCCESSFUL build, also run the best-practice checker and append its findings. Prefer this to a follow-up run_bp_check call: one build call instead of two round trips.
fullBuildNoFull recompile of TARGET model (not deps). Fixes stale symbols; auto when an entity with OData actions changes.
modelNameNoD365FO model name to build (e.g. MyCustomModel). Auto-detected from workspace if omitted.
restartAosNoAfter a successful build (+dbSync), restart the local IIS/IIS Express AOS serving aosUrl.
waitTimeoutMsNoMaximum time (ms) to block when wait:true before returning a "still running" snapshot. Defaults to 30 minutes. The build itself continues in the background.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.22.0
    • changedInput schema / properties / fullBuild / description
      Previous value: -"Full recompile of the TARGET model only; deps are not built. Use when xppc reports stale symbol errors."New value: +"Full recompile of TARGET model (not deps). Fixes stale symbols; auto when an entity with OData actions changes."
  2. Changed1 schema field changedv1.21.0
    • changedInput schema / properties / fullBuild / description
      Previous value: -"Full recompile of the TARGET model only (deps stay incremental). Use when xppc reports stale symbol errors."New value: +"Full recompile of the TARGET model only; deps are not built. Use when xppc reports stale symbol errors."
  3. Changed2 schema fields changedv1.19.1
    • addedInput schema / properties / aosUrl
      Added value: +{
      +  "description": "restartAos root. Default: Infrastructure.HostUrl in AosService web.config; required on UDE.",
      +  "type": "string"
      +}
    • addedInput schema / properties / restartAos
      Added value: +{
      +  "description": "After a successful build (+dbSync), restart the local IIS/IIS Express AOS serving aosUrl.",
      +  "type": "boolean"
      +}
  4. Changed3 schema fields changedv1.16.2
    • changedInput schema / properties / bpCheck / description
      Previous value: -"On a SUCCESSFUL build, also run the best-practice checker and append its findings — saves the usual follow-up run_bp_check call."New value: +"On a SUCCESSFUL build, also run the best-practice checker and append its findings. Prefer this to a follow-up run_bp_check call: one build call instead of two round trips."
    • addedInput schema / properties / dbSync
      Added value: +{
      +  "description": "On a SUCCESSFUL build, also run the database sync (SyncEngine.exe) — REQUIRED after any table/view/data-entity change. true = partial sync of the syncable objects in the project, full-model when it has none; an ARRAY syncs exactly those tables/views (much faster).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "boolean",
      +    "array"
      +  ]
      +}
    • removedInput schema / properties / projectPath
      Removed value: -{
      -  "description": "(Legacy) Absolute path to a .rnrproj file — used only to extract the model name when modelName is not provided.",
      -  "type": "string"
      -}
  5. Changed2 schema fields changedv1.14.0
    • addedInput schema / properties / bpCheck
      Added value: +{
      +  "description": "On a SUCCESSFUL build, also run the best-practice checker and append its findings — saves the usual follow-up run_bp_check call.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / buildReferencedModels
      Removed value: -{
      -  "description": "DISABLED — always ignored. Rebuilding dependency models on every build slows the run down and referenced models are expected to already be compiled.",
      -  "type": "boolean"
      -}
  6. Changed1 schema field changedv1.9.0
    • changedInput schema / properties / buildReferencedModels / description
      Previous value: -"Also build all custom/ISV models this model depends on before building the target. Skips Microsoft standard models."New value: +"DISABLED — always ignored. Rebuilding dependency models on every build slows the run down and referenced models are expected to already be compiled."
  7. First observedv1.8.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the blocking/long-running behavior, the "still running" snapshot fallback, that the build continues in the background after timeout, and that force kills existing build processes. It also surfaces side effects (dbSync, AOS restart) that annotations do not convey. The force-kill behavior is a borderline fit for destructiveHint=false, but since it terminates transient build processes rather than data, it is not a genuine contradiction.

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?

Dense and front-loaded: build semantics first, then the anti-polling warning, then the flag hints. It is compact for the amount of information conveyed, though the wait:false guidance is partially duplicated between the description and the wait parameter's schema text.

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 9-parameter, long-running, side-effecting build tool with no output schema, the description covers timing, failure modes, and cost trade-offs well. What it does not cover is the shape or content of the returned build result (errors, warnings, summary), which an agent must discover at call time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns an extra point by explaining the "why" of parameters the schema only defines literally: fullBuild fixes stale symbols, dbSync is required after entity changes, bpCheck saves a round trip, wait:false is legacy. The modelName auto-detection note is also useful context not in the schema.

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?

"Build a D365FO model with xppc.exe (compiles the ENTIRE model, not one project)" gives a specific verb, resource, underlying tool, and an explicit scope disambiguation against the per-project mental model. An agent can immediately tell this apart from verify_d365fo_project, run_bp_check, or run_systest_class.

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?

It states the invocation contract ("call ONCE per build, do NOT poll"), names the legacy alternative (wait:false) and when to avoid it, and routes away from a sibling by name ("Prefer this to a follow-up run_bp_check call"). It also gives a condition for each notable flag (fullBuild for stale-symbol errors, dbSync after table/view/entity changes).

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