Skip to main content
Glama

object_patterns

Read-only

Recommend, specify, and validate D365FO form and table patterns. Use the pattern advisor to pick the right form pattern, get structure specs, or validate AxForm XML offline.

Instructions

Pattern toolkit. Choose a domain: • table → common field types, index patterns and relation structures for D365FO tables. Filter by tableGroup (Main, Transaction, …) or similarTo a given table. • form → form-pattern toolkit; pick an action:

  • analyze → pattern advisor + usage analysis. RECOMMEND (preferred for a new form): pass recommend={entityKind, hasHeaderLines, fieldCount, usageIntent, tableName} for the right pattern via the Microsoft decision tree + reference forms to clone. Or filter by formPattern / dataSource / similarTo.

  • spec → full structure spec of a pattern or sub-pattern (required hierarchy/ordering, allowed children, reference forms, lifecycle). Call after analyze, before building.

  • validate → structural validator of AxForm XML (<50 ms, offline): container hierarchy/order, sub-patterns, PatternVersion. Returns FP001-FP010 violations. Call before action=create on d365fo_file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlNo[validate] Complete AxForm XML to validate. Provide this OR formName/filePath.
limitNo[analyze] Maximum number of pattern examples (default: 10)
actionNo[form] Which form-pattern operation to run. repair = auto-fill missing required controls.
domainNotable = table field/index/relation patterns; form = form-pattern toolkit (set action). Optional — inferred from the other params (action/pattern/xml/formName → form; tableGroup → table). ⚠️ This is NOT a free-form "pattern type": a concept like "number-sequence"/"SysOperation" belongs to get_knowledge, not here.
patternNo[spec] REQUIRED. Pattern name (id, xmlName, or alias) — e.g. "SimpleList", "DetailsMaster", or a sub-pattern like "FieldsFieldGroups".
filePathNo[form/validate] Explicit path to an AxForm XML file (e.g. a freshly created form not yet indexed).
formNameNo[validate] Name of an indexed form — XML is loaded from the metadata store.
recommendNo[analyze] Pattern advisor: describe requirements, get a recommended pattern + reference forms to clone.
similarToNo[table] table name to find similar table patterns; [form/analyze] form name to find similar form patterns.
dataSourceNo[form/analyze] Table name - find forms using this table
tableGroupNo[table] Table group type to analyze (choose one).
formPatternNo[analyze] D365FO form pattern to analyze
Behavior4/5

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

The description adds valuable context beyond the readOnlyHint/openWorldHint annotations: validate returns FP001-FP010 violations and is fast/offline, analyze recommends via Microsoft decision tree, and spec provides structure details. However, it omits the 'repair' action (only present in the action parameter enum/description), which is a minor transparency gap.

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 well-structured with bullets per domain and action. Each sentence adds useful information (timing, output, constraints) and is front-loaded with the core purpose. Despite its length, it is efficient for the tool's complexity.

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?

The description covers the main actions (analyze, spec, validate) with return values and usage timing, plus the table domain. The only missing piece is the 'repair' action, which is only documented in the schema's parameter description. Given the rich schema, this is a minor omission; otherwise, it is complete.

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?

With 100% schema description coverage, the baseline is 3, but the description adds depth by explaining the domain parameter (not free-form, belongs to get_knowledge) and highlighting the recommend object as preferred for new forms. It does not fully repeat the schema but complements it.

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 states the tool is a 'Pattern toolkit' for D365FO tables and forms, with specific sub-purposes for each domain (table patterns, form analysis/spec/validation). It distinguishes itself from siblings by explicitly noting that concepts like 'number-sequence' belong to get_knowledge, not here.

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 gives explicit when-to-use guidance: for a new form, pass recommend for pattern analysis; for spec, 'Call after analyze, before building'; for validate, 'Call before action=create on d365fo_file'. It also contrasts with get_knowledge, making the choice clear.

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