Skip to main content
Glama

Arquivix Notas · NFS-e

import_create

Start an import of invoices from a spreadsheet. Send the file as text: content with the CSV (header in the first line, columns such as cnpj_prestador, tomador_documento, tomador_nome, tomador_email, descricao, valor, codigo_servico, data_competencia), or content_base64 with an .xlsx. Up to 2,000 rows and 1 MB here (bigger files: POST /v1/imports). Reading is asynchronous: the import starts as "processing" and becomes "ready" for review; nothing is issued until the rows are emitted. The issuing company comes from the CNPJ column or from company_id.

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": "import_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNoThe CSV text
file_nameNoDefaults to import.csv, or import.xlsx with content_base64
company_idNoUUID of the company that issues rows without a CNPJ
content_base64NoAn .xlsx file encoded in base64 (CSV in `content` is preferred)

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses the async lifecycle ('processing' → 'ready') and, critically, that no invoice is issued until the rows are emitted — the key side-effect boundary. It also states hard limits (2,000 rows, 1 MB) and how the issuing company is resolved, none of which is available in the annotations.

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 action is front-loaded, then the input formats, limits, and async behavior follow in a logical order with essentially no filler. It is a dense single block whose middle sentence chains header format, limits, and lifecycle together, which is slightly harder to scan than it could be, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly steps in to describe the import record's states (processing → ready) so the agent understands the return value. It omits explicit guidance on how to poll status or review rows after creation, which would make an async tool fully self-contained, but otherwise nothing an agent needs to call it is missing.

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 100%, so the baseline is 3; the description earns more by enumerating the expected CSV columns (cnpj_prestador, tomador_documento, valor, data_competencia, etc.) and stating the precedence rule that the CNPJ column wins over `company_id`. That is real added meaning about file structure and fallback behavior the schema does not convey.

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 ('Start an import of invoices from a spreadsheet') and immediately bounds it: 'nothing is issued until the rows are emitted', which separates it from siblings like import_emit. An agent can tell this is the ingestion step, not the issuance or review step, without inspecting any schema.

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 gives clear selection criteria for the two input modes (CSV text in `content` vs .xlsx in `content_base64`, with CSV stated as preferred) and an escalation path for oversized files (POST /v1/imports). It does not explicitly name which sibling to call next to review or fix rows (import_get, import_rows, import_fix_row), so it falls short of full when-to-use routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources