Skip to main content
Glama

bulk_import

Import large datasets from cloud or web storage (S3, Azure, Google, HTTP/HTTPS) into CockroachDB tables using CSV or Avro formats. Configure delimiters and headers for precise data handling.

Instructions

Bulk import data into a table from a file (CSV or Avro) stored in cloud or web storage. Supports S3, Azure Blob, Google Storage, HTTP/HTTPS URLs.

Args: table_name (str): Name of the table to import data into. file_url (str): URL to the data file (s3://, azure://, gs://, http://, https://, etc.). format (str): File format ('csv' or 'avro'). delimiter (str): CSV delimiter (default: ','). skip_header (bool): Whether to skip the first row as header (default: True).

Returns: A success message or an error message.

Example: bulk_import(ctx, table_name="users", file_url="s3://bucket/data.csv", format="csv", delimiter=";", skip_header=True)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
delimiterNo,
file_urlYes
formatYes
skip_headerNo
table_nameYes
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses that this is a write operation ('import data into'), mentions supported protocols, and hints at batch processing ('bulk'), but lacks details about permissions required, rate limits, transaction behavior, error handling, or what constitutes 'success' beyond a generic message.

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?

The description is well-structured with a clear opening sentence followed by categorized sections (Args, Returns, Example). It's appropriately sized for a 5-parameter tool, though the example could be more concise. Every sentence adds value without redundancy.

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?

For a data import tool with 5 parameters, no annotations, and no output schema, the description provides adequate basics but lacks depth. It covers what the tool does and parameter meanings, but misses important contextual details like authentication requirements for cloud storage, file size limits, import behavior (append/replace), and specific error scenarios.

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 description coverage is 0%, so the description must compensate. It provides clear semantic meaning for all 5 parameters: table_name identifies the target, file_url specifies the source with protocol examples, format defines allowed values, delimiter explains CSV-specific behavior, and skip_header clarifies header handling. Default values are also documented, though not all parameter constraints are fully detailed.

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 clearly states the specific action ('bulk import data into a table'), the resource ('table'), and the source ('from a file stored in cloud or web storage'). It distinguishes this from sibling tools like create_table or execute_query by focusing on data ingestion rather than schema manipulation or query execution.

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 description implies usage context by specifying supported file formats and storage locations, but doesn't explicitly state when to use this tool versus alternatives like execute_query for data insertion or when not to use it (e.g., for small datasets). No sibling tool comparisons or exclusions are provided.

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

Related 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/amineelkouhen/mcp-cockroach'

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