Stackin

io.github.stackin-io/stackin · v1.9.0 · finance-and-payments

Stackin is healthy: it completed an MCP handshake in 3296 ms and exposes 43 tools.

Issue and manage Brazilian fiscal documents: NF-e for goods, NFS-e for services.

Endpoint: https://mcp.stackin.io/mcp (streamable-http)

Repository · Website · JSON · Add to my inventory

Facts

Users (last 30 days)0
HandshakeHealthy
Auth neededNone
Tool count43
Latency3296 ms
Last checked (UTC)2026-11-29T08:20:29.068Z

Health history

Checked (UTC)StatusLatencyError
2026-11-29T08:20:29.068ZHealthy3296
2026-11-26T23:45:31.305ZHealthy3418
2026-11-24T16:45:21.985ZHealthy3777
2026-11-22T11:55:28.214ZHealthy1886
2026-11-20T08:40:32.999ZHealthy1983
2026-11-18T06:30:40.567ZHealthy1666
2026-11-16T05:40:19.314ZHealthy2010
2026-11-14T06:31:05.744ZHealthy2725
2026-11-12T08:10:28.413ZHealthy2423
2026-11-10T11:00:38.443ZHealthy3020
2026-11-08T15:05:29.116ZHealthy1973
2026-11-06T20:30:46.981ZHealthy1667
2026-11-05T02:45:46.891ZHealthy2086
2026-11-03T09:35:35.602ZHealthy3609
2026-11-01T17:50:29.780ZHealthy3220
2026-10-31T03:00:26.345ZHealthy1964
2026-10-29T12:50:38.051ZHealthy1921
2026-10-27T23:20:15.957ZHealthy2257
2026-10-26T11:00:39.544ZHealthy2444
2026-10-24T23:30:13.960ZHealthy2224

Tools (43)

issue_invoiceIssue a Brazilian fiscal document: NFS-e or NF-e. This produces a legal fiscal document. Confirm the data with the user before calling when you inferred any field. Send unit_price with quantity when the user quotes a price per unit, amount when they quote the line; both must agree. nfse is a serv
consult_invoiceLook up an invoice's current status. Read-only. After an OUTCOME_UNKNOWN issuance, consult its document_id: the dps_id of an nfse, the access_key of an nfe. A 404 on a dps_id means nothing was issued.
cancel_invoiceCancel an authorized invoice. Legal cancellation, with fiscal and accounting effect, inside a window the NFS-e authorizer enforces for the municipality. Ask the human to confirm before calling; never call it speculatively. The reason reaches the tax authority verbatim and must be at least 15 charac
get_invoice_pdfReturn the printable rendering of a document, as a PDF. Works for both types — a DANFE for nfe, a DANFSe for nfse. The PDF comes back base64-encoded in content_base64, with its size in size_bytes; the XML, not this, is the legally valid document. A PDF above 2 MB is not inlined: the answer says to
reissue_invoiceRetry a rejected invoice after the data that caused the rejection was fixed. Takes the local invoice_id, not the access key: a rejected document never got one. Consumes a credit like a new issuance, so it takes an idempotency_key for the same reason issue_invoice does. An authorized invoice is corr
correct_invoiceFile an electronic correction letter (CC-e) against an NF-e. NF-e only: there is no correction letter for an NFS-e, where a wrong document is cancelled and issued again. It corrects wording and non-fiscal fields only. It cannot change values, taxes, the recipient or the products — those still requ
invalidate_numberingDeclare an NF-e numbering range reserved but never used. NF-e numbering has to be continuous, so a gap left by a failed issuance is explained to the SEFAZ with this — not with a new document. Irreversible: a number declared unused can never be used. Only for numbers that were never authorized. An
list_invoicesList the invoices this company issued, newest first. One document type at a time: pass nfse for services or nfe for goods. A company that issues both has to be asked twice. Use it for "my last invoices", "what was rejected today", and to find a document whose access key the user does not have at h
get_invoice_submissionsShow every attempt made for one invoice and what came back. This is the tool that answers "why was it rejected". consult_invoice gives the status; this gives the tax authority's own code, its message, and the request and response exactly as they went over the wire. Read-only. It takes the invoice_
invoice_statsCount this company's documents, and compare recent days. The answer to "how many invoices this month", "how much did I bill" and "is rejection going up": totals by document type and by status over everything, then issued and rejected counts and the amount for the last `days` beside the `days` befor
list_invalidationsList the NF-e numbering ranges this company already declared unused, newest first. Read it before invalidate_numbering: a range reported twice is refused, and one that overlaps a past report means the gap was already explained. Each row has the series, the inclusive range, the reason, the SEFAZ sta
validate_invoice_payloadDry-run issue_invoice: the API runs issuance's pre-authority checks (company blockers; NCM, CEST, IBS/CBS and presumed-credit tables; layout and cross-field rules). Nothing is sent, numbered, stored or charged. Malformed fields come back first, without the API. It does not replace issuing: the auth
list_received_invoicesList NF-e documents other companies issued against this one. The mirror of list_invoices: that one shows what this company issued, this one what it received. Read-only. It reads what the API already collected and never calls the tax authority; collection runs every six hours and sync_received_invo
sync_received_invoicesAsk the tax authority now for NF-e issued against this company. Collection already runs every six hours. After a read that finds nothing more the authority imposes a one-hour wait; inside it this is refused with the time to retry (next_sync_at, the same instant list_received_invoices reports in syn
manifest_received_invoiceDeclare this company's position on a document issued against it. Legally binding and irreversible once the tax authority accepts it — ask the human to confirm before calling, and read back which document and which of the four positions is being filed. Denying a document (210220) or declaring the o
get_received_invoice_xmlReturn the full XML (procNFe) of an NF-e issued against this company. Read-only and never charged. Only when list_received_invoices shows has_full_document; for a summary the answer says to manifest first. An XML above 500 KB is not inlined: the answer says to download it from the API instead.
lookup_fiscal_codeResolve one code of one classification, when you know both. Use this to confirm a code before putting it on a document — an NCM that does not exist is rejected by the tax authority after issuing, which costs a cancellation. A code that is not there answers 404. That means the code is wrong, not th
search_fiscal_codesFind a code from a description, or page through a table. This is the tool for "what NCM is a keyboard" — the one the user actually asks. Prefer it over guessing a code from memory: the tables change, and a plausible wrong code is worse than a lookup. Leaving `kind` unset searches every classificat
list_fiscal_kindsWhich classifications this country has data for, right now. Ask this before assuming a classification exists. The answer grows as the source data does, so a name absent here is absent today rather than absent forever.
lookup_taxpayerLook up one taxpayer by exact tax id, to confirm who it is. Use it to check a recipient's name before issuing against them. It takes the id exactly — punctuation is fine, but there is no search by name, by prefix or by state, and there will not be: the registry holds the names and addresses of real
search_citiesFind a municipality's IBGE code from its name. Issuing resolves city_code from city and state by itself, so this is for the name that matches more than one city, or an address the API answered CITY_NOT_FOUND for. Returns at most 20, each with its code, name and state; ask the user which one when mo
calculate_ibs_cbsSimulate IBS/CBS per item and in total. Issues nothing. Not a fiscal document: say so to the user. Rates left out use the official 2026 ones in 2026; outside 2026 they are required.
suggest_nbsList the NBS codes NFS-e Anexo VIII pairs with a service code. Suggestions, not a decision: show them to the user and put an nbs on the item only after they pick one. Each carries the cIndOp and cClassTrib Anexo VIII lists for it, which belong in the item's ibs_cbs group only when the user also con
list_authorized_companiesList the companies this connection may act for, and what it may do on each. Call it before acting when the user has more than one company, or when a tool answered that it needs a company. Each row carries the company_id (UUID) and tax_id (CNPJ or CPF) the other tools accept as company_id or company
get_usageThe plan's allowances, what is used and the credit left. Read it before saying an action is free. Read-only.
get_company_readinessWhether the company can issue right now, and if not, what to fix. Call it before a company's first document, and when issuing fails for a reason that is not the document's. ready is false with missing naming the cause; by_document_type has it per nfe and nfse, each blocker with the fields at fault
update_companyFill in or fix the company's own address and fiscal fields — what get_company_readiness reports missing. Before calling it: read the company's own registry row with lookup_taxpayer (its CNPJ), show the user the address you are about to write, and call only after they confirm it. Never invent or gue
list_clientsFind the company's saved clients. Look a recipient up here before typing one into issue_invoice: when it is already saved, pass its id as client_id and the name, document and address come from the registry. Most recently used first unless sort_by says otherwise. Read-only.
get_clientRead one saved client, with its full address. Read-only.
save_clientSave a client in the company's registry, or update a saved one. It records a recipient for later issuances; it issues nothing. A document already saved is refused with the existing client's id — call get_client or pass that id here to update it instead. Confirm the data with the user when any of it
deactivate_clientHide a saved client; reactivate_client brings it back.
reactivate_clientBring a deactivated client back to the registry.
list_itemsFind the products and services in the company's catalog. Look a line up here before typing it into issue_invoice: when it is saved, pass its id as item_id and the description, price and fiscal codes come from the catalog. Most recently used first. Read-only.
get_itemRead one catalog item with its fiscal fields. Read-only.
save_itemSave a product or service in the catalog, or update a saved one. Without item_id it creates, or updates the item with the same external_reference (else the same code): sending it twice never makes two. Nothing fiscal is required to save; an NF-e still needs ncm and cfop when issued. It issues nothi
deactivate_itemHide a catalog item; reactivate_item brings it back.
reactivate_itemBring a deactivated item back into the company's catalog.
explain_rejectionExplain why a rejected document was refused and what to change. get_invoice_submissions has the authority's reply as sent; this reads it for someone who does not speak SEFAZ: the code, the message verbatim, what it means, the steps to fix it, the field at fault and, when there is one, a suggested v
classify_itemSuggest an NCM, CFOP, CST/CSOSN, CEST or service code for one item. A suggestion to confirm with the user — never issue on it blindly. Every code in a candidate was read from the published tables, but the NCM and the CFOP decide the tax owed, and a plausible wrong one is authorized by the SEFAZ and
list_webhooksList where this company's events are delivered. One row per endpoint: its id (what delete_webhook takes), URL, events and whether it is active. Secrets are never returned. Needs webhook:manage. Read-only.
create_webhookRegister a URL to receive this company's document events. Every document authorized, rejected, cancelled or corrected, and every received NF-e first stored (received_invoice.stored) or whose full XML arrived (received_invoice.full_document), is then sent there, signed with the secret. Confirm the U
delete_webhookStop delivering events to one endpoint. The user's integration stops hearing about new documents from that moment, so confirm which endpoint with them first. What was already delivered stays in list_webhook_deliveries. An id this company does not have is refused (404). Needs webhook:manage.
list_webhook_deliveriesShow every delivery attempt, newest first. The answer to "is my webhook receiving": each row has the event, its status, how many attempts, what the endpoint answered (response_status), the last error and when it was delivered or will be tried again. Needs webhook:manage. Read-only.