{
  "role": "ai-procurement-analyst",
  "source": "https://aiinthewild.com/ai-employees/ai-procurement-analyst/",
  "note": "Tool definitions in JSON Schema. Wire each one to your own systems. Functions marked approval: true should only create drafts or requests for a person to approve.",
  "functions": [
    {
      "name": "list_contracts",
      "description": "List supplier contracts with prices and terms.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "supplier": {
            "type": "string",
            "description": "Supplier"
          }
        },
        "required": []
      }
    },
    {
      "name": "get_spend",
      "description": "Read spend by supplier and category.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "Start date"
          },
          "to": {
            "type": "string",
            "description": "End date"
          }
        },
        "required": [
          "from",
          "to"
        ]
      }
    },
    {
      "name": "create_rfq_draft",
      "description": "Create a request for quotes as a draft.",
      "access": "write",
      "approval": true,
      "parameters": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Title"
          },
          "body": {
            "type": "string",
            "description": "Requirements"
          }
        },
        "required": [
          "title",
          "body"
        ]
      }
    }
  ]
}