Skip to main content
Glama

Arquivix Notas · NFS-e

company_create

Create an issuing company in the connected environment. A certificate is deliberately not accepted here: it is uploaded separately, after the company exists (needs the certificate permission granted when connecting). default_service_code is optional and becomes the default service code of every invoice of the company; a code suggested by the CNPJ registry is only a suggestion.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "legal_name": "<legal_name>",
      "tax_id": "<tax_id>",
      "tax_regime": "<tax_regime>",
      "municipality_code": "<municipality_code>"
    },
    "name": "company_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
tax_idYesCNPJ; punctuation is optional.
addressNoEndereço da empresa (opcional).
legal_nameYesRazão social, como no cartão do CNPJ.
tax_regimeYesMEI (mei), Simples Nacional (simple_national), Lucro Presumido (lucro_presumido) or Lucro Real (lucro_real).
trade_nameNoNome fantasia (opcional).
simples_rateNoRequired for Simples Nacional (ignored for MEI): effective total rate (%) of your DAS, e.g. "6.54".
municipal_regNoInscrição municipal, só dígitos (opcional).
special_regimeNoRegime especial (regEspTrib): 0 Nenhum, 1 Ato Cooperado, 2 Estimativa, 3 Microempresa Municipal, 4 Notário ou Registrador, 5 Profissional Autônomo, 6 Sociedade de Profissionais.
simple_nationalNotrue quando a empresa é optante do Simples Nacional.
simples_iss_rateNoSimples Nacional only, optional: effective ISS rate (%) of your bracket; needed only when a customer withholds ISS.
municipality_codeYesSeven-digit IBGE municipality code.
send_municipal_regNotrue para mandar a inscrição municipal na DPS. Padrão false: a Receita recusa (E0120) quando o município não tem os dados complementares.
default_service_codeNoSix-digit cTribNac service code.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), the description adds two non-obvious behaviors: an auth prerequisite (certificate permission at connection time) and a side effect (default_service_code propagates to every invoice of the company). It omits any duplicate-creation warning despite idempotentHint=false, which is a real gap for a create tool.

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?

Three sentences with zero filler, front-loaded with the action and then the two most consequential constraints (certificate handling, default_service_code side effect). Each sentence carries distinct 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 13-parameter, nested-object mutation with no output schema, the description covers the two biggest behavioral surprises but says nothing about what is returned (e.g., the created company identifier) or about the required-field combination. An agent can call it, but cannot predict the result 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 100%, so the baseline is 3, but the description adds meaning beyond the schema for default_service_code: it becomes the default service code on every invoice, and a CNPJ-registry-suggested code is only a suggestion. That is genuine semantic value not present in the parameter description.

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?

States a specific verb and resource: 'Create an issuing company in the connected environment', which is unmistakably distinct from company_get/company_update/company_list. It stops short of naming any alternative sibling, so it is clear but not maximally differentiated.

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?

Provides a concrete exclusion: the certificate is deliberately not accepted here and must be uploaded separately after the company exists, which routes the agent to certificate_upload. It also flags that certificate permission must be granted at connection time. It does not say when to prefer company_update over creating, but the create-vs-update boundary is largely self-evident.

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