Skip to main content
Glama

prepare

Read-only

Aggregates context for extending or creating D365 F&O objects, providing naming, collision checks, and strategies.

Instructions

ONE-call context aggregator + groundingToken (30-min TTL, required for extension/new-object writes when GROUNDING_ENFORCE=true). Choose a mode: • change → extending/modifying an EXISTING object: exact signature, existing CoC wrappers, eligibility, recommended strategy, naming, patterns. Replaces the analyze→search→info→generate loop. • create → a NEW object: collision check, naming with auto-prefix, similar objects, EDT suggestions, reusable labels, mined property defaults.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalYesOne-sentence description of the intent. Example (change): "Add CoC on CustTable.validateWrite". Example (create): "Parameter table for the Contoso import feature."
modeYeschange = extend/modify an existing object; create = a brand-new object.
operationNo[change] The modify operation you intend to run; its full parameter contract comes back in THIS response, so no separate op-spec call. Defaults to add-method when methodName is given.
fieldsHintNo[create] For tables/views: planned field names — each gets EDT suggestions from the index.
methodNameNo[change] Target method name when the change involves a specific method (CoC or event handlers). Example: "validateWrite".
objectNameYes[change] Name of the object to extend/modify (e.g. "CustTable"). [create] Proposed BASE name WITHOUT model prefix (same value you would pass to d365fo_file create).
objectTypeNo[change] D365FO object type — auto-detected when omitted. [create] REQUIRED — type of the new object.
proposedNameNo[change] Proposed name for the new extension class/object. When provided, naming validation runs.
Behavior5/5

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

Annotations declare readOnlyHint=true and openWorldHint=false, and the description does not contradict them. It adds valuable behavioral details: the 30-min TTL for the groundingToken, its requirement for writes under a config flag, and the fact that the response embeds full parameter contracts, which goes beyond the annotations.

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?

The description is densely informative but well-structured with bolded mode names and bullet points. It front-loads the core purpose and TTL requirement, and every sentence serves a distinct explanatory purpose without redundancy.

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?

Given there is no output schema, the description compensates by enumerating the kinds of outputs for each mode (signature, wrappers, eligibility, collision check, naming, etc.). It also explains the groundingToken's role, providing sufficient context for an agent to anticipate what the tool returns and when to invoke it.

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 parameters are already well-documented. The description adds useful cross-tool semantics (e.g., objectName 'same value you would pass to d365fo_file create'), notes that operation's full contract returns in the response, and explains mode-specific defaults, enhancing the schema's field descriptions.

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?

The description clearly identifies the tool as a 'ONE-call context aggregator' that prepares grounded context for change or create operations. It specifies the exact two modes (change/create) and what each delivers, and explicitly distinguishes itself from the analyze→search→info→generate loop seen in sibling tools.

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?

The description provides clear when-to-use guidance: it replaces a multi-step loop and is required for writes when GROUNDING_ENFORCE=true. It explains when to choose 'change' vs 'create', and each mode's purpose is spelled out, giving the agent explicit decision criteria.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dynamics365ninja/d365fo-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server