Skip to main content
Glama

Parse NF-e access key

parse_nfe_key
Read-onlyIdempotent

Decode a 44-position NF-e/NFC-e access key into UF, year/month, issuer CNPJ, model, series, number, emission type, and check digit.

Instructions

Decode a 44-position NF-e/NFC-e access key: UF, year/month, issuer CNPJ, model, series, number, emission type, check digit.

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": {
      "key": "<key>"
    },
    "name": "parse_nfe_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile needs no restating. The description adds real value by enumerating the decoded components, which serves as the de facto return contract in the absence of an output schema; it stops short of stating what happens on an invalid key or bad check digit.

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?

One sentence, front-loaded with the action and input, followed by the decoded field list. Every clause carries information; nothing is redundant.

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 single-parameter read-only parse tool with no output schema, the description covers both input format and returned fields. The only gap is error behavior for invalid or non-44-character keys.

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?

With 0% schema coverage, the schema only says string of length 1-64. The description supplies the crucial semantic that the argument is a 44-position NF-e/NFC-e access key, which materially narrows the input beyond the bare schema constraint.

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?

A specific verb ('Decode') and resource ('44-position NF-e/NFC-e access key') with an enumeration of the fields extracted. It is naturally distinct from the CNPJ/CEP/CPF siblings, though it never explicitly says so.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied by the '44-position' input constraint; there is no statement of when to prefer this tool over siblings or what to do when the key is malformed. Adequate but leaves the agent to infer the routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.