Skip to main content
Glama

model_delete_relationship

Deletes a relationship from a Power BI .pbip model by relationship ID or by from/to table and column pair, removing the link from the model.

Instructions

Delete a relationship by ID or by (fromTable, fromColumn, toTable, toColumn).

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

Input Schema

NameRequiredDescriptionDefault
idNoRelationship GUID
toTableNo
toColumnNo
fromTableNo
fromColumnNo
projectPathYesPath to the .pbip file or project root folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 for a destructive mutation. It does not disclose whether the deletion is permanent, whether it fails or silently no-ops when the relationship is absent, whether the project must be saved afterward, or what the response contains. Only the word 'Delete' signals destructiveness.

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?

A single front-loaded sentence with no filler, and the two identification modes are stated immediately. It is arguably too terse for a destructive six-parameter tool, but there is no wasted wording.

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?

For a destructive mutation with no annotations, no output schema, and 33% schema coverage, the description is thinner than ideal: it never explains the required projectPath or error semantics. It is complete enough to know what the tool does and how a relationship can be addressed, but not complete enough to call it safely without opening the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% across six parameters, so the description must compensate. It does add real meaning by grouping the four table/column fields as an alternative composite key to `id` — grouping that is not obvious from a flat schema where every field is optional except projectPath. But it omits projectPath entirely and does not say whether partial combinations (e.g. id plus fromTable) are valid or which inputs are required together.

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?

The description names a specific verb (delete) and resource (relationship), and enumerates the two accepted identification modes: GUID or the four-part (fromTable, fromColumn, toTable, toColumn) key. This is clearly distinguishable from the sibling model_upsert_relationship by operation, though it never explicitly names an alternative.

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

Usage Guidelines3/5

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

The 'by ID or by (...)' phrasing implies the caller must pick one identification strategy, which is mild usage guidance. However, there is no statement of when to prefer one over the other, no prerequisites such as projectPath being mandatory, and no mention of what happens on a failed delete.

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