{
  "schemaVersion": "1.0",
  "application": "Mikodawa Atlas",
  "language": "es",
  "purpose": "economic-commercial-administrative-management",
  "entities": {
    "party": {
      "roles": ["customer", "supplier"],
      "rule": "one party can have one or both roles"
    },
    "item": {
      "types": ["product", "service", "kit"],
      "keyFields": [
        "name",
        "reference",
        "category",
        "salePrice",
        "costPrice",
        "taxRate",
        "unitName",
        "controlsStock"
      ]
    },
    "document": {
      "types": [
        "quote",
        "sales_order",
        "delivery_note",
        "invoice",
        "purchase_invoice",
        "credit_note"
      ],
      "editableState": "draft",
      "definitiveAction": "issue"
    },
    "receipt": {
      "types": ["receivable", "payable"],
      "states": ["pending", "partial", "paid", "overdue", "cancelled"]
    }
  },
  "mcp": {
    "endpoint": "https://mcp.mikodawa.com/mcp",
    "toolPrefix": "atlas_",
    "toolCount": 46,
    "scopes": ["atlas.read", "atlas.write", "atlas.issue", "atlas.payments"]
  },
  "agentRules": [
    "resolve ambiguous parties, items and documents before writing",
    "create commercial documents as drafts",
    "read the current resource immediately before a sensitive action",
    "show totals and impact before issuing or registering a payment",
    "do not infer issue or payment authority from atlas.write",
    "preserve source relations when converting documents",
    "never expose secrets, private storage URLs or internal tenancy fields"
  ],
  "suiteConnections": {
    "forge": ["linked customers", "document project assignment", "project economic context"],
    "sense": [
      "company setup",
      "purchase invoice extraction",
      "batch item creation",
      "document assistance"
    ],
    "flow": ["parties", "documents", "receipts", "products", "warehouses", "stock"],
    "vault": ["send eligible Atlas documents for signature", "read linked signature status"],
    "tower": ["purchase radar"]
  },
  "documentation": {
    "human": "https://docs.mikodawa.com/atlas",
    "mcp": "https://docs.mikodawa.com/atlas/mcp",
    "machineGuide": "https://docs.mikodawa.com/ai/atlas-mcp.md"
  }
}
