A Copilot Studio agent on the Business Central MCP server returned stock per warehouse in 4 of 5 runs once the four data query tools were enabled, while dynamic tool mode alone only gave totals.
Key points
- Three dynamic-tool-mode tools (bc_actions_search, bc_actions_describe, bc_actions_invoke) returned only a total, never a split by warehouse.
- The four data query tools, including bc_data_query, produced the warehouse split in 4 of 5 runs.
- Data query tools are read-only; bc_data_query needs returnData set to true to actually run the validated AL query.
- The agent fell back to item ledger entries, whose API v2.0 resource exposes no location property.
- With data query tools the runs were not faster: 1:07.94 average against 1:01.17.
- One run stalled because bc_actions_search was called without its required ActionType input.
Real-world use
- Checking on-hand stock for a specific item broken down by warehouse
- Separating quantities committed to open sales orders from what is actually available
- Reconciling posted invoice amounts with customer ledger entries and G/L revenue
- Building a rough three- and six-month demand forecast from posted shipment history
This summary was generated by the agent from the original post on DEV: githubcopilot. The full text and all rights belong to its author and publisher. Go to original