Skip to main content
Glama
HorizunGroup

Horizun PBI MCP

Official
by HorizunGroup

pbi_add_table_from_source

Create a Power BI table from an external database or API by specifying source, connection details, and columns. Supports SQL Server, PostgreSQL, OData, and Web JSON.

Instructions

Crea una tabla apuntando a una BASE DE DATOS o API externa.

source: sqlserver | postgresql | odata | web_json.

  • sqlserver/postgresql: server + database + (schema/source_table o, solo en sqlserver, native_query con plegado activado).

  • odata: url del ENTITY SET (…/odata/Presupuestos), no la raiz.

  • web_json: url que devuelve un array de objetos; json_path desciende hasta el (["data","rows"]). Tipado con cultura en-US fija: JSON escribe numeros sin cultura, y la del sistema es el bug del 10527.52 que se vuelve diez millones.

columns ([{name, type}]) es OBLIGATORIO: sin credenciales no se puede leer el esquema de la fuente, y las columnas no se inventan.

La verdad de las credenciales, por delante: la consulta queda escrita y validada, pero el PRIMER refresh lo completa una persona en Desktop —pedira credenciales y nivel de privacidad, que viven en Desktop, no en el .pbip—. Hasta entonces la tabla existe sin datos y este servidor no puede verificar la conexion. Prometer otra cosa seria mentir.

Escribe TMDL: requiere el proyecto CERRADO en Desktop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
schemaNodbo
serverNo
sourceYes
columnsYes
dry_runNo
databaseNo
json_pathNo
overwriteNo
request_idNo
table_nameYes
descriptionNo
native_queryNo
source_tableNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations only provide hints (readOnlyHint=false, destructiveHint=false, etc.), but the description goes far beyond them. It discloses critical behavior: the query is written and validated, but the first refresh requires manual credential entry in Desktop, the table exists without data until then, and the server cannot verify the connection. It also states that TMDL requires the project to be closed in Desktop. This is exceptional transparency.

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?

The description is well-structured with a lead sentence, bullet-like source-specific instructions, and a bolded 'truth about credentials' note. Every sentence adds value; there is no fluff or repetition. The use of markdown-style highlighting makes it easy to scan despite its length.

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?

For a complex tool with 14 parameters and no schema-level descriptions, this description is remarkably complete. It covers the main use cases, the nuance of credentials and refreshes, and the prerequisite of a closed Desktop project. Given an output schema exists, the lack of return-value details is acceptable. The description leaves no major operational gaps.

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

Parameters4/5

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

Schema coverage is 0%, so the description carries the full burden. It explains the meaning and constraints for core parameters: source, server, database, schema, source_table, native_query, url, json_path, and columns. It clarifies json_path traversal, type culture nuances, and why columns must be explicit. However, some parameters (table_name, dry_run, overwrite, request_id, description) are not described, though their names are self-explanatory.

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?

The description opens with a specific verb and resource: 'Crea una tabla apuntando a una BASE DE DATOS o API externa.' This clearly distinguishes it from sibling `pbi_add_table_from_file` by indicating the source type (external DB/API vs file). The supported source types are enumerated, making the tool's scope unambiguous.

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

Usage Guidelines4/5

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

The description gives concrete guidance for each source type (sqlserver, postgresql, odata, web_json) and explains required parameters (e.g., columns mandatory). It also notes that native_query is only for sqlserver and that the project must be closed in Desktop. However, it does not explicitly contrast with pbi_add_table_from_file or specify when to choose this tool over alternatives beyond the source type.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HorizunGroup/horizun-pbi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server