Skip to main content
Glama
mafzaal

Dynamics 365 Finance & Operations MCP Server

by mafzaal

d365fo_get_database_schema

Retrieve table structures, columns, indexes, foreign keys, and statistics for the Dynamics 365 Finance & Operations database to understand schema before writing SQL queries.

Instructions

Get comprehensive schema information for the D365FO metadata database.

This tool provides detailed information about:

  • All database tables and their structures

  • Column definitions with types and constraints

  • Indexes and their purposes

  • Foreign key relationships

  • Table statistics (row counts, sizes)

  • FTS5 virtual table information

Use this tool to understand the database structure before writing SQL queries.

Args: table_name: Optional. Get schema for a specific table only. If omitted, returns schema for all tables. include_statistics: Include table statistics like row counts and sizes. include_indexes: Include index information for tables. include_relationships: Include foreign key relationships between tables. profile: Configuration profile to use (optional - uses default profile if not specified)

Returns: Dictionary with database schema

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileNodefault
table_nameNo
include_indexesNo
include_statisticsNo
include_relationshipsNo
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It accurately describes the tool as a read-only operation returning schema information and lists the data categories. It does not mention potential performance impacts or limitations, but given the nature of the tool, this is acceptable.

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 bullet points for the returned information, a clear usage statement, and a parameter list. It is concise yet complete, with no superfluous sentences.

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?

Given no output schema and no annotations, the description adequately covers purpose, parameters, usage context, and return value. It provides enough information for an AI agent to correctly select and invoke the tool.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description fully compensates by explaining each parameter: table_name for specific tables, include_statistics, include_indexes, include_relationships as boolean flags, and profile with its default behavior. This adds essential semantic meaning beyond the schema.

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 that the tool retrieves comprehensive schema information for the D365FO metadata database, listing specific details like tables, columns, indexes, foreign keys, and statistics. This specificity distinguishes it from sibling tools like d365fo_get_database_statistics or d365fo_get_table_info, which have narrower focus.

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?

The description advises using this tool to understand the database structure before writing SQL queries, providing clear context for its use. It does not explicitly state when not to use it or list alternatives, but the guidance is sufficient for an AI agent.

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/mafzaal/d365fo-client'

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