Skip to main content
Glama
Dataverse Mcp Server

Dataverse Mcp Server

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

NameRequiredDescriptionDefault
entity_logical_nameYesLogical name of the entity (e.g. 'contact')
attribute_logical_nameYesLogical name of the column (e.g. 'firstname')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it declares the read-only nature, states that a nonexistent table or column is an error, and explains that MaxLength is the limit a write is validated against rather than DatabaseLength. It also discloses what is excluded (choice options) and who owns that data, plus BigInt rounding behavior.

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

Conciseness4/5

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

Front-loaded with verb, resource and read-only scope, and every sentence conveys a distinct fact (limits, exclusions, error case, when to use). Some sentences are semicolon-dense and could be split for readability, but nothing is redundant.

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?

Without an output schema, the description compensates by describing the return as the Dataverse type JSON and naming the specific properties an agent will care about (MaxLength, MinValue/MaxValue, Precision, Format) while flagging that choice options are absent. That is enough for an agent to call it and interpret the result.

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?

Schema description coverage is 100% and both parameters are documented with logical-name examples ('contact', 'firstname'), so the description correctly defers. It adds only implicit confirmation that the attribute is a column logical name, not format or case-sensitivity details 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?

States a specific verb and resource ('Read the definition of one column') and immediately scopes it ('read-only', '@odata.type' JSON) in a way that separates it from get_entity_metadata (all columns) and get_picklist_options (choice values). An agent can identify the tool without opening the schema.

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

Usage Guidelines5/5

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

Explicitly routes alternatives: choice options go to get_picklist_options, which also covers Status transitions, and full column listings go to get_entity_metadata. It also gives a concrete when-to-use rule ('Use it before writing a value whose size the column may limit').

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