Skip to main content
Glama

Arquivix Notas · NFS-e

import_fix_row

Idempotent

Correct one row of an import that is ready, and check it again. Send the invoice fields that change in item (amount, competenceDate, customer {name, taxId, email}, service {description, code}); customer and service are merged field by field, so sending only the e-mail keeps the name. The company of a row (companyId, companyTaxId) cannot be changed. Returns the row, valid or still invalid with the reason.

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": {
      "import_id": "<import_id>",
      "line": "<line>",
      "item": "<item>"
    },
    "name": "import_fix_row"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesInvoice fields to change
lineYesLine of the row in the import (the line number of each row)
import_idYesUUID of the import

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, and the description adds genuine behavioral context beyond them: field-by-field merge semantics ('sending only the e-mail keeps the name'), immutable company fields, and a re-validation on write. It stops short of naming required permissions, what happens on a failed merge, or rate/limits for repeated fixes.

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?

Three sentences, front-loaded with the action and precondition, then the payload rules, then the return behavior. Dense but every clause carries information; the parenthetical field list is the only heavy element.

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

Completeness5/5

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

For a mutation tool with no output schema, the description covers the mutation semantics, immutability constraints, and the return value ('returns the row, valid or still invalid with the reason'). With annotations supplying the safety profile, nothing critical for a correct call 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% for the three top-level params, so the baseline is 3; the description earns above that by enumerating the nested `item` fields (amount, competenceDate, customer {name, taxId, email}, service {description, code}) and explaining their merge behavior, which the schema leaves as just 'Invoice fields to change'. It does not say which of those nested fields are optional or their formats.

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 ('Correct one row of an import') plus the precondition ('that is ready') and the follow-up effect ('check it again'). This clearly separates it from row-reading siblings such as import_rows or import_get without needing their schemas.

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?

Implies when to use it by requiring the import to be 'ready', and states what cannot be changed (companyId, companyTaxId), which tells the agent this tool is for field-level fixes only. It does not name an explicit alternative for non-ready imports or for structural changes, so the routing guidance stops 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.

Resources