Skip to main content
Glama
sdebruyn

fabric-dw-mcp-cli

by sdebruyn

create_table

Create a new SQL table in a Fabric Data Warehouse by running a read-only SELECT or WITH query as CREATE TABLE AS SELECT, with built-in safety checks.

Instructions

Create a new SQL table via CTAS (CREATE TABLE AS SELECT).

Only supported on Fabric Data Warehouses (not SQL Analytics Endpoints). The service rejects SQL Analytics Endpoints with a ToolError.

CAUTION: select_body is executed verbatim as DDL on the warehouse. Ensure the body matches the user's intent before calling this tool.

select_body must be a single read-only SELECT or WITH (CTE) statement. The guard is always on and fail-closed: a write keyword (DELETE, DROP, INSERT, etc.) or a semicolon anywhere in the body is rejected, even inside a string literal or quoted identifier. If a legitimate query body contains a write keyword (e.g. a column alias 'DELETE'), rewrite the expression to avoid the keyword.

When cluster_by is supplied, the DDL becomes CREATE TABLE … WITH (CLUSTER BY ([c1], [c2])) AS SELECT …. Column existence is not validated for CTAS because the result columns come from the SELECT and are not known ahead of time.

Args: workspace: Workspace name or GUID. item: Warehouse name or GUID. SQL Analytics Endpoints are rejected. qualified_name: Dot-separated qualified table name, e.g. dbo.sales. select_body: Single read-only SELECT or WITH (CTE) statement for the CTAS source. Write keywords and semicolons are rejected fail-closed, even inside string literals or quoted identifiers. cluster_by: Optional list of column names for the CLUSTER BY clause (up to 4).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemYes
workspaceYes
cluster_byNo
select_bodyYes
qualified_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description carries the full behavioral disclosure burden and does so thoroughly. It reveals that select_body is executed verbatim as DDL, that the guard is fail-closed and rejects write keywords and semicolons even inside literals, and that column existence is not validated for CTAS. It also explains the exact DDL transformation when cluster_by is supplied.

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 long but every section earns its place given the high-risk DDL execution. The key caution is front-loaded early, followed by the guard mechanics and then the parameter details. The warning about write keywords is repeated briefly in Args but that repetition reinforces a safety-critical point rather than wasting space.

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?

The tool combines DDL execution, platform restrictions, and a security guard, all of which are disclosed. The description explains the CTAS behavior, the fail-closed validation, the endpoint rejection, the cluster_by DDL shape, and the column validation caveat. Since an output schema exists, return-value details are not required, and nothing essential is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate for the bare input schema, and it does. Each parameter (workspace, item, qualified_name, select_body, cluster_by) gets a meaningful explanation, including the example for qualified_name, the single-read-only-SELECT constraint, and the cluster_by limit of 4 columns.

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 states a specific verb and resource: 'Create a new SQL table via CTAS (CREATE TABLE AS SELECT).' It clearly distinguishes this from siblings like create_empty_table by emphasizing the SELECT-based creation method. The Fabric-specific scope further sharpens what the tool does.

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 explicitly states where the tool is supported (Fabric Data Warehouses) and where it is not (SQL Analytics Endpoints), including the resulting ToolError behavior. It also explains when select_body is acceptable and warns about the guard, giving clear context for use. It does not name a specific alternative tool for non-CTAS table creation, but the exclusion is clear enough.

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/sdebruyn/fabric-dw-mcp-cli'

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