Counterfoil

Read stored EU e-invoice rule notes and the invoice field map. Not a validator.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
98%
命名质量
95%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~686token 数(工具定义)
~942 B典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.54%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 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
}

社区

评价此服务器

证据

最近观测

已验证未记录版本4 个工具