Skip to main content
Glama

create-table-from-xlsx

Destructive

Loads an XLSX or CSV file into a new database table, with options to insert rows, set text width, and replace or fail if the table exists.

Instructions

dbabrain common.cli create-table-from-xlsx: A spreadsheet or CSV loaded into a new table. server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • target: The machine or instance: a server_id, or <db_type> <ip>[:port].

  • credential_name: Which login in users.json; default: the instance's own.

  • sql_access: How to reach the SQL engine, overriding the instance's block.

  • database_name: One database.

  • schema: The schema.

  • table_name: The table; generated when absent.

  • file_path: The file here.

  • file_base64: Or its bytes.

  • delimiter: csv: the delimiter.

  • if_exists: fail | replace.

  • load_rows: Insert the rows, not just create the table.

  • max_rows: At most this many rows.

  • text_length: The width of every text column.

  • timeout_seconds: How long to wait.

  • connection: The database login, complete: db_type, host, port, username, password - and, where they apply, database, instance_name, service_name, sqlserver_driver, sqlserver_tls_verify and sql_access (the 8i bridge); server_id an...

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create-table-from-xlsx"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds context the annotations cannot: login material is never carried in the request, `if_exists: replace` will overwrite an existing table, and emergency-listed operations demand `confirm` and `reason`. The generic sentence 'Changes or removes something' is boilerplate, but the credential-sourcing and confirm-requirement details are genuinely useful behavioral disclosure.

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

Conciseness3/5

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

The field list is front-loaded and earns its space, but the opening CLI namespace prefix, the dangling fragment describing the operation, and the boilerplate 'Changes or removes something.' add noise, and the description is cut off mid-word. Structure is list-oriented and scannable, but not tight.

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?

An output schema exists, so return values need not be explained, and the parameter enumeration covers the meaningful request surface for a create-and-load operation. Combined with the credential and confirm context, an agent has enough to form a correct call, aside from the truncated tail.

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?

The input schema exposes only an untyped `request` object at 0% description coverage, so the description carries the full burden and largely meets it, enumerating target, credential_name, sql_access, database_name, schema, table_name, file_path/file_base64, delimiter, if_exists, load_rows, max_rows, text_length, timeout_seconds and connection with per-field meaning. It loses a point because the final `connection` entry is truncated mid-sentence and defaults/semantics for several fields are only sketched.

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 states a concrete verb+resource: loading a spreadsheet or CSV into a new table, with `table_name` generated when absent. It is somewhat undermined by the fragmentary phrasing ('A spreadsheet or CSV loaded into a new table') and the leading CLI namespace noise, but an agent can still tell this creates and populates a table. No sibling (e.g. create-db-docker) is named as an alternative, so differentiation is absent.

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?

It gives real operational guidance: the server is named via `server_id` or `target`, credentials are resolved from the node's inventory/secret store so no password travels in the request, and emergency-operations commands require `confirm: "yes"` plus a `reason`. What is missing is any when-to-use-this-instead-of guidance relative to the other creation/loading tools, and no prerequisites or format constraints for the source file.

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

Deploy Server

Other Tools