Skip to main content
Glama

Add Excel Table

add_excel_table

Add an Excel worksheet as a table to a Power BI project, using the file's column types; leave sheet empty to select the first worksheet.

Instructions

Add a table to a project, loaded from one sheet of an .xlsx file (types come from the Excel column types). sheet='' = first sheet.

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": {
      "pbip_path": "<pbip_path>",
      "table_name": "<table_name>",
      "xlsx_path": "<xlsx_path>"
    },
    "name": "add_excel_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetNo
pbip_pathYes
xlsx_pathYes
table_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

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. It does disclose two useful traits — column types are inferred from Excel column types and an empty sheet selects the first sheet — but says nothing about whether this mutates the .pbip file on disk, overwrites an existing table, requires the file to be closed, or what errors arise from a bad path.

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?

Two compact sentences, front-loaded with the core action and followed by the two most decision-relevant details. The phrasing is slightly compressed ('project' and 'pbip_path' are never linked), but nothing is wasted.

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?

An output schema exists, so return values need not be described. Still, for a write tool with no annotations and undecorated parameters, the definition leaves key invocation details (project path semantics, overwrite behavior, type-inference limits) to guesswork.

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 description coverage is 0% across four parameters, so the description must compensate. It only clarifies 'sheet' (empty = first sheet); pbip_path, xlsx_path and table_name get no explanation of expected format, relative vs absolute paths, or naming constraints.

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 and resource ('Add a table to a project') plus the data source ('loaded from one sheet of an .xlsx file'), so an agent can tell it apart from add_csv_table and add_date_table without opening schemas. It stops short of naming those siblings explicitly.

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 Excel-specific framing implies when to pick this over the CSV/date variants, and the sheet='' default is a helpful usage hint. However, there is no explicit when-to-use/when-not guidance, no prerequisite about the project existing, and no statement of what happens on duplicate table names.

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