Skip to main content
Glama

Ajustar o cadastro fiscal (com confirmação)

configurar_emissao

Ajusta o cadastro padrão de emissão em dois passos. 1) Chame só com campos: nada é gravado; volta a lista do que muda (valor atual → novo) e um código confirmacao. 2) Mostre a lista à pessoa e, SÓ com o "sim" dela, chame de novo com os MESMOS campos e o código. Aceita: codigo_servico (item LC 116, ex.: "17.06"), op_simp_nac ("1" fora do Simples, "2" MEI, "3" ME/EPP), aliquota_simples, inscricao_municipal, ctrib_mun, codigo_nbs (9 dígitos), codigo_cnae (7 dígitos) e ws_user. Senha do webservice, município, motor e numeração de DPS/RPS não mudam por aqui: são na tela do painel. Não invente valor: use o que a pessoa ou o contador informou, ou a sugestao de verificar_prontidao.

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": {
      "campos": "<campos>"
    },
    "name": "configurar_emissao"
  }
}

Input Schema

NameRequiredDescriptionDefault
camposYesSó os campos que mudam. String vazia apaga o valor.
confirmacaoNoO código que o primeiro passo devolveu. Só depois do "sim" da pessoa.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations only declare readOnly=false, destructive=false, idempotent=false and openWorld=false; the description supplies the crucial behavior they cannot express, namely that step 1 persists nothing and returns a before→after diff plus a `confirmacao` token, and that only step 2 writes. It also discloses that empty strings erase values and which related settings are out of scope, so the agent understands the blast radius of the write.

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 protocol is front-loaded in the first sentence and the two steps are clearly numbered; the field enumeration and the exclusion list each carry real information. It is dense — long parentheticals and a final admonition run together — but no sentence is pure 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?

For a two-step mutation tool with a nested object and no output schema, the definition covers what step 1 returns (diff list plus confirmation code) and what must not be attempted here. The only gap is the return behavior of the confirming second call, which the agent must infer.

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

Parameters5/5

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

Although schema coverage is 100%, the schema only names fields; the description supplies meaning the schema lacks — codigo_servico is an LC 116 item (e.g. "17.06"), op_simp_nac's "1"/"2"/"3" map to fora do Simples / MEI / ME-EPP, codigo_nbs is 9 digits and codigo_cnae 7 digits. It also clarifies that `confirmacao` is the code returned by step 1, which the schema description only partially conveys.

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?

States a specific verb and resource ('Ajusta o cadastro padrão de emissão') and immediately frames the two-step protocol with the exact parameter that triggers each step. An agent can tell this apart from confirmar_emissao and emitir_nota without opening 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-call rules per step: call with only `campos` first (nothing is written), then call again with the same `campos` plus the confirmation code only after the person says yes. It also states exclusions (webservice password, município, motor, DPS/RPS numbering are done in the panel UI) and routes value sourcing to the person, the accountant, or the `sugestao` from verificar_prontidao.

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