{
  "name": "Nuuk TMS",
  "description": "Staff fleet TMS. Write tools propose. Confirm applies a pending action in Nuuk or via confirm_action when it is still confirmable.",
  "brief": "/llms.txt",
  "rules": [
    "Staff roles only. Drivers cannot use the assistant.",
    "Do not invent CMV VINs.",
    "Trailers are not trucks. search_vehicles is trucks only.",
    "External agents may propose. Confirm applies only a pending, token-matched action owned by this staff user.",
    "Write tools propose. Pending actions expire in 60 minutes. Call list_pending_actions or reissue_action, then confirm_action or reject_action. Do not invent a confirmation token. set_page_context or X-Nuuk-Pathname plus describe_page answers what is on a staff path. POST /api/agent/mcp/files then pass companyFileId. Fuel Confirm commits when headers match or mapping is provided."
  ],
  "query": {
    "prompt": "Composer text only. Max 2000 characters. Does not send. Does not Confirm.",
    "entity": "load/{id} | trip/{id} | driver/{id} | invoice/{id} | customer/{id}. Not trailer or vehicle. Detail URLs infer the record when omitted.",
    "mode": "agent fills /assistant only. On any other staff page it docks so the page stays usable."
  },
  "hooks": {
    "page": "[data-nuuk-region=main][data-nuuk-page]",
    "record": "[data-nuuk-entity] such as load:42",
    "nav": "[data-nuuk-region=nav] [data-nuuk-nav]",
    "row": "[data-nuuk-row][data-nuuk-entity]",
    "heading": "[data-nuuk-heading=page]",
    "openAssistant": "button name starts with Open assistant",
    "askAboutPage": "button name starts with Ask AI about",
    "suggestion": "[data-nuuk-suggestion]",
    "list": "[data-nuuk-list]",
    "composer": "textbox Message to assistant",
    "confirm": "[data-nuuk-region=action-card] [data-nuuk-action=confirm]"
  },
  "mcp": {
    "method": "POST",
    "path": "/api/agent/mcp",
    "transport": "streamable-http",
    "uploadPath": "/api/agent/mcp/files",
    "auth": "X-API-KEY: nuuk_mcp_… or Authorization: Bearer nuuk_mcp_…",
    "settings": "/assistant/settings",
    "ttlMinutes": 60,
    "tools": [
      "confirm_action",
      "reject_action",
      "list_pending_actions",
      "reissue_action",
      "describe_page",
      "set_page_context"
    ]
  },
  "lists": [
    "loads",
    "trips",
    "drivers",
    "invoices",
    "customers",
    "trailers",
    "vehicles",
    "files",
    "email-intake",
    "locations",
    "expenses",
    "vendor-bills",
    "fuel-transactions",
    "fuel-cards",
    "team",
    "accidents",
    "inventory",
    "statements",
    "deductions",
    "sent-emails",
    "documents",
    "credit-memos",
    "collisions",
    "hr-applicants",
    "hr-documents",
    "hr-tasks",
    "hr-applicant-documents",
    "toll-transactions",
    "toll-transponders",
    "payroll-scheduled-payments",
    "payroll-driver-balances",
    "payroll-one-time-charges",
    "payroll-one-time-credits",
    "settlement-batches",
    "driver-settlements",
    "service-records",
    "pm-schedules",
    "service-types",
    "maintenance-vendors",
    "bank-accounts",
    "bank-transactions",
    "reconciliation-transactions",
    "reconciliation-sessions",
    "audit-logs",
    "gps-trackers",
    "billing-invoices",
    "billing-payments",
    "camera-devices",
    "video-clips",
    "dispatch-board",
    "dispatch-planning",
    "driver-financial-summary",
    "invoice-batches",
    "companies",
    "users",
    "ar-aging",
    "ap-aging",
    "top-customers-ar",
    "financial-transactions",
    "driver-loans"
  ],
  "destinations": [
    { "path": "/loads", "page": "loads", "kind": "list" },
    { "path": "/loads/{id}", "page": "load", "kind": "record", "entity": "load/{id}" },
    { "path": "/trips", "page": "trips", "kind": "list" },
    { "path": "/trips/{id}", "page": "trip", "kind": "record", "entity": "trip/{id}" },
    { "path": "/list/drivers", "page": "drivers", "kind": "list" },
    { "path": "/drivers/{id}", "page": "driver", "kind": "record", "entity": "driver/{id}" },
    { "path": "/accounting/invoices", "page": "invoices", "kind": "list" },
    { "path": "/accounting/customers", "page": "customers", "kind": "list" },
    { "path": "/trailers", "page": "trailers", "kind": "list", "note": "Not trucks. Not an assistant entity= type." },
    { "path": "/vehicle", "page": "vehicles", "kind": "list", "note": "Trucks only. Not an assistant entity= type." },
    { "path": "/dispatch-board", "page": "dispatch-board", "kind": "workspace" },
    { "path": "/email-intake", "page": "email-intake", "kind": "workspace" },
    { "path": "/integrations", "page": "integrations", "kind": "workspace" },
    { "path": "/fuel", "page": "fuel", "kind": "workspace" },
    { "path": "/fleet/gps-trackers", "page": "gps-trackers", "kind": "workspace" },
    { "path": "/maintenance", "page": "maintenance", "kind": "workspace" },
    { "path": "/files", "page": "files", "kind": "workspace" },
    { "path": "/locations", "page": "locations", "kind": "list" },
    { "path": "/payroll", "page": "payroll", "kind": "workspace" },
    { "path": "/documents", "page": "documents", "kind": "workspace" },
    { "path": "/accounting/expenses", "page": "accounting-expenses", "kind": "list" },
    { "path": "/accounting/driver-financials", "page": "driver-financials", "kind": "workspace" },
    { "path": "/accounting/vendor-bills", "page": "accounting-vendor-bills", "kind": "list" },
    { "path": "/accounting/credit-memos", "page": "accounting-credit-memos", "kind": "list" },
    { "path": "/accounting/reports", "page": "accounting-reports", "kind": "workspace" },
    { "path": "/toll", "page": "toll", "kind": "workspace" },
    { "path": "/accidents", "page": "accidents", "kind": "list" },
    { "path": "/inventory", "page": "inventory", "kind": "list" },
    { "path": "/team", "page": "team", "kind": "list" },
    { "path": "/sent-emails", "page": "sent-emails", "kind": "list" },
    { "path": "/owner-dashboard", "page": "owner-dashboard", "kind": "workspace" },
    { "path": "/collisions", "page": "collisions", "kind": "list" },
    { "path": "/hr/applicants", "page": "hr-applicants", "kind": "list" },
    { "path": "/hr/documents", "page": "hr-documents", "kind": "list" },
    { "path": "/hr/tasks", "page": "hr-tasks", "kind": "list" },
    { "path": "/accounting/deductions", "page": "accounting-deductions", "kind": "list" },
    { "path": "/accounting/banking", "page": "accounting-banking", "kind": "workspace" },
    { "path": "/accounting/bank-accounts", "page": "accounting-bank-accounts", "kind": "list" },
    { "path": "/accounting/reconciliation", "page": "accounting-reconciliation", "kind": "workspace" },
    { "path": "/compliance-matrix", "page": "compliance-matrix", "kind": "workspace" },
    { "path": "/subscription", "page": "subscription", "kind": "workspace" },
    { "path": "/billing", "page": "billing", "kind": "workspace" },
    { "path": "/billing/invoices", "page": "billing-invoices", "kind": "list" },
    { "path": "/audit-logs", "page": "audit-logs", "kind": "list" },
    { "path": "/notification-settings", "page": "notification-settings", "kind": "workspace" },
    { "path": "/cameras", "page": "cameras", "kind": "workspace" },
    { "path": "/live-cameras", "page": "live-cameras", "kind": "workspace" },
    { "path": "/video-library", "page": "video-library", "kind": "workspace" },
    { "path": "/companies", "page": "companies", "kind": "list" },
    { "path": "/users", "page": "users", "kind": "list" },
    { "path": "/assistant", "page": "assistant", "kind": "assistant" },
    { "path": "/assistant/settings", "page": "assistant-mcp-settings", "kind": "assistant" }
  ]
}
