Skip to main content
Glama

find_entity_for_table

Read-onlyIdempotent

WHEN: developer needs to integrate via OData and wants to find the entity name for a given table. Also generates a new entity template when none exists and generateIfMissing=true. Triggers: 'which entity exposes', 'OData entity for', 'find entity for', 'quelle entité expose', 'DMF entity for', 'create data entity', 'expose via OData', 'generate entity', 'entité de données'. Find D365 F&O data entities that expose a given table for OData/DMF integrations. Answers: 'Which entity exposes SalesTable for OData?' Scans all indexed AxDataEntityView objects to find entities with matching data sources. Returns entity name, public entity name (for OData URL), IsPublic status, key fields, and all data sources. Essential for integration development. Set generateIfMissing=true to auto-generate an AxDataEntityView XML template when no public entity is found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableNameYesTable name to find entities for, e.g. 'SalesTable', 'CustTable', 'VendInvoiceJour'
maxResultsNoMaximum results (default: 15, max: 30)
generateIfMissingNoWhen true and no public entity is found, generates a new AxDataEntityView XML template for the table. Default: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / generateIfMissing
      Added value: +{
      +  "default": false,
      +  "description": "When true and no public entity is found, generates a new AxDataEntityView XML template for the table. Default: false.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

The description discloses the scanning behavior ('Scans all indexed AxDataEntityView objects') and the conditional generation side effect ('generateIfMissing=true to auto-generate an AxDataEntityView XML template'). Since readOnlyHint, idempotentHint, and destructiveHint annotations already cover the safety profile, this adds useful behavioral context without contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with WHEN and the core find purpose, and the structure is organized. However, it is somewhat long and repeats the generateIfMissing guidance in the opening and closing sentences; the trigger list is extensive and 'Essential for integration development' adds little value.

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?

Despite having no output schema, the description enumerates the returned fields and explains the search mechanism and the conditional template generation. It leaves minor gaps, such as explicit behavior when no entity is found and generateIfMissing=false, but overall it is complete for a read-only lookup tool with schema-documented parameters.

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

Parameters3/5

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

The input schema covers 100% of parameters with descriptions, so the baseline is 3. The description adds operational context for generateIfMissing ('auto-generate ... when no public entity is found') but does not add meaning beyond what the schema already provides for tableName or maxResults.

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 states a specific verb and resource: 'Find D365 F&O data entities that expose a given table for OData/DMF integrations,' and specifies the returned fields: entity name, public entity name, IsPublic status, key fields, and data sources. It also distinguishes the find-by-table use case from sibling creation/inspection tools by adding the optional generateIfMissing behavior.

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 opens with explicit WHEN guidance: 'developer needs to integrate via OData and wants to find the entity name for a given table,' and provides trigger phrases and an example question. It does not explicitly name alternative tools or list when-not-to-use, but the context is clear enough to route an agent to this tool.

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.