Skip to main content
Glama

hivecloud_cte_criar_de_nfe

Cria um RASCUNHO de CT-e a partir de uma ou mais chaves de NF-e (mesmo remetente e destinatário). Importa os dados da nota, usa o último CT-e autorizado da empresa como base de imposto/CFOP/local de emissão e preenche carga, valores e envolvidos. NÃO transmite à SEFAZ: o documento fica em digitação pra revisão e emissão. Exige allow_writes na conexão.

Bulk support: accepts template_cte_ids, empresa_ids for batched execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNo
tomadorNo
empresa_idNo
nfe_chavesYes
observacaoNo
cfop_codigoNo
empresa_idsNo
valor_freteYes
cfop_naturezaNo
template_cte_idNo
template_cte_idsNo
responsavel_freteNo
produto_predominanteNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description adds substantial behavioral detail: it creates a draft, stays in 'digitação' for review, does not transmit, requires allow_writes, and uses the last authorized CT-e as a base. It also explains that it fills load, values, and parties, and describes bulk execution semantics.

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 compact and well-structured: the first sentence states the purpose, the second explains the data import and defaults, the third clarifies the non-transmission behavior, and the fourth gives the prerequisite and bulk capability. Every sentence adds value with no filler.

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?

Given the tool's complexity (13 params, no output schema), the description provides a solid overview of behavior, state, prerequisites, and bulk support. It doesn't explain what the function returns (e.g., draft ID) or distinguish singular vs. plural parameters like template_cte_id vs. template_cte_ids, which keeps it from a 5.

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

Parameters3/5

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

With schema_description_coverage at 0%, the description must compensate, and it partially does by naming nfe_chaves, template_cte_ids, and empresa_ids, and explaining that values are auto-filled from the NF-e and last CT-e. However, many parameters (tomador, cfop_codigo, cfop_natureza, responsavel_frete, produto_predominante, observacao, account, etc.) remain unexplained, leaving a significant gap.

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 tool's specific function: 'Cria um RASCUNHO de CT-e a partir de uma ou mais chaves de NF-e' — creates a draft CT-e from NF-e keys. It explicitly notes that it does NOT transmit to SEFAZ, distinguishing it from siblings like hivecloud_cte_emitir.

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 gives clear context: use this to create a draft for review, not to transmit. It also states a prerequisite ('Exige allow_writes na conexão') and mentions bulk support. However, it doesn't explicitly name an alternative such as 'use hivecloud_cte_emitir to transmit,' so it falls just short of a 5.

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.

TDQS

B3.4/5.0
Disambiguation2/5

The server mixes two distinct domains (HiveCloud fiscal documents and mcp.ai platform controls) with several similarly-named tools (hivecloud_list_ctes vs hivecloud_get_cte vs hivecloud_cte_xml; hivecloud_list_mdfes vs hivecloud_get_mdfe). The generic 'authenticate', 'connect', and 'toolkit_info' overlap in connection/account status purposes, creating ambiguity about which to call for setup.

Naming Consistency3/5

Tools mostly follow a 'hivecloud_<domain>_<action>' pattern (e.g., hivecloud_cte_emitir, hivecloud_cte_cancelar), but there are exceptions like 'hivecloud_avaliar' (short verb without domain), 'get_cte' vs 'list_ctes' (tense/plural inconsistency), and generic tools 'authenticate', 'connect', 'report_bug' that don't follow the pattern. Mixed Portuguese/English verbs further reduce consistency.

Tool Count2/5

With 33 tools, this is on the heavy side. The domain spans CT-e, MDF-e, NF-e, DC-e, plus platform management (marketplace, toolkit, bug reporting, versioning) — it bundles too many concerns into one server. Several tools (report_bug, show_version, marketplace) feel unrelated to HiveCloud fiscal document handling, making the count feel bloated.

Completeness4/5

For the CT-e and MDF-e lifecycle, the surface is quite complete: create from NF-e, emit, cancel, edit (carta de correção), delete drafts, print DACTE/DAMDFE, export XML, list/get, and even a travel report. DC-e and NF-e are lighter (only list/query), and missing tools like 'create_mdfe' (no draft creation for MDF-e) or 'update_mdfe' (only cancel/end) are notable gaps. However, core workflows are well covered.