Skip to main content
Glama
Dataverse Mcp Server

Dataverse Mcp Server

add_attribute

Adds a column to an existing Dataverse table and returns its URL. Use it to extend a table's schema after creation; verify table and logical name first with get_entity_metadata.

Instructions

Add one column to an existing table and return the new column's URL. A table that does not exist or a logical name that is taken is an error; get_entity_metadata shows both. To create a table together with its columns use create_entity, and to change a column later update_attribute. The column lands in the Default Solution; it is in your solution only if its table was added there with all its subcomponents, otherwise add it to the solution by hand.

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": "<attribute>"
    },
    "name": "add_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
attributeYesThe column to add: logical_name with the publisher prefix, type and display_name, plus the settings for its type (max_length, options, date_format and so on).
entity_logical_nameYesLogical name of the entity

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.3
    • addedInput schema / properties / attribute / description
      Added value: +"The column to add: logical_name with the publisher prefix, type and display_name, plus the settings for its type (max_length, options, date_format and so on)."
  2. Changed1 schema field changedv0.9.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed2 schema fields changedv0.7.1
    • addedInput schema / properties / attribute / properties / global_option_set
      Added value: +{
      +  "description": "Picklist only: bind the column to an existing Global OptionSet by its set name (e.g. 'contoso_sourceset') so the column shares one org-wide list instead of a private copy. Mutually exclusive with options.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / attribute / properties / options / description
      Previous value: -"Options for Boolean (2 items: false=0, true=1) or Picklist types"New value: +"Options for Boolean (2 items: false=0, true=1) or Picklist types. Creates a Local OptionSet owned by this one column; mutually exclusive with global_option_set."
  4. First observedv0.5.0

TDQS

A4.3/5.0
Behavior4/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 disclose non-obvious behavior: the operation fails on missing tables or name collisions, and the new column lands in the Default Solution rather than the caller's solution unless the table was added there. It stops short of stating permission requirements or that the write is irreversible, which would be the remaining gap.

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?

Three front-loaded sentences: purpose plus return value first, then error preconditions, then alternatives, then the solution caveat. Every sentence carries information, though the final solution-membership sentence is long and clause-heavy.

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?

No output schema exists, so stating that the URL is returned matters, and error and solution-placement behavior are covered. For a mutation with a fully documented nested schema, this is nearly complete; only permission/authorization expectations are absent.

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%, so the nested attribute object (type, options, date_behavior, global_option_set, etc.) is already fully documented in the schema. The description only restates that attribute carries logical_name with publisher prefix, type, display_name, and type-specific settings, adding marginal 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?

"Add one column to an existing table and return the new column's URL" gives a specific verb (add), resource (column/table), and outcome (URL). It is immediately distinguishable from create_entity (table + columns) and update_attribute (change a column later).

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?

Explicit routing is provided: use create_entity to create a table together with its columns, and update_attribute to change a column afterwards. The error preconditions (nonexistent table, logical name already taken) are paired with the sibling that reveals them, get_entity_metadata.

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