{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "inv-bg.usefulapi.io",
    "site": "usefulapi.io",
    "addresses": [
      {
        "address": "104.21.62.184",
        "endpoints": 1105,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.32.0/19",
          "country": "US"
        }
      },
      {
        "address": "172.67.138.37",
        "endpoints": 1105,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.128.0/20",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3032::6815:3eb8",
        "endpoints": 1105,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3032::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3030::ac43:8a25",
        "endpoints": 1105,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3030::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "104.21.62.184",
          "172.67.138.37",
          "2606:4700:3032::6815:3eb8",
          "2606:4700:3030::ac43:8a25"
        ],
        "first_seen": "2026-11-22T14:32:00.963Z",
        "last_seen": "2026-11-22T14:32:00.963Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "inv-bg-mcp",
      "version": "1.19.4",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1104,
      "sample": [
        {
          "id": "22186",
          "url": "https://mcp.easyscribe.guide/mcp",
          "server_name": "guide.easyscribe/easy-scribe",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T17:59:02.319Z"
        },
        {
          "id": "42087",
          "url": "https://17track.usefulapi.io/mcp",
          "server_name": "io.usefulapi/17track",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:37:00.117Z"
        },
        {
          "id": "42088",
          "url": "https://a2x-accounting.usefulapi.io/mcp",
          "server_name": "io.usefulapi/a2x-accounting",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:38:01.144Z"
        },
        {
          "id": "42089",
          "url": "https://abacus-pos.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abacus-pos",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:39:01.150Z"
        },
        {
          "id": "42090",
          "url": "https://abaninja.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abaninja",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:40:04.827Z"
        },
        {
          "id": "42091",
          "url": "https://ablesign.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ablesign",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:41:00.510Z"
        },
        {
          "id": "42092",
          "url": "https://ably.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ably",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:42:01.406Z"
        },
        {
          "id": "42093",
          "url": "https://abra-flexi.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abra-flexi",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:43:00.718Z"
        },
        {
          "id": "42094",
          "url": "https://absence-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/absence-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:44:09.505Z"
        },
        {
          "id": "42095",
          "url": "https://abstract-api.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abstract-api",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:45:03.727Z"
        },
        {
          "id": "42096",
          "url": "https://academy-of-mine.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academy-of-mine",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:46:00.640Z"
        },
        {
          "id": "42097",
          "url": "https://academyocean.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academyocean",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:47:00.764Z"
        },
        {
          "id": "42098",
          "url": "https://accelo.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accelo",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:48:07.939Z"
        },
        {
          "id": "42099",
          "url": "https://accredible.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accredible",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:49:01.212Z"
        },
        {
          "id": "42100",
          "url": "https://action1.usefulapi.io/mcp",
          "server_name": "io.usefulapi/action1",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:50:02.305Z"
        },
        {
          "id": "42101",
          "url": "https://acube.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acube",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:51:00.623Z"
        },
        {
          "id": "42102",
          "url": "https://acuity-scheduling.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acuity-scheduling",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:52:00.408Z"
        },
        {
          "id": "42103",
          "url": "https://adafruit-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/adafruit-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:53:01.972Z"
        },
        {
          "id": "42104",
          "url": "https://addevent.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addevent",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:54:01.697Z"
        },
        {
          "id": "42105",
          "url": "https://addressfinder.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addressfinder",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:55:02.861Z"
        }
      ]
    },
    "same_site": {
      "total": 1103,
      "sample": [
        {
          "id": "42087",
          "url": "https://17track.usefulapi.io/mcp",
          "server_name": "io.usefulapi/17track",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:37:00.117Z"
        },
        {
          "id": "42088",
          "url": "https://a2x-accounting.usefulapi.io/mcp",
          "server_name": "io.usefulapi/a2x-accounting",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:38:01.144Z"
        },
        {
          "id": "42089",
          "url": "https://abacus-pos.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abacus-pos",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:39:01.150Z"
        },
        {
          "id": "42090",
          "url": "https://abaninja.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abaninja",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:40:04.827Z"
        },
        {
          "id": "42091",
          "url": "https://ablesign.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ablesign",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:41:00.510Z"
        },
        {
          "id": "42092",
          "url": "https://ably.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ably",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:42:01.406Z"
        },
        {
          "id": "42093",
          "url": "https://abra-flexi.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abra-flexi",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:43:00.718Z"
        },
        {
          "id": "42094",
          "url": "https://absence-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/absence-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:44:09.505Z"
        },
        {
          "id": "42095",
          "url": "https://abstract-api.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abstract-api",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:45:03.727Z"
        },
        {
          "id": "42096",
          "url": "https://academy-of-mine.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academy-of-mine",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:46:00.640Z"
        },
        {
          "id": "42097",
          "url": "https://academyocean.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academyocean",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:47:00.764Z"
        },
        {
          "id": "42098",
          "url": "https://accelo.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accelo",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:48:07.939Z"
        },
        {
          "id": "42099",
          "url": "https://accredible.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accredible",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:49:01.212Z"
        },
        {
          "id": "42100",
          "url": "https://action1.usefulapi.io/mcp",
          "server_name": "io.usefulapi/action1",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:50:02.305Z"
        },
        {
          "id": "42101",
          "url": "https://acube.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acube",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:51:00.623Z"
        },
        {
          "id": "42102",
          "url": "https://acuity-scheduling.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acuity-scheduling",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:52:00.408Z"
        },
        {
          "id": "42103",
          "url": "https://adafruit-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/adafruit-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:53:01.972Z"
        },
        {
          "id": "42104",
          "url": "https://addevent.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addevent",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:54:01.697Z"
        },
        {
          "id": "42105",
          "url": "https://addressfinder.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addressfinder",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:55:02.861Z"
        },
        {
          "id": "42106",
          "url": "https://adminpulse.usefulapi.io/mcp",
          "server_name": "io.usefulapi/adminpulse",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:56:00.432Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.usefulapi",
      "total": 1103,
      "sample": [
        {
          "name": "io.usefulapi/17track",
          "title": "17TRACK MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/a2x-accounting",
          "title": "A2X MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abacus-pos",
          "title": "Abacus POS MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abaninja",
          "title": "AbaNinja MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/ablesign",
          "title": "AbleSign MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/ably",
          "title": "Ably MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abra-flexi",
          "title": "ABRA Flexi MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/absence-io",
          "title": "absence.io MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abstract-api",
          "title": "Abstract API MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/academy-of-mine",
          "title": "Academy of Mine MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/academyocean",
          "title": "AcademyOcean MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/accelo",
          "title": "Accelo MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/accredible",
          "title": "Accredible MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/action1",
          "title": "Action1 MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/acube",
          "title": "A-Cube MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/acuity-scheduling",
          "title": "Acuity Scheduling MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/adafruit-io",
          "title": "Adafruit IO MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/addevent",
          "title": "AddEvent MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/addressfinder",
          "title": "Addressfinder MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/adminpulse",
          "title": "AdminPulse MCP by usefulapi"
        }
      ]
    },
    "same_repository": {
      "repository_url": "https://github.com/m190/usefulapi-mcp",
      "total": 1103,
      "sample": [
        {
          "name": "io.usefulapi/17track",
          "title": "17TRACK MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/a2x-accounting",
          "title": "A2X MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abacus-pos",
          "title": "Abacus POS MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abaninja",
          "title": "AbaNinja MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/ablesign",
          "title": "AbleSign MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/ably",
          "title": "Ably MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abra-flexi",
          "title": "ABRA Flexi MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/absence-io",
          "title": "absence.io MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abstract-api",
          "title": "Abstract API MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/academy-of-mine",
          "title": "Academy of Mine MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/academyocean",
          "title": "AcademyOcean MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/accelo",
          "title": "Accelo MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/accredible",
          "title": "Accredible MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/action1",
          "title": "Action1 MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/acube",
          "title": "A-Cube MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/acuity-scheduling",
          "title": "Acuity Scheduling MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/adafruit-io",
          "title": "Adafruit IO MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/addevent",
          "title": "AddEvent MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/addressfinder",
          "title": "Addressfinder MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/adminpulse",
          "title": "AdminPulse MCP by usefulapi"
        }
      ]
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "42552",
    "server_name": "io.usefulapi/inv-bg",
    "url": "https://inv-bg.usefulapi.io/mcp",
    "host": "inv-bg.usefulapi.io",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T14:32:00.963Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "718ee5f769e4953c05ad4f2817b8a5ede6fd555ced8c904e8ca237093d7fab63",
    "first_listed_at": "2026-11-22T14:32:00.963Z",
    "created_at": "2026-11-21T12:40:09.658Z",
    "resolved_addresses": [
      "104.21.62.184",
      "172.67.138.37",
      "2606:4700:3032::6815:3eb8",
      "2606:4700:3030::ac43:8a25"
    ]
  },
  "server": {
    "name": "io.usefulapi/inv-bg",
    "title": "inv.bg MCP by usefulapi",
    "description": "Read inv.bg invoices, clients, items, payments and banking; create clients, items, invoices.",
    "version": "1.19.4",
    "registry_status": "active",
    "repository_url": "https://github.com/m190/usefulapi-mcp",
    "website_url": "https://usefulapi.io/inv-bg/",
    "published_at": "2026-11-18T11:02:40.971Z",
    "updated_at": "2026-11-18T11:02:40.971Z",
    "first_seen": "2026-11-21T12:40:09.000Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "takes-payment"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T16:20:16.109Z"
  },
  "operator": {
    "key": "usefulapi.io",
    "name": "usefulapi.io",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 1,
    "answered": 1,
    "answered_percent": 100,
    "avg_listing_latency_ms": 364,
    "first_check_in_window": "2026-11-22T14:32:00.963Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "718ee5f769e4953c05ad4f2817b8a5ede6fd555ced8c904e8ca237093d7fab63",
    "tools": 27,
    "resources": 0,
    "prompts": 7,
    "first_seen": "2026-11-22T14:32:01.342Z",
    "tool_names": [
      "invbg_get_account",
      "invbg_get_firm",
      "invbg_list_invoices",
      "invbg_get_invoice",
      "invbg_list_invoice_types",
      "invbg_get_next_invoice_number",
      "invbg_list_number_sets",
      "invbg_list_payment_methods",
      "invbg_list_vat_exemption_reasons",
      "invbg_list_clients",
      "invbg_get_client",
      "invbg_list_client_contacts",
      "invbg_list_items",
      "invbg_get_item",
      "invbg_list_item_units",
      "invbg_list_payments",
      "invbg_get_payment",
      "invbg_list_bank_accounts",
      "invbg_list_bank_transactions",
      "invbg_list_cashboxes",
      "invbg_get_exchange_rate",
      "invbg_create_client",
      "invbg_update_client",
      "invbg_create_item",
      "invbg_create_invoice",
      "invbg_send_invoice_email",
      "invbg_record_invoice_payment"
    ],
    "declared": {
      "tools": [
        {
          "name": "invbg_get_account",
          "title": "Get account",
          "description": "The company (id, name, subdomain) and the user the API token belongs to. GET /account.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {}
          },
          "annotations": {
            "title": "Get account",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_get_firm",
          "title": "Get company",
          "description": "The issuing company's details: name, Bulstat, VAT registration and VAT number, address, MOL, contact email, custom properties. GET /firm.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {}
          },
          "annotations": {
            "title": "Get company",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_invoices",
          "title": "List invoices",
          "description": "List documents (tax invoices, proformas, debit and credit notes) with filters: type, number, issue-date range, amount ranges, payment status, client, draft/annulled, sent status, currency. Each row has number, client, totals, balance_paid, balance_due and dates. GET /invoices.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "type": {
                "type": "array",
                "items": {
                  "enum": [
                    "dan",
                    "prof",
                    "deb",
                    "cred",
                    "protocol",
                    "custom"
                  ],
                  "type": "string"
                },
                "maxItems": 6,
                "description": "Document types: dan = tax invoice, prof = proforma, deb = debit note, cred = credit note."
              },
              "order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Sort direction (default desc)."
              },
              "number": {
                "type": "string",
                "maxLength": 50,
                "minLength": 1,
                "description": "Document number (as printed, e.g. 0000000024)."
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Free-text search over the results."
              },
              "status": {
                "type": "array",
                "items": {
                  "enum": [
                    "paid",
                    "unpaid",
                    "partially-paid"
                  ],
                  "type": "string"
                },
                "maxItems": 3,
                "description": "Payment statuses to include. Use [\"unpaid\", \"partially-paid\"] to find open receivables."
              },
              "date_to": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Only documents dated on or before this date, yyyy-mm-dd."
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$",
                "description": "Only documents in this currency."
              },
              "is_draft": {
                "type": "boolean",
                "description": "true = only drafts, false = no drafts."
              },
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              },
              "order_by": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.]+$",
                "maxLength": 50,
                "minLength": 1,
                "description": "Field to sort by (for example id, date or name; see the vendor reference)."
              },
              "per_page": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 25).",
                "exclusiveMinimum": 0
              },
              "amount_gt": {
                "type": "number",
                "description": "Only documents with a total of at least this amount."
              },
              "amount_lt": {
                "type": "number",
                "description": "Only documents with a total of at most this amount."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only documents issued to this client (invbg_list_clients).",
                "exclusiveMinimum": 0
              },
              "date_from": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Only documents dated on or after this date, yyyy-mm-dd."
              },
              "client_name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Client name filter; % matches any run of characters, _ one character."
              },
              "is_annulled": {
                "type": "boolean",
                "description": "true = only annulled documents, false = none."
              },
              "send_status": {
                "type": "array",
                "items": {
                  "enum": [
                    "unsent",
                    "sent",
                    "resent"
                  ],
                  "type": "string"
                },
                "maxItems": 3,
                "description": "Email status(es) to include."
              },
              "amount_due_gt": {
                "type": "number",
                "description": "Only documents with an outstanding balance of at least this amount."
              },
              "amount_due_lt": {
                "type": "number",
                "description": "Only documents with an outstanding balance of at most this amount."
              }
            }
          },
          "annotations": {
            "title": "List invoices",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_get_invoice",
          "title": "Get invoice",
          "description": "One document by id: number, type, issuer and recipient, line items, VAT, totals, balance_paid and balance_due, dates, bank accounts, sent/confirmation status. Optionally with its comments. GET /invoices/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "invoice_id"
            ],
            "properties": {
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              },
              "invoice_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "inv.bg document id (the id field of invbg_list_invoices, not the printed number).",
                "exclusiveMinimum": 0
              },
              "include_comments": {
                "type": "boolean",
                "description": "Also return the document's comments."
              }
            }
          },
          "annotations": {
            "title": "Get invoice",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_invoice_types",
          "title": "List document types",
          "description": "All document types of this company (tax invoice, proforma, debit/credit note and any custom types) with their codes. GET /invoices/types.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {}
          },
          "annotations": {
            "title": "List document types",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_get_next_invoice_number",
          "title": "Get next invoice number",
          "description": "The next free document number of the default number set for a document type. Read-only: it does not reserve the number. GET /invoices/free-number.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "type": {
                "enum": [
                  "dan",
                  "prof",
                  "deb",
                  "cred",
                  "custom"
                ],
                "type": "string",
                "description": "Document type (default: tax invoice)."
              }
            }
          },
          "annotations": {
            "title": "Get next invoice number",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_number_sets",
          "title": "List number sets",
          "description": "The company's invoice number sets (separate numbering series) with ids; pass an id as number_set to invbg_create_invoice. GET /invoices/number-sets.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "per_page": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 25).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List number sets",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_payment_methods",
          "title": "List payment methods",
          "description": "The payment method codes a document accepts (cash, bank, card, ...) with their names. GET /invoices/payment-methods.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              }
            }
          },
          "annotations": {
            "title": "List payment methods",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_vat_exemption_reasons",
          "title": "List VAT exemption reasons",
          "description": "The legal reasons for issuing a document without VAT (use one as vat_exemption_reason in invbg_create_invoice). GET /invoices/without-vat-reasons.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              }
            }
          },
          "annotations": {
            "title": "List VAT exemption reasons",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_clients",
          "title": "List clients",
          "description": "List or search clients (customers): name, Bulstat, VAT number, address, MOL, whether it is a person. GET /clients.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "code": {
                "type": "string",
                "maxLength": 50,
                "minLength": 1,
                "description": "Filter by the client code."
              },
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Filter by client name."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Sort direction (default desc)."
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Free-text search over the results."
              },
              "bulstat": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "Filter by EIK/Bulstat."
              },
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              },
              "order_by": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.]+$",
                "maxLength": 50,
                "minLength": 1,
                "description": "Field to sort by (for example id, date or name; see the vendor reference)."
              },
              "per_page": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 25).",
                "exclusiveMinimum": 0
              },
              "is_person": {
                "type": "boolean",
                "description": "true = individuals only, false = companies only."
              },
              "is_reg_vat": {
                "type": "boolean",
                "description": "true = VAT-registered clients only."
              },
              "vat_number": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "Filter by VAT number."
              }
            }
          },
          "annotations": {
            "title": "List clients",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_get_client",
          "title": "Get client",
          "description": "One client by id with all stored details (names in both languages, Bulstat, VAT, address, MOL, code, custom properties). GET /clients/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "client_id"
            ],
            "properties": {
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "inv.bg client id (invbg_list_clients).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get client",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_client_contacts",
          "title": "List client contacts",
          "description": "Contact people of a client (or of all clients) with their names and roles. GET /client-contacts.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Free-text search over the results."
              },
              "per_page": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 25).",
                "exclusiveMinimum": 0
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only the contacts of this client.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List client contacts",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_items",
          "title": "List items",
          "description": "The product/service catalogue: name, price, currency, unit, tags. GET /items.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Sort direction (default desc)."
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Free-text search over the results."
              },
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              },
              "order_by": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.]+$",
                "maxLength": 50,
                "minLength": 1,
                "description": "Field to sort by (for example id, date or name; see the vendor reference)."
              },
              "per_page": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 25).",
                "exclusiveMinimum": 0
              },
              "tag_name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only items with this tag."
              }
            }
          },
          "annotations": {
            "title": "List items",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_get_item",
          "title": "Get item",
          "description": "One catalogue item by id. GET /items/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "item_id"
            ],
            "properties": {
              "item_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "inv.bg item id (invbg_list_items).",
                "exclusiveMinimum": 0
              },
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              }
            }
          },
          "annotations": {
            "title": "Get item",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_item_units",
          "title": "List units of measure",
          "description": "Units of measure accepted as quantity_unit on items and invoice lines. GET /items/units.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              }
            }
          },
          "annotations": {
            "title": "List units of measure",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_payments",
          "title": "List payments",
          "description": "Recorded payments (income and expense) with amount, method, date, counterparty, how much is allocated to invoices (amount_used) and what is left (amount_left). GET /payments.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Sort direction (default desc)."
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Free-text search over the results."
              },
              "paid_to": {
                "type": "string",
                "description": "Paid on or before this date."
              },
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              },
              "order_by": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.]+$",
                "maxLength": 50,
                "minLength": 1,
                "description": "Field to sort by (for example id, date or name; see the vendor reference)."
              },
              "per_page": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 25).",
                "exclusiveMinimum": 0
              },
              "amount_gt": {
                "type": "number",
                "description": "Amount of at least this value."
              },
              "amount_lt": {
                "type": "number",
                "description": "Amount of at most this value."
              },
              "paid_from": {
                "type": "string",
                "description": "Paid on or after this date."
              },
              "contragent": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Counterparty name; % matches any run of characters."
              },
              "is_expense": {
                "type": "boolean",
                "description": "true = expenses only, false = income only."
              },
              "contragent_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Counterparty (client) id.",
                "exclusiveMinimum": 0
              },
              "payment_processor": {
                "type": "array",
                "items": {
                  "enum": [
                    "bank",
                    "cash",
                    "epay",
                    "paypal",
                    "stripe",
                    "revolut"
                  ],
                  "type": "string"
                },
                "maxItems": 6,
                "description": "How the payment was received."
              }
            }
          },
          "annotations": {
            "title": "List payments",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_get_payment",
          "title": "Get payment",
          "description": "One payment by id with its allocations to invoices (invoice_payments). GET /payments/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "payment_id"
            ],
            "properties": {
              "payment_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "inv.bg payment id (invbg_list_payments).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get payment",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_bank_accounts",
          "title": "List bank accounts",
          "description": "The company's bank accounts (alias, bank, IBAN, BIC, currency). GET /bank/accounts.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of names in the reply: bg (default) or en, where the record has both."
              },
              "per_page": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 25).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List bank accounts",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_bank_transactions",
          "title": "List bank transactions",
          "description": "Imported bank transactions with amount, date, counterparty, and whether they are linked to a document. Useful for reconciliation (linked=false = unmatched). GET /bank/transactions.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "type": {
                "enum": [
                  "deb",
                  "cred"
                ],
                "type": "string",
                "description": "deb = debit (money out), cred = credit (money in)."
              },
              "order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Sort direction (default desc)."
              },
              "linked": {
                "type": "boolean",
                "description": "true = only transactions linked to documents, false = only unlinked ones."
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Free-text search over the results."
              },
              "date_to": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "On or before this date, yyyy-mm-dd."
              },
              "order_by": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.]+$",
                "maxLength": 50,
                "minLength": 1,
                "description": "Field to sort by (for example id, date or name; see the vendor reference)."
              },
              "per_page": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 25).",
                "exclusiveMinimum": 0
              },
              "amount_gt": {
                "type": "number",
                "description": "Amount of at least this value."
              },
              "amount_lt": {
                "type": "number",
                "description": "Amount of at most this value."
              },
              "date_from": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "On or after this date, yyyy-mm-dd."
              },
              "bank_account_id": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 50,
                "description": "Only these bank accounts (invbg_list_bank_accounts)."
              }
            }
          },
          "annotations": {
            "title": "List bank transactions",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_list_cashboxes",
          "title": "List cashboxes",
          "description": "The company's cash registers (cashboxes) with names and balances. GET /cashboxes.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Free-text search over the results."
              },
              "per_page": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 25).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List cashboxes",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_get_exchange_rate",
          "title": "Get exchange rate",
          "description": "The exchange rate of a currency to BGN on a date (default: today), as inv.bg uses it for documents. GET /currency/rates/{currency}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "currency"
            ],
            "properties": {
              "date": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Rate date, yyyy-mm-dd (default today)."
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$",
                "description": "Currency, ISO 4217 code such as BGN or EUR."
              }
            }
          },
          "annotations": {
            "title": "Get exchange rate",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_create_client",
          "title": "Create client",
          "description": "WRITE: add a company client (name, Bulstat, VAT, address, MOL). Check invbg_list_clients first to avoid a duplicate. For an individual (EGN) issue the document with invbg_create_invoice and is_to_person instead. POST /clients.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "name",
              "bulstat"
            ],
            "properties": {
              "mol": {
                "type": "string",
                "maxLength": 150,
                "minLength": 1,
                "description": "Accountable person (MOL)."
              },
              "code": {
                "type": "string",
                "maxLength": 50,
                "minLength": 1,
                "description": "Your own unique client code."
              },
              "name": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1,
                "description": "Company name."
              },
              "town": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              "address": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "bulstat": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "EIK/Bulstat of the company."
              },
              "country": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Country name or code as inv.bg stores it, e.g. BG."
              },
              "is_reg_vat": {
                "type": "boolean",
                "description": "Whether the company is VAT-registered (default false)."
              },
              "vat_number": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "VAT number; required when is_reg_vat is true."
              },
              "delivery_address": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              }
            }
          },
          "annotations": {
            "title": "Create client",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_update_client",
          "title": "Update client",
          "description": "WRITE: change fields of an existing client (only the fields you pass are changed). PATCH /clients/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "client_id"
            ],
            "properties": {
              "mol": {
                "type": "string",
                "maxLength": 150,
                "minLength": 1
              },
              "code": {
                "type": "string",
                "maxLength": 50,
                "minLength": 1
              },
              "name": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "town": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              "address": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              },
              "bulstat": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1
              },
              "country": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "inv.bg client id.",
                "exclusiveMinimum": 0
              },
              "is_reg_vat": {
                "type": "boolean"
              },
              "vat_number": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1
              },
              "delivery_address": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1
              }
            }
          },
          "annotations": {
            "title": "Update client",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "invbg_create_item",
          "title": "Create item",
          "description": "WRITE: add a product or service to the catalogue (name, price, unit). POST /items.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "name",
              "price",
              "quantity_unit"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1,
                "description": "Item name."
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "maxItems": 20,
                "description": "Tags to attach."
              },
              "price": {
                "type": "number",
                "description": "Price per unit."
              },
              "name_en": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1,
                "description": "Item name in English."
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$",
                "description": "Price currency (default BGN)."
              },
              "quantity_unit": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "Unit of measure (invbg_list_item_units)."
              }
            }
          },
          "annotations": {
            "title": "Create item",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_create_invoice",
          "title": "Create invoice",
          "description": "WRITE: create a document (tax invoice by default; proforma, debit/credit note via type). It is saved as a DRAFT unless draft is false: an issued document takes the next legal number and cannot be undone through this tool. Address it to an existing client_id, or give to_name + to_address (+ to_mol and to_bulstat for a company, to_egn for a person) and inv.bg matches or creates the client from those details (an existing client matched by Bulstat or VAT number is UPDATED with the address, MOL and other details you pass). VAT: set vat_percent on the document, or on every item. POST /invoices.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "items"
            ],
            "properties": {
              "type": {
                "enum": [
                  "dan",
                  "prof",
                  "deb",
                  "cred"
                ],
                "type": "string",
                "description": "dan = tax invoice (default), prof = proforma, deb = debit note, cred = credit note."
              },
              "draft": {
                "type": "boolean",
                "description": "Save as a draft (default true). Pass false to issue the document and consume its number."
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "price",
                    "quantity",
                    "quantity_unit"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1,
                      "description": "Item name as printed on the invoice."
                    },
                    "price": {
                      "type": "number",
                      "description": "Price per unit (without VAT unless items_with_vat is true)."
                    },
                    "quantity": {
                      "type": "number",
                      "description": "Quantity.",
                      "exclusiveMinimum": 0
                    },
                    "vat_percent": {
                      "type": "number",
                      "maximum": 100,
                      "minimum": 0,
                      "description": "VAT rate for this item in percent (20 is the standard Bulgarian rate). Needed on every item unless the invoice sets vat_percent."
                    },
                    "quantity_unit": {
                      "type": "string",
                      "maxLength": 30,
                      "minLength": 1,
                      "description": "Unit of measure, e.g. pcs, hours (see invbg_list_item_units)."
                    },
                    "reduction_percent": {
                      "type": "number",
                      "maximum": 100,
                      "minimum": 0,
                      "description": "Discount on this item in percent."
                    }
                  }
                },
                "maxItems": 200,
                "minItems": 1,
                "description": "Line items."
              },
              "notes": {
                "type": "string",
                "maxLength": 2000,
                "minLength": 1,
                "description": "Notes printed on the document."
              },
              "to_egn": {
                "type": "string",
                "pattern": "^\\d{10}$",
                "description": "Recipient EGN, 10 digits (individuals), as text so leading zeros survive."
              },
              "to_mol": {
                "type": "string",
                "maxLength": 150,
                "minLength": 1,
                "description": "Recipient accountable person (MOL); required for companies when no client_id."
              },
              "to_name": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1,
                "description": "Recipient name (when no client_id)."
              },
              "to_town": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$",
                "description": "Document currency (default BGN)."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Existing client id (invbg_list_clients). Then the to_* fields are ignored.",
                "exclusiveMinimum": 0
              },
              "po_number": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "The buyer's purchase order number."
              },
              "date_event": {
                "type": "string",
                "description": "Tax event date (default: issue date)."
              },
              "number_set": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Number set id to take the number from (invbg_list_number_sets); omit unless you use several series.",
                "exclusiveMinimum": 0
              },
              "to_address": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1,
                "description": "Recipient address (required when no client_id)."
              },
              "to_bulstat": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "Recipient EIK/Bulstat (companies)."
              },
              "to_country": {
                "type": "string",
                "pattern": "^[A-Za-z]{2}$",
                "description": "Recipient country, ISO 3166-1 alpha-2."
              },
              "date_create": {
                "type": "string",
                "description": "Issue date (default now)."
              },
              "date_mature": {
                "type": "string",
                "description": "Due date."
              },
              "vat_percent": {
                "type": "number",
                "maximum": 100,
                "minimum": 0,
                "description": "VAT rate for the whole document in percent; ignored where items carry their own vat_percent."
              },
              "is_to_person": {
                "type": "boolean",
                "description": "true when the recipient is an individual (then to_egn is needed)."
              },
              "currency_rate": {
                "type": "number",
                "description": "Exchange rate to BGN (BGN/XXX). Required when currency is not BGN: take it from invbg_get_exchange_rate.",
                "exclusiveMinimum": 0
              },
              "to_is_reg_vat": {
                "type": "boolean",
                "description": "Whether the recipient company is VAT-registered."
              },
              "to_vat_number": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "Recipient VAT number (needed when to_is_reg_vat is true)."
              },
              "items_with_vat": {
                "type": "boolean",
                "description": "true if item prices already include VAT (default false)."
              },
              "payment_method": {
                "enum": [
                  "cash",
                  "bank",
                  "ondlv",
                  "card",
                  "order",
                  "cheque",
                  "barter",
                  "moneytransfer",
                  "epay",
                  "paypal",
                  "stripe",
                  "revolut",
                  "easypay",
                  "other"
                ],
                "type": "string",
                "description": "How the client pays."
              },
              "reduction_percent": {
                "type": "number",
                "maximum": 100,
                "minimum": 0,
                "description": "Discount on the whole document in percent."
              },
              "vat_exemption_reason": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1,
                "description": "Why no VAT is charged (when VAT is 0); see invbg_list_vat_exemption_reasons."
              }
            }
          },
          "annotations": {
            "title": "Create invoice",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "invbg_send_invoice_email",
          "title": "Email invoice",
          "description": "WRITE: email a document to a recipient (as a download link or an attached file). The email goes out immediately and cannot be recalled. POST /invoices/{id}/emails.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "invoice_id",
              "email"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Recipient name used in the text."
              },
              "email": {
                "type": "string",
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                "maxLength": 254,
                "description": "Recipient email address."
              },
              "message": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1,
                "description": "Message text placed in the email."
              },
              "subject": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1,
                "description": "Email subject (default: the document number)."
              },
              "delivery": {
                "enum": [
                  "link",
                  "file"
                ],
                "type": "string",
                "description": "link = a download link (default), file = attached PDF."
              },
              "language": {
                "enum": [
                  "bg",
                  "en"
                ],
                "type": "string",
                "description": "Language of the document (default: the document's own)."
              },
              "invoice_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "inv.bg document id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Email invoice",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "invbg_record_invoice_payment",
          "title": "Record invoice payment",
          "description": "WRITE: record a payment received for a document and allocate it, which updates the document's balance_paid/balance_due and payment status. Two calls: POST /payments, then POST /payments/{id}/invoices. If the allocation fails the payment stays recorded: the error names its id (see invbg_get_payment).",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "invoice_id",
              "amount",
              "payment_processor",
              "currency",
              "currency_rate"
            ],
            "properties": {
              "note": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1,
                "description": "Note stored on the payment."
              },
              "amount": {
                "type": "number",
                "description": "Amount received and allocated to this document.",
                "exclusiveMinimum": 0
              },
              "paid_at": {
                "type": "string",
                "description": "When it was paid (default now)."
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$",
                "description": "Currency of the payment (required by inv.bg), e.g. BGN or EUR."
              },
              "invoice_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "inv.bg document id the payment is for.",
                "exclusiveMinimum": 0
              },
              "contragent_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The paying client's id.",
                "exclusiveMinimum": 0
              },
              "currency_rate": {
                "type": "number",
                "description": "Exchange rate to BGN (required by inv.bg): 1 for BGN; otherwise the rate from invbg_get_exchange_rate.",
                "exclusiveMinimum": 0
              },
              "payment_processor": {
                "enum": [
                  "bank",
                  "cash",
                  "epay",
                  "paypal",
                  "stripe",
                  "revolut"
                ],
                "type": "string",
                "description": "How the money was received."
              }
            }
          },
          "annotations": {
            "title": "Record invoice payment",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": [
        {
          "name": "getting_started",
          "description": "What you can do with inv.bg here, with example requests to try."
        },
        {
          "name": "find_unpaid_invoices_oldest_first",
          "description": "The AI lists documents by payment status, client and issue date, with totals and balance due, and puts the oldest first."
        },
        {
          "name": "see_everything_invoiced_to_a_client",
          "description": "The AI finds a client and lists the documents issued to them in a date range, and adds up the totals."
        },
        {
          "name": "find_bank_transactions_not_linked_to_an_invoice",
          "description": "The AI lists imported bank transactions and picks the ones that are not linked to a document, which helps with reconciliation."
        },
        {
          "name": "create_a_draft_invoice_for_a_client",
          "description": "The AI creates an invoice, proforma or credit note saved as a draft, using your items, number set and VAT reasons."
        },
        {
          "name": "add_or_update_a_client_or_add_an_item",
          "description": "The AI adds a company client with Bulstat, VAT and address, or updates one, and adds a product or service to the catalogue."
        },
        {
          "name": "email_an_invoice_or_record_a_payment",
          "description": "The AI emails a document to a recipient, which cannot be recalled, or records a payment received and allocates it to a document."
        }
      ]
    },
    "instructions": "Tools for inv.bg, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: \"Which invoices are still unpaid, oldest first?\"; \"Show everything I invoiced to client Acme OOD this year.\"; \"Create a draft invoice for 3 hours of consulting at 80 BGN plus 20% VAT for client 1042.\". Read-only tools never change data; ask the user before a tool that creates, changes or deletes inv.bg data. Free plan: 50 tool calls per month. Run invbg_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run invbg_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run invbg_upgrade without a plan: it returns both plans, each with a payment link for the user to open. invbg_cancel_subscription cancels Pro at the end of the paid period."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}