{
  "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": "precoro.usefulapi.io",
    "site": "usefulapi.io",
    "addresses": [
      {
        "address": "172.67.138.37",
        "endpoints": 956,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.128.0/20",
          "country": "US"
        }
      },
      {
        "address": "104.21.62.184",
        "endpoints": 956,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.32.0/19",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3030::ac43:8a25",
        "endpoints": 956,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3030::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3032::6815:3eb8",
        "endpoints": 956,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3032::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "172.67.138.37",
          "104.21.62.184",
          "2606:4700:3030::ac43:8a25",
          "2606:4700:3032::6815:3eb8"
        ],
        "first_seen": "2026-11-22T18:15:12.726Z",
        "last_seen": "2026-11-22T18:15:12.726Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "precoro-mcp",
      "version": "1.21.4",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 955,
      "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": "42775",
    "server_name": "io.usefulapi/precoro",
    "url": "https://precoro.usefulapi.io/mcp",
    "host": "precoro.usefulapi.io",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T18:15:12.726Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "e7092108f892ea7d6edb694e0e9d0826d319fb2627cae5c904f4a67ea77732c0",
    "first_listed_at": "2026-11-22T18:15:12.726Z",
    "created_at": "2026-11-21T12:40:12.583Z",
    "resolved_addresses": [
      "172.67.138.37",
      "104.21.62.184",
      "2606:4700:3030::ac43:8a25",
      "2606:4700:3032::6815:3eb8"
    ]
  },
  "server": {
    "name": "io.usefulapi/precoro",
    "title": "Precoro MCP by usefulapi",
    "description": "Read Precoro purchase orders, invoices, suppliers and budgets; approve, reject and submit documents.",
    "version": "1.21.4",
    "registry_status": "active",
    "repository_url": "https://github.com/m190/usefulapi-mcp",
    "website_url": "https://usefulapi.io/precoro/",
    "published_at": "2026-11-18T11:02:31.406Z",
    "updated_at": "2026-11-18T11:02:31.406Z",
    "first_seen": "2026-11-21T12:40:11.859Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "takes-payment"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T18:15:38.900Z"
  },
  "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": 257,
    "first_check_in_window": "2026-11-22T18:15:12.726Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "e7092108f892ea7d6edb694e0e9d0826d319fb2627cae5c904f4a67ea77732c0",
    "tools": 24,
    "resources": 0,
    "prompts": 7,
    "first_seen": "2026-11-22T18:15:12.984Z",
    "tool_names": [
      "precoro_list_purchase_orders",
      "precoro_get_purchase_order",
      "precoro_list_purchase_requisitions",
      "precoro_get_purchase_requisition",
      "precoro_list_invoices",
      "precoro_get_invoice",
      "precoro_list_expenses",
      "precoro_get_expense",
      "precoro_list_receipts",
      "precoro_get_receipt",
      "precoro_list_payments",
      "precoro_list_budgets",
      "precoro_list_contracts",
      "precoro_list_ap_inbox",
      "precoro_list_suppliers",
      "precoro_get_supplier",
      "precoro_list_items",
      "precoro_get_item",
      "precoro_list_reference_data",
      "precoro_approve_document",
      "precoro_reject_document",
      "precoro_submit_document",
      "precoro_create_purchase_requisition",
      "precoro_create_supplier"
    ],
    "declared": {
      "tools": [
        {
          "name": "precoro_list_purchase_orders",
          "title": "List purchase orders",
          "description": "List purchase orders (POs) with number (idn), supplier, location, totals, currency, required date, approval status, receiving status (0 not received, 1 partly, 2 received) and payment status (0 needs invoice, 1 not paid, 2 partly paid, 3 paid). Line items come only from precoro_get_purchase_order. Filter by status, last-modified time, approval date range, or 'waiting for my approval'. Page with next_page. GET /purchaseorders.",
          "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": {
                  "type": "integer",
                  "maximum": 7,
                  "minimum": 0
                },
                "maxItems": 8,
                "description": "PO types: 0 standard, 1 blanket, 2 from requisitions, 3 recurring, 4 blanket per total, 5 service, 6 recurring service, 7 service from requisitions."
              },
              "status": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 11,
                  "minimum": 0
                },
                "maxItems": 12,
                "description": "Status codes to include. 0 open (draft), 1 pending approval, 2 approved, 3 denied, 4 partly paid (invoices/expenses) or stopped (blanket PO), 5 purchased (PO/PR) or paid (invoices/expenses), 6 awaiting confirmation, 7 on revise, 8 canceled, 9 pending receipt (invoices), 10 approval review, 11 closed."
              },
              "per_page": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              },
              "approved_to": {
                "type": "string",
                "description": "Only documents whose final approval is on or before this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "approved_from": {
                "type": "string",
                "description": "Only documents whose final approval is on or after this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "modified_since": {
                "type": "string",
                "description": "Only records created or changed since this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "waiting_for_my_approval": {
                "type": "boolean",
                "description": "true = only documents waiting for approval by the user the API key belongs to (waitingForapprove=yes)."
              }
            }
          },
          "annotations": {
            "title": "List purchase orders",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_get_purchase_order",
          "title": "Get a purchase order",
          "description": "One purchase order by IDN with all items, taxes, custom fields, approval steps, receiving and payment status. GET /purchaseorders/{idn}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "idn"
            ],
            "properties": {
              "idn": {
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "description": "The document IDN: the company's own document number as shown in Precoro (not the internal id)."
              }
            }
          },
          "annotations": {
            "title": "Get a purchase order",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_purchase_requisitions",
          "title": "List purchase requisitions",
          "description": "List purchase requisitions (purchase requests): requester, location, totals, required date, approval status. Line items come only from precoro_get_purchase_requisition. Filter by status, last-modified time, approval date range, or 'waiting for my approval'. GET /purchaserequisitions.",
          "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
              },
              "status": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 11,
                  "minimum": 0
                },
                "maxItems": 12,
                "description": "Status codes to include. 0 open (draft), 1 pending approval, 2 approved, 3 denied, 4 partly paid (invoices/expenses) or stopped (blanket PO), 5 purchased (PO/PR) or paid (invoices/expenses), 6 awaiting confirmation, 7 on revise, 8 canceled, 9 pending receipt (invoices), 10 approval review, 11 closed."
              },
              "per_page": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              },
              "approved_to": {
                "type": "string",
                "description": "Only documents whose final approval is on or before this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "approved_from": {
                "type": "string",
                "description": "Only documents whose final approval is on or after this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "modified_since": {
                "type": "string",
                "description": "Only records created or changed since this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "waiting_for_my_approval": {
                "type": "boolean",
                "description": "true = only documents waiting for approval by the user the API key belongs to (waitingForapprove=yes)."
              }
            }
          },
          "annotations": {
            "title": "List purchase requisitions",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_get_purchase_requisition",
          "title": "Get a purchase requisition",
          "description": "One purchase requisition by IDN with items, custom fields and approval steps. GET /purchaserequisitions/{idn}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "idn"
            ],
            "properties": {
              "idn": {
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "description": "The document IDN: the company's own document number as shown in Precoro (not the internal id)."
              }
            }
          },
          "annotations": {
            "title": "Get a purchase requisition",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_invoices",
          "title": "List invoices and credit notes",
          "description": "List supplier invoices and credit notes: supplier, totals, currency, issue and due dates, paid sum, approval/payment status. Filter by status, kind, last-modified time, approval date range, or 'waiting for my approval'. GET /invoices.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "kind": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 4,
                  "minimum": 0
                },
                "maxItems": 5,
                "description": "Invoice kinds: 0 standard, 1 credit note, 2 from order, 3 recurring, 4 from service order."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "status": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 11,
                  "minimum": 0
                },
                "maxItems": 12,
                "description": "Status codes to include. 0 open (draft), 1 pending approval, 2 approved, 3 denied, 4 partly paid (invoices/expenses) or stopped (blanket PO), 5 purchased (PO/PR) or paid (invoices/expenses), 6 awaiting confirmation, 7 on revise, 8 canceled, 9 pending receipt (invoices), 10 approval review, 11 closed."
              },
              "per_page": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              },
              "approved_to": {
                "type": "string",
                "description": "Only documents whose final approval is on or before this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "approved_from": {
                "type": "string",
                "description": "Only documents whose final approval is on or after this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "modified_since": {
                "type": "string",
                "description": "Only records created or changed since this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "waiting_for_my_approval": {
                "type": "boolean",
                "description": "true = only documents waiting for approval by the user the API key belongs to (waitingForapprove=yes)."
              }
            }
          },
          "annotations": {
            "title": "List invoices",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_get_invoice",
          "title": "Get an invoice",
          "description": "One supplier invoice or credit note by IDN with items, taxes, matching to purchase orders and receipts, and payments. GET /invoices/{idn}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "idn"
            ],
            "properties": {
              "idn": {
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "description": "The document IDN: the company's own document number as shown in Precoro (not the internal id)."
              }
            }
          },
          "annotations": {
            "title": "Get an invoice",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_expenses",
          "title": "List expenses",
          "description": "List expense documents (purchases without a purchase order): supplier, totals, currency, status and payment status. Filter by status, last-modified time, approval date range, or 'waiting for my approval'. GET /expenses.",
          "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
              },
              "status": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 11,
                  "minimum": 0
                },
                "maxItems": 12,
                "description": "Status codes to include. 0 open (draft), 1 pending approval, 2 approved, 3 denied, 4 partly paid (invoices/expenses) or stopped (blanket PO), 5 purchased (PO/PR) or paid (invoices/expenses), 6 awaiting confirmation, 7 on revise, 8 canceled, 9 pending receipt (invoices), 10 approval review, 11 closed."
              },
              "per_page": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              },
              "approved_to": {
                "type": "string",
                "description": "Only documents whose final approval is on or before this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "approved_from": {
                "type": "string",
                "description": "Only documents whose final approval is on or after this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "modified_since": {
                "type": "string",
                "description": "Only records created or changed since this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "waiting_for_my_approval": {
                "type": "boolean",
                "description": "true = only documents waiting for approval by the user the API key belongs to (waitingForapprove=yes)."
              }
            }
          },
          "annotations": {
            "title": "List expenses",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_get_expense",
          "title": "Get an expense",
          "description": "One expense document by IDN with items, custom fields and approval steps. GET /expenses/{idn}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "idn"
            ],
            "properties": {
              "idn": {
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "description": "The document IDN: the company's own document number as shown in Precoro (not the internal id)."
              }
            }
          },
          "annotations": {
            "title": "Get an expense",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_receipts",
          "title": "List receipts",
          "description": "List goods receipts (what was delivered against purchase orders): purchase order, status and dates. Line items and received quantities come only from precoro_get_receipt. Filter by status, last-modified time, approval date range, or 'waiting for my approval'. GET /receipts.",
          "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
              },
              "status": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 11,
                  "minimum": 0
                },
                "maxItems": 12,
                "description": "Status codes to include. 0 open (draft), 1 pending approval, 2 approved, 3 denied, 4 partly paid (invoices/expenses) or stopped (blanket PO), 5 purchased (PO/PR) or paid (invoices/expenses), 6 awaiting confirmation, 7 on revise, 8 canceled, 9 pending receipt (invoices), 10 approval review, 11 closed."
              },
              "per_page": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              },
              "approved_to": {
                "type": "string",
                "description": "Only documents whose final approval is on or before this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "approved_from": {
                "type": "string",
                "description": "Only documents whose final approval is on or after this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "modified_since": {
                "type": "string",
                "description": "Only records created or changed since this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              },
              "waiting_for_my_approval": {
                "type": "boolean",
                "description": "true = only documents waiting for approval by the user the API key belongs to (waitingForapprove=yes)."
              }
            }
          },
          "annotations": {
            "title": "List receipts",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_get_receipt",
          "title": "Get a receipt",
          "description": "One goods receipt by IDN with items and approval steps. GET /receipts/{idn}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "idn"
            ],
            "properties": {
              "idn": {
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "description": "The document IDN: the company's own document number as shown in Precoro (not the internal id)."
              }
            }
          },
          "annotations": {
            "title": "Get a receipt",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_payments",
          "title": "List payments",
          "description": "List payments recorded against invoices and expenses: pay date, sum paid, status (0 paid, 8 canceled), kind (0 payment, 1 credit, 2 supplier credit balance, 3-6 prepayments/credits) and the invoice or expense paid. 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
              },
              "per_page": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              }
            }
          },
          "annotations": {
            "title": "List payments",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_budgets",
          "title": "List budgets",
          "description": "List budgets with name, period, total sum, how much is used in purchase requisitions, purchase orders, invoices and expenses, and whether the limit is enforced. GET /budgets.",
          "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": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              }
            }
          },
          "annotations": {
            "title": "List budgets",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_contracts",
          "title": "List supplier contracts",
          "description": "List supplier contracts with number, supplier, begin and end dates and whether they auto-prolong. GET /contracts.",
          "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": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              }
            }
          },
          "annotations": {
            "title": "List supplier contracts",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_ap_inbox",
          "title": "List AP inbox documents",
          "description": "List documents in the accounts-payable inbox (uploaded or emailed supplier invoices read by OCR): file name, supplier, gross total, currency, status, upload and processed dates. GET /ap/documents.",
          "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": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              }
            }
          },
          "annotations": {
            "title": "List AP inbox documents",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_suppliers",
          "title": "List suppliers",
          "description": "List suppliers: name, unique code, currencies, payment conditions, minimum order sum, contact and address fields, accounting ids, status. Bank details are never returned. Filter by last-modified time. GET /suppliers.",
          "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": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              },
              "modified_since": {
                "type": "string",
                "description": "Only records created or changed since this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              }
            }
          },
          "annotations": {
            "title": "List suppliers",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_get_supplier",
          "title": "Get a supplier",
          "description": "One supplier by id with contacts, conditions, custom field defaults and credit balance. Bank details are never returned. GET /suppliers/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The supplier id (the numeric id, not the unique code).",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get a supplier",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_items",
          "title": "List catalog items",
          "description": "List catalog items (products and services): name, SKU, unit, price, currency, supplier, group and custom fields. Filter by last-modified time. 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
              },
              "per_page": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              },
              "modified_since": {
                "type": "string",
                "description": "Only records created or changed since this UTC time: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss."
              }
            }
          },
          "annotations": {
            "title": "List catalog items",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_get_item",
          "title": "Get a catalog item",
          "description": "One catalog item by id. GET /items/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The item id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get a catalog item",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_list_reference_data",
          "title": "List reference data",
          "description": "List a configuration table: users (name, email, roles), locations, legal_entities, taxes, payment_terms, units, warehouses, product_groups, document_custom_fields (departments, projects, classes, GL accounts), item_custom_fields or supplier_custom_fields. Use it to find the ids that purchase requisitions and suppliers need (location, legal entity, custom field). Bank details are never returned. GET /users, /locations, /legalentities, /taxes, /paymentterms, /units, /warehouses, /groups, /documentcustomfields, /itemcustomfields, /suppliercustomfields.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "table"
            ],
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "table": {
                "enum": [
                  "users",
                  "locations",
                  "legal_entities",
                  "taxes",
                  "payment_terms",
                  "units",
                  "warehouses",
                  "product_groups",
                  "document_custom_fields",
                  "item_custom_fields",
                  "supplier_custom_fields"
                ],
                "type": "string",
                "description": "Which table to list."
              },
              "per_page": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Results per page: 10, 20, 50, 100 or 200 (default 20)."
              }
            }
          },
          "annotations": {
            "title": "List reference data",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "precoro_approve_document",
          "title": "Approve a document",
          "description": "WRITE: approve a document as the Precoro user the API key belongs to (that user must be a current approver of it). Approving can release spending: an approved purchase order may be sent to the supplier and an approved invoice can go to payment. Find candidates with the list tools and waiting_for_my_approval. Cannot be undone through this server. POST /{document}/{idn}/approve.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "document",
              "idn"
            ],
            "properties": {
              "idn": {
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "description": "The document IDN: the company's own document number as shown in Precoro (not the internal id)."
              },
              "document": {
                "enum": [
                  "warehouserequests",
                  "purchaserequisitions",
                  "purchaseorders",
                  "receipts",
                  "invoices",
                  "expenses"
                ],
                "type": "string",
                "description": "Document type: warehouserequests, purchaserequisitions, purchaseorders, receipts, invoices or expenses."
              }
            }
          },
          "annotations": {
            "title": "Approve a document",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "precoro_reject_document",
          "title": "Reject a document",
          "description": "WRITE: reject (deny) a document that is waiting for the key user's approval. A comment is required; the creator is notified and sees it. POST /{document}/{idn}/reject.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "document",
              "idn",
              "comment"
            ],
            "properties": {
              "idn": {
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "description": "The document IDN: the company's own document number as shown in Precoro (not the internal id)."
              },
              "comment": {
                "type": "string",
                "maxLength": 800,
                "minLength": 1,
                "description": "Why it is rejected (required, up to 800 characters)."
              },
              "document": {
                "enum": [
                  "warehouserequests",
                  "purchaserequisitions",
                  "purchaseorders",
                  "receipts",
                  "invoices",
                  "expenses"
                ],
                "type": "string",
                "description": "Document type: warehouserequests, purchaserequisitions, purchaseorders, receipts, invoices or expenses."
              }
            }
          },
          "annotations": {
            "title": "Reject a document",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "precoro_submit_document",
          "title": "Submit a draft for approval",
          "description": "WRITE: confirm a draft (open) document so it enters the approval flow (or is approved at once if no approval is needed). Approvers are notified. POST /{document}/{idn}/confirm.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "document",
              "idn"
            ],
            "properties": {
              "idn": {
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "description": "The document IDN: the company's own document number as shown in Precoro (not the internal id)."
              },
              "document": {
                "enum": [
                  "warehouserequests",
                  "purchaserequisitions",
                  "purchaseorders",
                  "receipts",
                  "invoices",
                  "expenses"
                ],
                "type": "string",
                "description": "Document type: warehouserequests, purchaserequisitions, purchaseorders, receipts, invoices or expenses."
              }
            }
          },
          "annotations": {
            "title": "Submit a draft for approval",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "precoro_create_purchase_requisition",
          "title": "Create a purchase requisition (draft)",
          "description": "WRITE: create a purchase requisition in draft (open) status for the key user; it is not submitted for approval until precoro_submit_document is called. Needs a location id, a currency, a delivery date and at least one item (a catalog item_id, or a name with quantity and price). Find ids with precoro_list_reference_data (locations, legal_entities, document_custom_fields) and precoro_list_items. All required document custom fields (for example department or project) must be passed in custom_fields. Returns the new idn and id. POST /purchaserequisitions.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "required_date",
              "currency",
              "location_id",
              "items"
            ],
            "properties": {
              "note": {
                "type": "string",
                "maxLength": 4000,
                "description": "Plain-text note (stored as HTML)."
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "quantity",
                    "price"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1,
                      "description": "Item name (required without item_id)."
                    },
                    "type": {
                      "type": "integer",
                      "maximum": 4,
                      "minimum": 0,
                      "description": "0 non-inventory (default), 1 inventory, 2 service, 3 shipping, 4 tax."
                    },
                    "price": {
                      "type": "number",
                      "maximum": 1000000000000,
                      "minimum": 0,
                      "description": "Unit price in the document currency."
                    },
                    "item_id": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "description": "A catalog item id; its name, SKU and type then come from the catalog.",
                      "exclusiveMinimum": 0
                    },
                    "quantity": {
                      "type": "number",
                      "maximum": 1000000000,
                      "exclusiveMinimum": 0
                    },
                    "supplier_id": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "description": "Supplier id for this line.",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "maxItems": 500,
                "minItems": 1
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$"
              },
              "budget_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Budget line id.",
                "exclusiveMinimum": 0
              },
              "location_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Location id (must be accessible to the key user).",
                "exclusiveMinimum": 0
              },
              "custom_fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "value",
                    "type"
                  ],
                  "properties": {
                    "id": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "description": "The document custom field id.",
                      "exclusiveMinimum": 0
                    },
                    "type": {
                      "anyOf": [
                        {
                          "type": "number",
                          "const": 1
                        },
                        {
                          "type": "number",
                          "const": 2
                        },
                        {
                          "type": "number",
                          "const": 3
                        }
                      ],
                      "description": "1 dropdown, 2 text, 3 date."
                    },
                    "value": {
                      "type": "string",
                      "maxLength": 500,
                      "description": "Dropdown: the option id as text. Text: the text. Date: an ISO 8601 date."
                    }
                  }
                },
                "maxItems": 50,
                "description": "Document custom field values (department, project, GL account...). Every required one must be given."
              },
              "required_date": {
                "type": "string",
                "description": "Delivery date, yyyy-mm-dd."
              },
              "legal_entity_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Required when the company uses legal entities.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Create a purchase requisition (draft)",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "precoro_create_supplier",
          "title": "Create a supplier",
          "description": "WRITE: create a supplier. The name must be unique in the company (a duplicate name, unique code or registration number is rejected). The supplier is available to all legal entities. Depending on the company's settings it may need approval before it can be used on orders. Returns the new supplier. POST /suppliers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "name"
            ],
            "properties": {
              "city": {
                "type": "string",
                "maxLength": 200
              },
              "name": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              "note": {
                "type": "string",
                "maxLength": 2000
              },
              "phone": {
                "type": "string",
                "maxLength": 50
              },
              "state": {
                "type": "string",
                "maxLength": 200
              },
              "country": {
                "type": "string",
                "maxLength": 100,
                "description": "Country code or name as Precoro shows it, e.g. US."
              },
              "contacts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "email"
                  ],
                  "properties": {
                    "email": {
                      "type": "string",
                      "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
                      "maxLength": 254
                    },
                    "phone": {
                      "type": "string",
                      "maxLength": 50
                    },
                    "first_name": {
                      "type": "string",
                      "maxLength": 200
                    }
                  }
                },
                "maxItems": 20,
                "description": "Supplier contacts. Precoro can email purchase orders to them."
              },
              "conditions": {
                "type": "string",
                "maxLength": 2000,
                "description": "Payment or delivery conditions text."
              },
              "currencies": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[A-Za-z]{3}$"
                },
                "maxItems": 20,
                "minItems": 1,
                "description": "Currencies the supplier is paid in, e.g. [\"USD\"]."
              },
              "postal_code": {
                "type": "string",
                "maxLength": 50
              },
              "unique_code": {
                "type": "string",
                "maxLength": 100,
                "description": "Your own supplier code (unique)."
              },
              "legal_address": {
                "type": "string",
                "maxLength": 500
              },
              "minimum_order_sum": {
                "type": "number",
                "maximum": 1000000000000,
                "minimum": 0
              },
              "delivery_period_days": {
                "type": "integer",
                "maximum": 3650,
                "minimum": 0
              }
            }
          },
          "annotations": {
            "title": "Create a supplier",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": [
        {
          "name": "getting_started",
          "description": "What you can do with Precoro here, with example requests to try."
        },
        {
          "name": "find_purchase_orders_waiting_for_your_approval",
          "description": "The AI lists purchase orders filtered by status or those waiting for your approval, with supplier, totals and payment status, and reads one with its items."
        },
        {
          "name": "list_unpaid_supplier_invoices",
          "description": "The AI lists supplier invoices and credit notes with due date, paid sum and payment status, and reads one with its matching to orders and payments."
        },
        {
          "name": "check_how_much_of_each_budget_is_spent",
          "description": "The AI lists budgets with period, total sum and how much is used in requisitions, purchase orders, invoices and expenses."
        },
        {
          "name": "approve_or_reject_documents_waiting_for_you",
          "description": "The AI finds documents waiting for your approval, then approves one or rejects it with a comment. Approving can release spending and cannot be undone here."
        },
        {
          "name": "create_a_draft_purchase_requisition_and_submit_it",
          "description": "The AI creates a draft requisition with location, currency, delivery date and items, and submits it for approval when you say so."
        },
        {
          "name": "look_up_suppliers_or_add_a_new_one",
          "description": "The AI lists suppliers with payment conditions and contacts, reads one supplier, and creates a new supplier with a unique name."
        }
      ]
    },
    "instructions": "Tools for Precoro, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: \"Which purchase orders are waiting for my approval, and what do they total?\"; \"List the unpaid supplier invoices from the last 30 days.\"; \"How much of each budget have we spent so far this quarter?\". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Precoro data. Free plan: 50 tool calls per month. Run precoro_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 precoro_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 precoro_upgrade without a plan: it returns both plans, each with a payment link for the user to open. precoro_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."
}