Skip to main content
Glama

Arquivix Notas · NFS-e

company_update

Idempotent

Update the safe registration data of a company: trade name, address, default service code and municipality code. Send only what changes. It does NOT change the CNPJ, legal name, tax regime, rates, certificate (uploaded separately) or DPS numbering, and it cannot delete the company: those stay in the dashboard or the Companies API. Changing the municipality code changes the place of service of future invoices.

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": {
      "company_id": "<company_id>"
    },
    "name": "company_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressNoNovo endereço da empresa.
company_idYesUUID of the company
trade_nameNoNovo nome fantasia.
municipality_codeNoSeven-digit IBGE municipality code.
default_service_codeNoSix-digit cTribNac service code; null removes the default.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly=false, idempotent=true, destructive=false), and the description adds genuinely useful context: partial-update semantics, the immutability of CNPJ/legal name/certificate/DPS numbering, and the side effect that changing municipality code relocates the place of service on future invoices. What remains undisclosed is operational behavior such as required permissions, response contents, and whether changes are reversible.

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 description is front-loaded with the action and the updatable field set, then proceeds to exclusions and the side-effect warning, with no filler sentences. The long negation clause bundling six excluded fields plus the deletion constraint is dense but each element carries distinct information.

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 mutation tool with annotations covering safety, full schema coverage, and a nested address object, the description supplies the invariants and the one non-obvious side effect an agent needs. It stops short of describing return values or authorization requirements, but with no output schema and annotations present those omissions are tolerable.

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 schema already documents all five parameters and the default_service_code null-removal behavior. The description still adds real meaning beyond the schema by attributing a downstream consequence to municipality_code — that it changes the place of service of future invoices — which is not visible in the schema's IBGE-code description.

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 names the specific verb and resource plus the exact updatable fields (trade name, address, default service code, municipality code), and explicitly delineates what is out of scope (CNPJ, legal name, tax regime, rates, certificate, DPS numbering, deletion). An agent can distinguish this from company_create or certificate_upload 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 Guidelines4/5

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

"Send only what changes" establishes partial-update usage, and the explicit exclusion list tells the agent when to look elsewhere for deletions, legal-name changes, or certificate handling. However it points to "the dashboard or the Companies API" rather than naming the sibling tools that actually perform those operations, leaving routing slightly inferential.

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