Skip to main content
Glama

model_upsert_table

Create or update a semantic model table in a .pbip project, adding physical or DAX calculated columns and an optional Power Query M or DAX table partition.

Instructions

Create or update a semantic model table (.tmdl) with columns (physical or DAX calculated) and an optional Power Query M or DAX calculated table partition.

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": {
      "projectPath": "<projectPath>",
      "tableName": "<tableName>"
    },
    "name": "model_upsert_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnsNoColumns to add or update
isHiddenNoHide table in report view
partitionNoTable partition definition
tableNameYesTable name
descriptionNoOptional table description
projectPathYesPath to the .pbip file or project root folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and for an upsert mutation it discloses very little. It does not say whether an update replaces the whole table and drops unspecified columns, merges them, or fails, nor whether changes are reversible, what permissions are needed, or what is returned on success.

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?

One front-loaded sentence with no filler, and the extra detail it does add earns its place. The nested parentheses around 'physical or DAX calculated' and 'M or DAX calculated table partition' make it slightly dense on a first read, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a six-parameter tool with nested objects, no annotations and no output schema, the description covers what it does and what it accepts, which is the core. The critical missing part is the update semantics for an existing table, since an agent cannot tell from either the description or the schema whether unspecified columns survive.

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 schema already documents all six top-level parameters and the nested column and partition properties. The description only summarizes that columns may be physical or DAX calculated and that the partition may be M or DAX, adding no syntax or format detail beyond what is written in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb pair (create or update) and resource (semantic model table, .tmdl), plus what the payload can contain: columns, physical or DAX calculated, and an optional M or DAX partition. That is enough to separate it from model_delete_table, model_upsert_relationship or dax_upsert_measure, but it never names or contrasts a sibling explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and nothing about prerequisites such as whether the project or table must already exist. Notably it does not say how the partition parameter relates to pq_set_table_query, even though both can write Power Query code, leaving the agent to guess which tool to pick.

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