Counterfoil
Read stored EU e-invoice rule notes and the invoice field map. Not a validator.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"counterfoil": {
"url": "https://einvoicegoblin.com/mcp"
}
}
}遠端端點
https://einvoicegoblin.com/mcpstreamable-http它能做什麼
工具清單
工具(4)
🟢get_rule(id)
Read one stored EU e-invoice rule by id. Returns the stored statement, context, test, plain reading, fix, and source URL. Does not check an invoice.
輸入結構描述
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A stored rule id, such as BR-01 or BR-IC-05.",
"pattern": "^[A-Za-z0-9-]+$",
"maxLength": 40
}
},
"required": [
"id"
],
"additionalProperties": false
}🟢search_rules(query, bt, group)
Find stored rules by words, a BT code, or a group. Each hit returns the stored statement, plain reading, fix, and source URL. At most 100 hits. Does not check an invoice.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Words matched against the id, statement, reading, fix, context, and test. Every word must match. Case-insensitive.",
"maxLength": 200
},
"bt": {
"type": "string",
"description": "A business term code such as BT-24, matched as a whole token.",
"pattern": "^BT-\\d+$"
},
"group": {
"type": "string",
"description": "One stored group.",
"enum": [
"xrechnung",
"payment",
"totals",
"standard-rated",
"zero-rated",
"export",
"intra-community",
"reverse-charge",
"exemption",
"not-subject",
"igic",
"ipsi",
"split-payment",
"code-list",
"decimal",
"excluded",
"document",
"syntax",
"datatype"
]
}
},
"additionalProperties": false
}🟢explain_error(text)
Read a stored rule named in a rule id or a validator message. Returns the stored statement, plain reading, fix, and source URL when a stored rule matches. Does not check an invoice.
輸入結構描述
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "A rule id such as BR-01, or a validator message that quotes one.",
"minLength": 1,
"maxLength": 8000
}
},
"required": [
"text"
],
"additionalProperties": false
}🟢check_invoice(xml)
Read a UBL Invoice XML slice of at most 60000 characters. Returns the business terms that slice writes, the field-map gaps, and one stored note when BR-DE-15 finds no non-empty buyer reference (BT-10). evaluation is false: no Schematron runs. The result does not say the invoice passed. The XML is not stored. A larger file is the raw body of POST /v1/invoices/check, up to 1048576 bytes.
輸入結構描述
{
"type": "object",
"properties": {
"xml": {
"type": "string",
"description": "UBL Invoice XML. At most 60000 characters.",
"maxLength": 60000
}
},
"required": [
"xml"
],
"additionalProperties": false
}社群
證據