suggest_edt
WHEN: adding a new field to a table -- find the best existing D365 EDT to extend instead of using raw primitives (str, int64, real, date). Triggers: 'what EDT for', 'which EDT should I extend', 'quel EDT pour', 'quel type étendu', 'EDT for a field'. D365 best practice mandates EDT reuse over raw primitive types. Call BEFORE declaring any field with a primitive type. Returns ranked candidate EDTs with their base type, label, and model.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fieldName": "<fieldName>",
"purpose": "<purpose>"
},
"name": "suggest_edt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topK | No | Number of EDT candidates to return (default: 8, max: 20) | |
| purpose | Yes | Purpose of the field in plain language, e.g. 'customer account number', 'approval status enum', 'invoice amount in transaction currency' | |
| baseType | No | Optional: D365 primitive base type to filter by, e.g. 'str', 'int64', 'real', 'date', 'enum'. Leave empty to search all types. | |
| fieldName | Yes | Field name or concept, e.g. 'AccountNum', 'vendorId', 'itemCode', 'approvalStatus' |