Skip to main content
Glama
BeeL MCP server

BeeL MCP server

Official
by beel-es

beel_create_customer_import

Idempotent

Imports customers into a company from an uploaded CSV or Holded Excel file, creating records and reporting duplicates by tax identifier instead of creating them again.

Instructions

Imports customers into this company from an uploaded file.

  • source: the origin travels in the body. csv is a file following the import template, limited to 5 MB and 1,000 records; holded is an Excel (.xlsx) exported from Holded contacts, limited to 10 MB and 5,000 records. A file over either limit of its source is rejected as a whole with 400 (CSV_FILE_TOO_LARGE or TOO_MANY_RECORDS) and nothing is imported. A file over 12 MB answers 413 (FILE_TOO_LARGE) before it is read. A holded file that does not open as a workbook answers 422 INVALID_EXCEL_FORMAT, and one whose columns are not those of a Holded contacts export 422 INVALID_EXCEL_STRUCTURE.

  • This operation writes: the customers it accepts are created, and a record whose tax identifier already exists in this company is reported as a duplicate rather than created again, so re-importing the same file duplicates nothing.

  • Idempotency-Key: required on this operation.

  • Rehearsal: to see what would happen without writing anything, use POST .../customers/imports/preview, a separate operation with no effects at all — the import is never governed by a boolean flag.

BeeL API endpoint: POST /v1/companies/{company_id}/customers/imports (reference: https://docs.beel.es)

Input Schema

NameRequiredDescriptionDefault
bodyYes
company_idYesUnique identifier (UUID) of the company the operation acts on — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed.
idempotency_keyNoOptional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.10.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, but the description goes further: it states exactly what is created, that existing tax identifiers are reported as duplicates rather than re-created, that over-limit files are rejected as a whole, and it enumerates the 400/413/422 codes. The one defect is the claim that 'Idempotency-Key' is 'required on this operation', which conflicts with the schema's 'Optional idempotency key' and could make an agent always set it.

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 definition is front-loaded with the payload rules and organized into tight bolded bullets, so an agent can scan to the topic it needs. It is long, and the closing sentence about the import 'never being governed by a boolean flag' is defensive padding rather than information.

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 mutation tool with no output schema, the failure-mode coverage is unusually complete, but nothing describes what a successful response returns (created count, duplicate list, partial-failure reporting), which is exactly what the missing output schema would have provided. The internal inconsistency about whether the idempotency key is required also leaves the caller unsure of the correct request shape.

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 67%, so the schema already carries part of the burden, but the description adds real meaning for `source`: per-format file type, size and record caps, and the distinct error codes. It adds little about the `file` payload itself (encoding, header requirements, how an .xlsx body is expressed as a string), which is the parameter most likely to be misused.

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 first sentence states a specific verb and resource with scope: 'Imports customers into this company from an uploaded file.' It is also clearly separated from beel_create_customer, beel_create_customers_bulk, and beel_preview_customer_import, which would otherwise be plausible competitors.

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?

It explicitly routes the agent to beel_preview_customer_import when no writes are wanted, and clarifies there is no boolean dry-run flag. It does not, however, say when to use this file import rather than beel_create_customers_bulk or beel_create_customer, which is the other realistic alternative an agent would weigh.

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