Skip to main content
Glama

dmf_import_file

Destructive

Bulk-import a CSV file into a D365 F&O entity through the Data Management package REST API. Builds the package (Manifest + header + CSV) in memory, uploads it to Azure blob, then calls ImportFromPackage which AUTO-CREATES the data project from the manifest. Runs in batch; the tool polls until completion and returns the final status plus an error-keys file URL when rows fail. Provide either filePath (a .csv on disk) or inline csvContent. Resolve the entity name from the KB (find_entity_for_table) -- do not invent it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
executeNoExecute the import after staging (true) or stage only (false). Default true.
filePathNoPath to a .csv file on disk. Provide this OR csvContent.
overwriteNoOverwrite an existing project definition with the same id. Default true.
csvContentNoInline CSV content (header row + data). Provide this OR filePath.
entityNameYesTarget entity name as known to DMF (the entity, not the OData set), e.g. 'Customers V3'.
legalEntityYesLegal entity / company id to import into, e.g. 'USMF'.
definitionGroupIdNoDMF definition group (data project) id. Default: auto-generated from entity + timestamp.
pollTimeoutSecondsNoMax seconds to poll for completion before returning the executionId. Default 300.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already carry destructiveHint and openWorldHint, so the bar is lower. The description adds valuable behavioral context: builds package in memory, uploads to Azure blob, calls ImportFromPackage, auto-creates the data project, polls to completion, and returns an error-keys file URL on failures. It does not contradict the annotations and supplies meaningful side-effect detail beyond what annotations express.

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 four sentences, front-loads the core purpose, and each sentence earns its place by describing mechanism, execution behavior, or invocation guidance. There is no fluff or repetition beyond what is useful for a complex, side-effectful tool.

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 the tool's complexity, the description covers the key invocation inputs, execution flow, polling, and failure reporting well. The main gaps are the lack of explicit treatment of the execute=false staging-only path and the absence of mention of connection prerequisites; however, annotations and schema mitigate most of these omissions, and the description is otherwise quite 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?

Schema coverage is 100%, so the baseline is 3. The description adds genuine value by emphasizing the filePath/csvContent exclusivity and by instructing the agent to resolve entity names via find_entity_for_table rather than inventing them. This reduces the risk of incorrect entityName values beyond what the schema alone provides.

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 opens with a specific verb and resource: 'Bulk-import a CSV file into a D365 F&O entity through the Data Management package REST API.' This clearly distinguishes the tool from siblings like dmf_export_package, dmf_transform_excel, and generate_data_entity. The auto-create and polling behavior further sharpen what this specific tool does.

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

Usage Guidelines3/5

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

The description conveys a clear batch-CSV-DMF use case and gives practical guidance such as 'Provide either filePath or csvContent' and 'Resolve the entity name from the KB... do not invent it.' However, it does not explicitly state when to prefer this tool over alternatives like odata_upsert_rows or dmf_create_data_project, nor does it name sibling exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.1/5.0
Disambiguation4/5

Most tools have distinct purposes and clear triggers, reducing ambiguity. For example, PR-related tools are separated into analysis, listing, commenting, and dependency mapping. However, some overlap exists between find_references, find_extensions, and find_callers, which could confuse an agent without careful descriptions.

Naming Consistency4/5

Tool names follow a consistent snake_case pattern with verb_noun structure within subgroups (e.g., ado_*, find_*, search_*, generate_*). There is no mixing of camelCase or other styles, though the variety of prefixes slightly reduces predictability.

Tool Count3/5

With 38 tools, the server feels slightly over-scoped for its domain. While each tool has a specific function, the number is high compared to typical well-scoped servers (10-15 tools). Some tools like find_references and find_callers could be consolidated.

Completeness4/5

The tool set covers a broad range of D365 F&O development and DevOps tasks, including code search, analysis, security, performance, upgrades, and work item management. Minor gaps exist, such as the absence of direct object modification or batch job management, but the core workflows are well covered.