get_attribute_metadata
Read a Dataverse column's JSON type definition and limits, including MaxLength, MinValue, MaxValue, and precision, to check values before writes.
Instructions
Read the definition of one column, read-only, as the JSON Dataverse returns for its type (@odata.type), with every property of that type. Its limits come with it: MaxLength for String and Memo columns, the length a write is checked against (not DatabaseLength); MinValue and MaxValue for numbers, rounded to ±9223372036854776000 for BigInt; Precision, Format and the rest. Choice options are not included; read them with get_picklist_options, which also returns the status transitions of a Status column. A table or column that does not exist is an error. Use it before writing a value whose size the column may limit; get_entity_metadata lists all columns of a table.
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": {
"entity_logical_name": "<entity_logical_name>",
"attribute_logical_name": "<attribute_logical_name>"
},
"name": "get_attribute_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_logical_name | Yes | Logical name of the entity (e.g. 'contact') | |
| attribute_logical_name | Yes | Logical name of the column (e.g. 'firstname') |