Skip to main content
Glama
Dataverse Mcp Server

Dataverse Mcp Server

get_picklist_options

Retrieve option values and labels for Dataverse Choice, Status, State, or MultiSelect columns. Identify local versus Global OptionSet binding and see status transition rules.

Instructions

Read a Local or Global OptionSet as { option_set: { name, is_global, metadata_id }, options: [{ value, label }] }. Use is_global to tell whether a column holds a local copy of the values or is bound to a shared Global OptionSet — matching values alone do not prove a binding. Works for Choice, Status, State and MultiSelect columns; a column or option set that does not exist is an error. get_entity_metadata shows which columns of a table are choices. A Status column (statuscode) also returns the table's status transition matrix: enforce_state_transitions next to options, and on each option state (the statecode value it belongs to) and transitions (the status reason values a record may move to from it). transitions [] means no move from that status reason is allowed. When enforce_state_transitions is false the matrix does not apply, whatever transitions holds: null, or a list the option still stores. To get one record's allowed transitions, read its statuscode with get_record, then take that option's transitions.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_picklist_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
option_set_nameNoGlobal OptionSet name. Mutually exclusive with entity_logical_name/attribute_logical_name.
entity_logical_nameNoEntity logical name (Local OptionSet; pair with attribute_logical_name). Mutually exclusive with option_set_name.
attribute_logical_nameNoPicklist attribute logical name (Local OptionSet; pair with entity_logical_name). Mutually exclusive with option_set_name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
  2. First observedv0.5.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: it discloses the return structure, explains that is_global distinguishes a real binding from a coincidental value match, and documents the error behavior for missing columns. It also fully explains the Status column matrix — enforce_state_transitions, per-option state/transitions fields, empty-transition semantics, and the caveat that the matrix does not apply when the flag is false.

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 the return shape, then semantics, then the Status-matrix edge cases, in a logical order with no filler. It is dense and long — the state-transition explanation spans several sentences — but each sentence conveys a distinct behavioral fact rather than restating the schema.

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?

There is no output schema, so the description must supply the return contract, and it does so in full, including nested field names and the Status matrix structure. For a dual-mode read tool with a conditional return extension, nothing an agent needs to call it or interpret results is missing.

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 coverage is 100% and the schema already documents the mutual exclusivity between option_set_name and entity/attribute pairs. The description reinforces the local-vs-global split but adds no syntax, format, or naming-convention detail beyond what the schema states, so the baseline 3 applies.

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 a Local or Global OptionSet') and immediately gives the return shape as { option_set, options }, so the agent knows exactly what comes back. It also distinguishes itself from siblings by naming get_entity_metadata as the way to discover which columns are choices.

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 covers both invocation modes (global via option_set name, local via entity/attribute), states the failure condition ('a column or option set that does not exist is an error'), and routes the agent to get_entity_metadata for discovery and to get_record for per-record transition lookups.

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