{
  "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": "daftra.usefulapi.io",
    "site": "usefulapi.io",
    "addresses": [
      {
        "address": "104.21.62.184",
        "endpoints": 925,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.32.0/19",
          "country": "US"
        }
      },
      {
        "address": "172.67.138.37",
        "endpoints": 925,
        "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": 925,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3032::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3030::ac43:8a25",
        "endpoints": 925,
        "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-21T22:05:02.277Z",
        "last_seen": "2026-11-21T22:05:02.277Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "daftra-mcp",
      "version": "1.6.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 924,
      "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-21T18:10:01.976Z"
        },
        {
          "id": "42088",
          "url": "https://a2x-accounting.usefulapi.io/mcp",
          "server_name": "io.usefulapi/a2x-accounting",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:11:01.183Z"
        },
        {
          "id": "42089",
          "url": "https://abacus-pos.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abacus-pos",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:12:01.080Z"
        },
        {
          "id": "42090",
          "url": "https://abaninja.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abaninja",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:13:02.135Z"
        },
        {
          "id": "42091",
          "url": "https://ablesign.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ablesign",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:14:01.432Z"
        },
        {
          "id": "42092",
          "url": "https://ably.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ably",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:15:01.611Z"
        },
        {
          "id": "42093",
          "url": "https://abra-flexi.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abra-flexi",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:16:00.986Z"
        },
        {
          "id": "42094",
          "url": "https://absence-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/absence-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:17:01.057Z"
        },
        {
          "id": "42095",
          "url": "https://abstract-api.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abstract-api",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:18:00.734Z"
        },
        {
          "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-21T18:19:00.968Z"
        },
        {
          "id": "42097",
          "url": "https://academyocean.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academyocean",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:20:01.024Z"
        },
        {
          "id": "42098",
          "url": "https://accelo.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accelo",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:21:01.299Z"
        },
        {
          "id": "42099",
          "url": "https://accredible.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accredible",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:22:00.819Z"
        },
        {
          "id": "42100",
          "url": "https://action1.usefulapi.io/mcp",
          "server_name": "io.usefulapi/action1",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:23:00.761Z"
        },
        {
          "id": "42101",
          "url": "https://acube.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acube",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:24:00.644Z"
        },
        {
          "id": "42102",
          "url": "https://acuity-scheduling.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acuity-scheduling",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:25:02.340Z"
        },
        {
          "id": "42103",
          "url": "https://adafruit-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/adafruit-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:26:02.127Z"
        },
        {
          "id": "42104",
          "url": "https://addevent.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addevent",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:27:01.202Z"
        },
        {
          "id": "42105",
          "url": "https://addressfinder.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addressfinder",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:28:00.709Z"
        }
      ]
    },
    "same_site": {
      "total": 1102,
      "sample": [
        {
          "id": "42087",
          "url": "https://17track.usefulapi.io/mcp",
          "server_name": "io.usefulapi/17track",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:10:01.976Z"
        },
        {
          "id": "42088",
          "url": "https://a2x-accounting.usefulapi.io/mcp",
          "server_name": "io.usefulapi/a2x-accounting",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:11:01.183Z"
        },
        {
          "id": "42089",
          "url": "https://abacus-pos.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abacus-pos",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:12:01.080Z"
        },
        {
          "id": "42090",
          "url": "https://abaninja.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abaninja",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:13:02.135Z"
        },
        {
          "id": "42091",
          "url": "https://ablesign.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ablesign",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:14:01.432Z"
        },
        {
          "id": "42092",
          "url": "https://ably.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ably",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:15:01.611Z"
        },
        {
          "id": "42093",
          "url": "https://abra-flexi.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abra-flexi",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:16:00.986Z"
        },
        {
          "id": "42094",
          "url": "https://absence-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/absence-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:17:01.057Z"
        },
        {
          "id": "42095",
          "url": "https://abstract-api.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abstract-api",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:18:00.734Z"
        },
        {
          "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-21T18:19:00.968Z"
        },
        {
          "id": "42097",
          "url": "https://academyocean.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academyocean",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:20:01.024Z"
        },
        {
          "id": "42098",
          "url": "https://accelo.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accelo",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:21:01.299Z"
        },
        {
          "id": "42099",
          "url": "https://accredible.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accredible",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:22:00.819Z"
        },
        {
          "id": "42100",
          "url": "https://action1.usefulapi.io/mcp",
          "server_name": "io.usefulapi/action1",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:23:00.761Z"
        },
        {
          "id": "42101",
          "url": "https://acube.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acube",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:24:00.644Z"
        },
        {
          "id": "42102",
          "url": "https://acuity-scheduling.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acuity-scheduling",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:25:02.340Z"
        },
        {
          "id": "42103",
          "url": "https://adafruit-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/adafruit-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:26:02.127Z"
        },
        {
          "id": "42104",
          "url": "https://addevent.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addevent",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:27:01.202Z"
        },
        {
          "id": "42105",
          "url": "https://addressfinder.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addressfinder",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:28:00.709Z"
        },
        {
          "id": "42106",
          "url": "https://adminpulse.usefulapi.io/mcp",
          "server_name": "io.usefulapi/adminpulse",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:29:00.620Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.usefulapi",
      "total": 1102,
      "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": 1102,
      "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": "42322",
    "server_name": "io.usefulapi/daftra",
    "url": "https://daftra.usefulapi.io/mcp",
    "host": "daftra.usefulapi.io",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-21T22:05:02.277Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "0c5c8a214621b7e7377284857d5d8fd83a69655b4906221ed6bbfa2e3fe799eb",
    "first_listed_at": "2026-11-21T22:05:02.277Z",
    "created_at": "2026-11-21T12:40:06.694Z",
    "resolved_addresses": [
      "104.21.62.184",
      "172.67.138.37",
      "2606:4700:3032::6815:3eb8",
      "2606:4700:3030::ac43:8a25"
    ]
  },
  "server": {
    "name": "io.usefulapi/daftra",
    "title": "Daftra MCP by usefulapi",
    "description": "Read clients, invoices, expenses and suppliers; create clients, invoices and expenses in Daftra.",
    "version": "1.6.0",
    "registry_status": "active",
    "repository_url": "https://github.com/m190/usefulapi-mcp",
    "website_url": "https://usefulapi.io/daftra/",
    "published_at": "2026-11-21T01:02:01.311Z",
    "updated_at": "2026-11-21T01:02:01.311Z",
    "first_seen": "2026-11-21T12:40:06.011Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "takes-payment"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T16:13:07.995Z"
  },
  "operator": {
    "key": "usefulapi.io",
    "name": "usefulapi.io",
    "platform": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 1,
    "answered": 1,
    "answered_percent": 100,
    "avg_listing_latency_ms": 160,
    "first_check_in_window": "2026-11-21T22:05:02.277Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "0c5c8a214621b7e7377284857d5d8fd83a69655b4906221ed6bbfa2e3fe799eb",
    "tools": 30,
    "resources": 0,
    "prompts": 7,
    "first_seen": "2026-11-21T22:05:02.442Z",
    "tool_names": [
      "daftra_get_site_info",
      "daftra_list_clients",
      "daftra_get_client",
      "daftra_list_invoices",
      "daftra_get_invoice",
      "daftra_list_estimates",
      "daftra_get_estimate",
      "daftra_list_invoice_payments",
      "daftra_list_client_payments",
      "daftra_list_products",
      "daftra_get_product",
      "daftra_list_product_categories",
      "daftra_list_stores",
      "daftra_list_stock_transactions",
      "daftra_list_treasuries",
      "daftra_list_expenses",
      "daftra_get_expense",
      "daftra_list_incomes",
      "daftra_list_taxes",
      "daftra_list_purchase_invoices",
      "daftra_get_purchase_invoice",
      "daftra_list_suppliers",
      "daftra_get_supplier",
      "daftra_list_notes",
      "daftra_create_client",
      "daftra_update_client",
      "daftra_create_supplier",
      "daftra_create_expense",
      "daftra_create_invoice",
      "daftra_add_note"
    ],
    "declared": {
      "tools": [
        {
          "name": "daftra_get_site_info",
          "title": "Get account info",
          "description": "The Daftra account this API key belongs to: id, business name, subdomain, country, timezone, date format, default currency and subscription expiry. Check the date format and currency here before creating records. GET /site_info.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {}
          },
          "annotations": {
            "title": "Get account info",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_clients",
          "title": "List clients",
          "description": "List clients (customers), 20 per page by default. Search by name, number, email or phone with `keywords`. Each item is wrapped in a `Client` object. GET /clients.",
          "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
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "keywords": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Search by id, client number, business name, first/last name, email or phone."
              },
              "assign_staff_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only clients assigned to this staff member.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List clients",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_get_client",
          "title": "Get client",
          "description": "One client by id (contact details, balance settings, currency, address). GET /clients/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "client_id"
            ],
            "properties": {
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Daftra client id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get client",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_invoices",
          "title": "List invoices",
          "description": "List sales invoices (and debit notes), most recent first. Filter by client, payment status, dates or free text. By default each item has the header and client; set recursive=1 for line items, payments and taxes. 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
              },
              "sort": {
                "type": "string",
                "pattern": "^[a-z_]{1,40}$",
                "description": "Field to sort by (default invoice date)."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "date_to": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Invoice date to, yyyy-mm-dd."
              },
              "keywords": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Search client name, client number, email, invoice number and order number."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only invoices of this client.",
                "exclusiveMinimum": 0
              },
              "date_from": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Invoice date from, yyyy-mm-dd."
              },
              "direction": {
                "enum": [
                  "ASC",
                  "DESC"
                ],
                "type": "string",
                "description": "Sort direction (default DESC)."
              },
              "recursive": {
                "type": "integer",
                "maximum": 1,
                "minimum": -1,
                "description": "-1 header only, 0 header + client (default), 1 also line items, payments, taxes."
              },
              "due_date_to": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Due date to, yyyy-mm-dd."
              },
              "currency_code": {
                "type": "string",
                "maxLength": 3,
                "minLength": 3,
                "description": "Only invoices in this currency, e.g. USD."
              },
              "due_date_from": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Due date from, yyyy-mm-dd."
              },
              "payment_status": {
                "type": "integer",
                "maximum": 4,
                "minimum": -3,
                "description": "0 unpaid, 1 partially paid, 2 paid, 4 overpaid, -1 draft, -2 due, -3 overdue, 3 subscriptions."
              },
              "summary_total_to": {
                "type": "number",
                "description": "Maximum invoice total."
              },
              "summary_total_from": {
                "type": "number",
                "description": "Minimum invoice total."
              }
            }
          },
          "annotations": {
            "title": "List invoices",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_get_invoice",
          "title": "Get invoice",
          "description": "One standard invoice by id with line items, payments, taxes, custom fields and client. Other document types (estimate, credit note) answer 404. GET /invoices/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "invoice_id"
            ],
            "properties": {
              "invoice_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Daftra invoice id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get invoice",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_estimates",
          "title": "List estimates",
          "description": "List estimates (quotes), most recent first. Filter by client, status, dates or free text. GET /estimates.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Search client name, number, email and estimate number."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "date_to": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Estimate date to, yyyy-mm-dd."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only estimates of this client.",
                "exclusiveMinimum": 0
              },
              "date_from": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Estimate date from, yyyy-mm-dd."
              },
              "currency_code": {
                "type": "string",
                "maxLength": 3,
                "minLength": 3,
                "description": "Only estimates in this currency."
              },
              "payment_status": {
                "type": "integer",
                "maximum": 20,
                "minimum": -1,
                "description": "Estimate status id; -1 returns only drafts."
              }
            }
          },
          "annotations": {
            "title": "List estimates",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_get_estimate",
          "title": "Get estimate",
          "description": "One estimate (quote) by id with line items, taxes and client. GET /estimates/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "estimate_id"
            ],
            "properties": {
              "estimate_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Daftra estimate id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get estimate",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_invoice_payments",
          "title": "List invoice payments",
          "description": "List payments recorded against invoices, most recent first. Opening-balance and client-credit payments are excluded. GET /invoice_payments.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "no": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only payments of the invoice with this number."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[a-z_]{1,40}$",
                "description": "Field to sort by, e.g. date, amount, id (default id)."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "status": {
                "type": "integer",
                "maximum": 10,
                "minimum": 0,
                "description": "0 not completed, 1 completed (see Daftra for other values)."
              },
              "date_to": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Payment date to (account date format)."
              },
              "amount_to": {
                "type": "number",
                "description": "Maximum amount."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only payments of this client.",
                "exclusiveMinimum": 0
              },
              "date_from": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Payment date from (account date format)."
              },
              "direction": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Sort direction (default desc)."
              },
              "amount_from": {
                "type": "number",
                "description": "Minimum amount."
              },
              "payment_method": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Payment method, e.g. cash, bank, cheque, client_credit."
              }
            }
          },
          "annotations": {
            "title": "List invoice payments",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_client_payments",
          "title": "List client payments",
          "description": "List payments received from clients, most recent first. Opening-balance and client-credit payments are excluded. GET /client_payments.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "no": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only payments of the invoice with this number."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[a-z_]{1,40}$",
                "description": "Field to sort by, e.g. date, amount, id (default id)."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "status": {
                "type": "integer",
                "maximum": 10,
                "minimum": 0,
                "description": "0 not completed, 1 completed (see Daftra for other values)."
              },
              "date_to": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Payment date to (account date format)."
              },
              "amount_to": {
                "type": "number",
                "description": "Maximum amount."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only payments of this client.",
                "exclusiveMinimum": 0
              },
              "date_from": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Payment date from (account date format)."
              },
              "direction": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Sort direction (default desc)."
              },
              "amount_from": {
                "type": "number",
                "description": "Minimum amount."
              },
              "payment_method": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Payment method, e.g. cash, bank, cheque, client_credit."
              }
            }
          },
          "annotations": {
            "title": "List client payments",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_products",
          "title": "List products",
          "description": "List products and services (name, code, price, stock) ordered by name. Search by name, code, barcode or tag with `keywords`. Each item is a `Product` object. GET /products.",
          "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
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "status": {
                "type": "integer",
                "maximum": 5,
                "minimum": 1,
                "description": "1 available, 2 low stock, 3 out of stock, 4 inactive, 5 suspended."
              },
              "category": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only products in this category id.",
                "exclusiveMinimum": 0
              },
              "keywords": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Search product name, code, barcode and tags."
              },
              "supplier_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only products of this supplier.",
                "exclusiveMinimum": 0
              },
              "product_code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Exact product code."
              }
            }
          },
          "annotations": {
            "title": "List products",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_get_product",
          "title": "Get product",
          "description": "One product by id with images and categories. GET /products/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "product_id"
            ],
            "properties": {
              "product_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Daftra product id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get product",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_product_categories",
          "title": "List product categories",
          "description": "List product categories with their parent category. GET /product_categories.",
          "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
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "parent_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only subcategories of this category id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List product categories",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_stores",
          "title": "List stores (warehouses)",
          "description": "List stores (warehouses) the key's user may view. Use the ids to filter stock transactions. GET /stores.",
          "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
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List stores",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_stock_transactions",
          "title": "List stock transactions",
          "description": "List processed stock movements (in, out, transfers), most recent first. Filter by product, store or date range. GET /stock_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
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "date_to": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Received date to (account date format)."
              },
              "store_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only movements in this store (warehouse).",
                "exclusiveMinimum": 0
              },
              "date_from": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Received date from (account date format)."
              },
              "product_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only movements of this product.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List stock transactions",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_treasuries",
          "title": "List treasuries and bank accounts",
          "description": "List treasuries and bank accounts the key's user may view, with balances. Use the ids when recording expenses. GET /treasuries.",
          "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
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List treasuries",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_expenses",
          "title": "List expenses",
          "description": "List expenses (money out), most recent first, with amount, vendor, category and treasury. Filter by dates, amount, category, vendor or status. GET /expenses.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "note": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Words in the description (all must match)."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[a-z_]{1,40}$",
                "description": "Field to sort by, e.g. date, amount, id."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "status": {
                "enum": [
                  "issued",
                  "draft"
                ],
                "type": "string",
                "description": "issued (posted) or draft."
              },
              "vendor": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Exact vendor name."
              },
              "date_to": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Date to (account date format)."
              },
              "amount_to": {
                "type": "number",
                "description": "Maximum amount."
              },
              "date_from": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Date from (account date format)."
              },
              "direction": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Sort direction (default desc)."
              },
              "amount_from": {
                "type": "number",
                "description": "Minimum amount."
              },
              "expense_category_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only this category id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List expenses",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_get_expense",
          "title": "Get expense",
          "description": "One expense by id. GET /expenses/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "expense_id"
            ],
            "properties": {
              "expense_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Daftra expense id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get expense",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_incomes",
          "title": "List incomes",
          "description": "List incomes (money in that is not an invoice payment), most recent first. Same filters as expenses. GET /incomes.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "note": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Words in the description (all must match)."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[a-z_]{1,40}$",
                "description": "Field to sort by, e.g. date, amount, id."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "status": {
                "enum": [
                  "issued",
                  "draft"
                ],
                "type": "string",
                "description": "issued (posted) or draft."
              },
              "vendor": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Exact vendor name."
              },
              "date_to": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Date to (account date format)."
              },
              "amount_to": {
                "type": "number",
                "description": "Maximum amount."
              },
              "date_from": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Date from (account date format)."
              },
              "direction": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Sort direction (default desc)."
              },
              "amount_from": {
                "type": "number",
                "description": "Minimum amount."
              },
              "expense_category_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only this category id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List incomes",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_taxes",
          "title": "List taxes",
          "description": "List the taxes configured for the account (name, rate, active). Use the ids as tax1/tax2 on invoice lines. All taxes come in one reply. GET /taxes.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "is_active": {
                "type": "boolean",
                "description": "true only active taxes, false only inactive; omit for all."
              }
            }
          },
          "annotations": {
            "title": "List taxes",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_purchase_invoices",
          "title": "List purchase invoices",
          "description": "List purchase invoices (bills from suppliers), most recent first. Search by supplier or filter by payment status. GET /purchase_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
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "keywords": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Search supplier name, email and number."
              },
              "payment_status": {
                "type": "integer",
                "maximum": 4,
                "minimum": -1,
                "description": "-1 drafts only, 0 unpaid, 1 partially paid, 2 paid, 4 overpaid; omit for all non-drafts."
              }
            }
          },
          "annotations": {
            "title": "List purchase invoices",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_get_purchase_invoice",
          "title": "Get purchase invoice",
          "description": "One purchase invoice by id with line items, supplier, taxes and payments. GET /purchase_invoices/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "purchase_invoice_id"
            ],
            "properties": {
              "purchase_invoice_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Daftra purchase invoice id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get purchase invoice",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_suppliers",
          "title": "List suppliers",
          "description": "List suppliers. Filter by name, address, postal code, country or status. GET /suppliers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Keyword in first name, last name, business name or email."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "status": {
                "type": "integer",
                "maximum": 1,
                "minimum": 0,
                "description": "0 active, 1 suspended."
              },
              "address": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Keyword in the address fields."
              },
              "postal_code": {
                "type": "string",
                "maxLength": 20,
                "minLength": 1,
                "description": "Postal code."
              },
              "country_code": {
                "type": "string",
                "maxLength": 2,
                "minLength": 2,
                "description": "ISO alpha-2 country code."
              }
            }
          },
          "annotations": {
            "title": "List suppliers",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_get_supplier",
          "title": "Get supplier",
          "description": "One supplier by id. GET /suppliers/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "supplier_id"
            ],
            "properties": {
              "supplier_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Daftra supplier id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get supplier",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_list_notes",
          "title": "List notes",
          "description": "List notes recorded against clients, invoices, estimates, purchase invoices, staff, suppliers, products and work orders: text, the record it belongs to (item_type + item_id), author, follow-up status. GET /notes.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "to": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Only notes dated on or before this date (yyyy-mm-dd or date-time)."
              },
              "from": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Only notes dated on or after this date (yyyy-mm-dd or date-time)."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "description": "Results per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "List notes",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_create_client",
          "title": "Create client",
          "description": "WRITE: create a client (customer). Only business_name is required. Without an email the client is created as offline (no email sending). Returns the new client's id and client_number. POST /clients.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "business_name"
            ],
            "properties": {
              "city": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "City."
              },
              "type": {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 2
                  },
                  {
                    "type": "number",
                    "const": 3
                  }
                ],
                "description": "2 individual, 3 business."
              },
              "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": "Email address."
              },
              "notes": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1,
                "description": "Free-text notes."
              },
              "state": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "State / province."
              },
              "phone1": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Primary phone number."
              },
              "phone2": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Secondary / mobile phone number."
              },
              "address1": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Address line 1."
              },
              "address2": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Address line 2."
              },
              "last_name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Last name."
              },
              "first_name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "First name."
              },
              "postal_code": {
                "type": "string",
                "maxLength": 20,
                "minLength": 1,
                "description": "Postal code."
              },
              "country_code": {
                "type": "string",
                "maxLength": 2,
                "minLength": 2,
                "description": "ISO 3166-1 alpha-2 country code, e.g. EG."
              },
              "business_name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "The client's business or full name (required)."
              },
              "client_number": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Own client code; generated when omitted."
              },
              "default_currency_code": {
                "type": "string",
                "maxLength": 3,
                "minLength": 3,
                "description": "Default currency, ISO 4217, e.g. USD."
              }
            }
          },
          "annotations": {
            "title": "Create client",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_update_client",
          "title": "Update client",
          "description": "WRITE: change fields of an existing client. Partial update: only the fields you pass change; business_name cannot be emptied. PUT /clients/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "client_id"
            ],
            "properties": {
              "city": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "City."
              },
              "type": {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 2
                  },
                  {
                    "type": "number",
                    "const": 3
                  }
                ],
                "description": "2 individual, 3 business."
              },
              "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": "Email address."
              },
              "notes": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1,
                "description": "Free-text notes."
              },
              "state": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "State / province."
              },
              "phone1": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Primary phone number."
              },
              "phone2": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Secondary / mobile phone number."
              },
              "address1": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Address line 1."
              },
              "address2": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Address line 2."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Daftra client id.",
                "exclusiveMinimum": 0
              },
              "last_name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Last name."
              },
              "first_name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "First name."
              },
              "postal_code": {
                "type": "string",
                "maxLength": 20,
                "minLength": 1,
                "description": "Postal code."
              },
              "country_code": {
                "type": "string",
                "maxLength": 2,
                "minLength": 2,
                "description": "ISO 3166-1 alpha-2 country code, e.g. EG."
              },
              "business_name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "New business or full name."
              },
              "default_currency_code": {
                "type": "string",
                "maxLength": 3,
                "minLength": 3,
                "description": "Default currency, ISO 4217, e.g. USD."
              }
            }
          },
          "annotations": {
            "title": "Update client",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "daftra_create_supplier",
          "title": "Create supplier",
          "description": "WRITE: create a supplier. business_name is required; email is required unless is_offline is true. Returns the new supplier's id. POST /suppliers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "business_name"
            ],
            "properties": {
              "city": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "City."
              },
              "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": "Email address."
              },
              "notes": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1,
                "description": "Free-text notes."
              },
              "state": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "State / province."
              },
              "phone1": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Primary phone number."
              },
              "phone2": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Secondary / mobile phone number."
              },
              "address1": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Address line 1."
              },
              "address2": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Address line 2."
              },
              "last_name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Last name."
              },
              "first_name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "First name."
              },
              "is_offline": {
                "type": "boolean",
                "description": "true for a supplier without an email address."
              },
              "postal_code": {
                "type": "string",
                "maxLength": 20,
                "minLength": 1,
                "description": "Postal code."
              },
              "country_code": {
                "type": "string",
                "maxLength": 2,
                "minLength": 2,
                "description": "ISO 3166-1 alpha-2 country code, e.g. EG."
              },
              "business_name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "The supplier's business name (required)."
              },
              "default_currency_code": {
                "type": "string",
                "maxLength": 3,
                "minLength": 3,
                "description": "Default currency, ISO 4217, e.g. USD."
              }
            }
          },
          "annotations": {
            "title": "Create supplier",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_create_expense",
          "title": "Create expense",
          "description": "WRITE: record an expense (money out of a treasury). amount and date are required; the treasury defaults to the primary one and the currency to the account currency. Pass unique_id so a retry cannot create it twice. Returns the new expense id and number. POST /expenses.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "amount",
              "date"
            ],
            "properties": {
              "date": {
                "type": "string",
                "maxLength": 30,
                "minLength": 6,
                "description": "Expense date (account date format, usually yyyy-mm-dd); it must fall in an open financial period."
              },
              "note": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1,
                "description": "Description."
              },
              "amount": {
                "type": "number",
                "maximum": 1000000000000,
                "description": "Gross amount, positive.",
                "exclusiveMinimum": 0
              },
              "vendor": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Vendor name."
              },
              "category": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Category name; created if it does not exist."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Linked client id.",
                "exclusiveMinimum": 0
              },
              "unique_id": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Idempotency key: reusing it returns the original expense instead of creating another."
              },
              "supplier_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Linked supplier id.",
                "exclusiveMinimum": 0
              },
              "treasury_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Treasury to withdraw from (see daftra_list_treasuries).",
                "exclusiveMinimum": 0
              },
              "currency_code": {
                "type": "string",
                "maxLength": 3,
                "minLength": 3,
                "description": "ISO 4217 code; defaults to the account currency."
              },
              "expense_number": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Own reference number; generated when omitted."
              },
              "expense_category_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Existing category id (instead of category).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Create expense",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_create_invoice",
          "title": "Create invoice",
          "description": "WRITE: create a sales invoice for a client with line items. It is saved as a DRAFT unless you pass draft=false; a final invoice posts to the books and stock. Returns the new invoice id. POST /invoices.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "client_id",
              "items"
            ],
            "properties": {
              "no": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Invoice number; generated when omitted."
              },
              "date": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Invoice date, yyyy-mm-dd; must fall in an open financial period (default today)."
              },
              "draft": {
                "type": "boolean",
                "description": "true (default) saves a draft; false creates the final invoice."
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "unit_price",
                    "quantity"
                  ],
                  "properties": {
                    "item": {
                      "type": "string",
                      "maxLength": 200,
                      "minLength": 1,
                      "description": "Line name."
                    },
                    "tax1": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": 0
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "First tax id from daftra_list_taxes; 0 or null = no tax; omit to inherit the product's tax."
                    },
                    "tax2": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": 0
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Second tax id; 0 or null = no tax; omit to inherit the product's tax."
                    },
                    "discount": {
                      "type": "number",
                      "maximum": 1000000000000,
                      "minimum": 0,
                      "description": "Line discount (a percentage unless discount_type is 2)."
                    },
                    "quantity": {
                      "type": "number",
                      "maximum": 1000000000,
                      "description": "Quantity (decimals allowed).",
                      "exclusiveMinimum": 0
                    },
                    "product_id": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "description": "Product id from daftra_list_products.",
                      "exclusiveMinimum": 0
                    },
                    "unit_price": {
                      "type": "number",
                      "maximum": 1000000000000,
                      "description": "Unit price, number only."
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 2000,
                      "minLength": 1,
                      "description": "Line description."
                    },
                    "discount_type": {
                      "anyOf": [
                        {
                          "type": "number",
                          "const": 1
                        },
                        {
                          "type": "number",
                          "const": 2
                        }
                      ],
                      "description": "1 percentage, 2 fixed value."
                    }
                  }
                },
                "maxItems": 200,
                "minItems": 1,
                "description": "Invoice lines."
              },
              "notes": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1,
                "description": "Notes shown to the client."
              },
              "discount": {
                "type": "number",
                "maximum": 100,
                "minimum": 0,
                "description": "Percentage discount on the whole invoice."
              },
              "client_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Client id (daftra_list_clients).",
                "exclusiveMinimum": 0
              },
              "po_number": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Purchase order number."
              },
              "currency_code": {
                "type": "string",
                "maxLength": 3,
                "minLength": 3,
                "description": "ISO 4217 code; defaults to the account currency."
              }
            }
          },
          "annotations": {
            "title": "Create invoice",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "daftra_add_note",
          "title": "Add note",
          "description": "WRITE: add a note to a client, invoice, estimate, purchase invoice, supplier, product, staff member or work order. The note is private unless share_with_partner is true. POST /notes/{type}/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "type",
              "id",
              "body"
            ],
            "properties": {
              "id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Id of that record.",
                "exclusiveMinimum": 0
              },
              "body": {
                "type": "string",
                "maxLength": 10000,
                "minLength": 1,
                "description": "Note text."
              },
              "date": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
                "description": "Note date, yyyy-mm-dd (default today, UTC)."
              },
              "type": {
                "enum": [
                  "client",
                  "invoice",
                  "estimate",
                  "purchase_order",
                  "staff",
                  "supplier",
                  "product",
                  "work_order"
                ],
                "type": "string",
                "description": "Kind of record (purchase_order = purchase invoice)."
              },
              "share_with_partner": {
                "type": "boolean",
                "description": "true shares the note with the client or supplier (default private)."
              }
            }
          },
          "annotations": {
            "title": "Add note",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": [
        {
          "name": "getting_started",
          "description": "What you can do with Daftra here, with example requests to try."
        },
        {
          "name": "find_overdue_invoices_and_open_balances",
          "description": "List the invoices, filtered by client or payment status, most recent first. Open one invoice to read its lines and payments."
        },
        {
          "name": "review_expenses_by_category_and_treasury",
          "description": "List the expenses for a period, with amount, vendor and category. Use the treasury list to see which account paid each one."
        },
        {
          "name": "check_low_stock_in_one_warehouse",
          "description": "List the stores, then the products with their stock. Read the stock movements of one store to see what changed."
        },
        {
          "name": "look_up_a_client_and_the_notes_on_it",
          "description": "Search the clients by name, number, email or phone. Open one client, then read the notes recorded against it."
        },
        {
          "name": "create_a_client_and_record_a_note",
          "description": "Create a client with a business name, and add a note with the context of the first contact. Change the client later with a partial update."
        },
        {
          "name": "create_an_invoice_for_a_client",
          "description": "Find the client and the products. Then create an invoice with line items. It is saved as a draft unless you set draft to false, and a final invoice posts to the books and stock."
        }
      ]
    },
    "instructions": "Tools for Daftra, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: \"Which invoices are overdue and who owes me the most?\"; \"Show the expenses I recorded this month by category.\"; \"Create a client named Nile Trading with email accounts@niletrading.example.\". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Daftra data. Free plan: 50 tool calls per month. Run daftra_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 daftra_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 daftra_upgrade without a plan: it returns both plans, each with a payment link for the user to open. daftra_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."
}