Skip to main content
Glama

Add Csv Table

add_csv_table

Add a CSV-sourced table to a Power BI .pbip project via Power Query; column types are inferred from the file, and refreshing in Power BI Desktop loads the data.

Instructions

Add a table to a project, loaded from a CSV via Power Query. Types are inferred from the CSV. pbip_path may be the .pbip file or the project folder. Refresh in Power BI Desktop loads the data.

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

Input Schema

NameRequiredDescriptionDefault
csv_pathYes
encodingNo
delimiterNo,
pbip_pathYes
table_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 behavioral burden and does disclose two non-obvious traits: column types are inferred rather than declared, and the data is not populated until the user refreshes in Power BI Desktop. It also clarifies that pbip_path accepts either file or folder. It omits error/conflict behavior (e.g., existing table name) and any permission requirements, keeping it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the core action front-loaded, followed by the two behavioral caveats an agent needs. No filler and no repetition of the tool name.

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?

For a 5-parameter write operation the description covers the important surprises (type inference, deferred data load, flexible pbip_path) and an output schema exists so return values need no explanation. The remaining gap is conflict semantics for an existing table_name and documentation for the optional encoding/delimiter parameters.

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 0% across five parameters, so the description must compensate. It does add real meaning for pbip_path (accepts .pbip file or project folder) and implies the role of csv_path and table_name, but encoding and delimiter — both with defaults — are never mentioned, leaving two parameters undocumented anywhere.

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 opens with a specific verb and resource ('Add a table to a project') and names the ingestion mechanism ('loaded from a CSV via Power Query'), which implicitly separates it from CSV-less siblings like add_excel_table or add_date_table. It stops short of explicitly contrasting those siblings, so it lands one step below the top.

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?

Usage is only implied: an agent can infer this is the tool for CSV-sourced tables, and the closing sentence hints that the table is a shell until refreshed in Desktop. There is no explicit 'use this when…' statement, no exclusion of alternatives, and no statement about what happens if the table already exists.

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