Skip to main content
Glama
Dynamics 365 Business Central MCP Server

Dynamics 365 Business Central MCP Server

by Code-Ninety

bc_create_draft_journal

Creates an unposted draft general journal batch in Dynamics 365 Business Central, requiring a valid HMAC approval token before submission.

Instructions

Create an unposted draft general journal batch. Requires D365_READ_ONLY=false and a valid HMAC approval token.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "journal_batch": "<journal_batch>",
      "posting_date": "<posting_date>",
      "lines": "<lines>"
    },
    "name": "bc_create_draft_journal"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYes
posting_dateYes
journal_batchYes
approval_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that the result is unposted and that two gating conditions apply, but it does not explain validation behavior, whether the operation is idempotent, or what happens on authorization or token failure.

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?

Two short sentences with the resource and prerequisites front-loaded. Every sentence contributes relevant information, with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool with no annotations, four parameters, and a nested lines array, the definition is too thin. The output schema reduces the need to describe return values, but the description should explain the required journal_batch and posting_date semantics and the structure of each line.

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

Parameters2/5

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

Schema description coverage is 0%, and the description documents only the approval token requirement while leaving journal_batch, posting_date, and the nested lines array unexplained. The brief mention of a valid HMAC approval token adds some meaning, but most required parameters remain opaque.

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: create an unposted draft general journal batch. The distinction from posting or approval workflows is implied by "unposted draft," but it does not explicitly contrast with sibling tools such as bc_request_write_approval.

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

Usage Guidelines4/5

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

Gives clear prerequisites for invocation: D365_READ_ONLY=false and a valid HMAC approval token. It does not state when not to use this tool or explicitly point to the approval-request sibling, but the operational context is clear.

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