Skip to main content
Glama

get_knowledge

Read-only

Look up X++ knowledge for D365 F&O: query rulebook topics, diagnose errors with step-by-step fixes, and retrieve op-specs for file operations.

Instructions

X++ knowledge lookup. Choose a kind: • knowledge → queryable X++ rulebook: verified patterns, BP rules, AX2012→D365FO migration. Use BEFORE generating code. Topics incl.: select-statement, coc-authoring, bp-rules, sysoperation, event-handlers, workflow, number-sequences, security, sysda, form patterns. • error → diagnose a D365FO/X++ compiler or runtime error: structured root cause + step-by-step fix + corrected X++ example (TTS mismatch, UpdateConflict, CSUV1, SYS10028 missing next, overlayering, BP errors, …). Call this instead of guessing — X++ error semantics differ from C#/.NET. • op-spec → the parameter contract for ONE d365fo_file operation/objectType or ONE generate_object mode (topic = "add-index", "table", "scaffold:form", …). Those two tools deliberately do not ship their parameters inline; call this after picking the operation, before the call. Omit topic for the index of available topics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoknowledge = look up an X++ topic/rule; error = diagnose an error message; op-spec = parameter contract for a d365fo_file operation/objectType or generate_object mode.
topicNo[knowledge] REQUIRED. Topic to query — e.g. "batch job", "ttsbegin", "RunBase vs SysOperation", "set-based operations", "CoC", "data entities", "number sequences", "security", "temp tables", "today() deprecated", "query patterns", "form patterns". [op-spec] The operation / objectType / mode to look up.
formatNo[knowledge] concise = quick reference (default), detailed = full explanation with code examplesconcise
errorCodeNo[error] Optional error code (e.g. SYS10028, CSUV1, BPUpgradeCodeToday)
errorTextNo[error] REQUIRED. Full error message text as displayed in the X++ compiler or event log
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds meaningful behavioral context: it is a lookup/reference tool, not an execution tool. It describes what each mode returns (e.g., structured root cause + fix for errors, parameter contract for op-spec). It does not detail output formatting or rate limits, but for a read-only reference tool this is adequate.

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?

The description is well-structured with bullet points and front-loaded with the core purpose. It is somewhat dense but each sentence serves a purpose given the three modes. The organization keeps it scannable despite the length.

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

Completeness5/5

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

With no output schema, the description correctly carries the burden of describing return values: it mentions rulebook patterns for knowledge, structured root cause + fix + example for error, and parameter contract for op-spec. Combined with the annotations and sibling context, it is complete for an AI agent to decide when and how to invoke this tool.

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. The description adds value beyond the schema by specifying conditional requirements: topic is REQUIRED for knowledge, errorText is REQUIRED for error, and op-spec requires a topic. It also provides concrete examples of topic values, which helps the agent understand the expected input format.

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 starts with 'X++ knowledge lookup' and then clearly enumerates three distinct functions (knowledge, error, op-spec), each with specific topics. It explicitly distinguishes itself from sibling tools by noting that d365fo_file and generate_object do not ship parameters inline and that this tool provides their parameter contracts.

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 explicit usage timing: 'Use BEFORE generating code' for knowledge, 'Call this instead of guessing' for error diagnosis, and 'call this after picking the operation, before the call' for op-spec. It also names alternatives (d365fo_file, generate_object) and clarifies when this tool should be used relative to them.

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