# List Deal Package source documents

`deal_packages.list_documents`

List this provider-owned package's reference files and offering commission documents. Does not prepare extraction.

[Deal packages guide](https://docs.levr.ai/mcp/resources/deal_packages.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: read. Required OAuth scopes: mcp.

## Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "maxLength": 4096,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "ordering": {
      "default": "title",
      "enum": [
        "title",
        "-title",
        "created_at",
        "-created_at"
      ],
      "type": "string"
    },
    "package_slug": {
      "description": "Copy package_slug from deal_packages.list. Prefix: pkg_.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "page_size": {
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "search": {
      "default": "",
      "maxLength": 255,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "package_slug"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "items": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "created_at": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "document_id": {
                "description": "Copy document_id from deal_packages.list_documents; not an answer file ID.",
                "pattern": "^pkgfile_[a-f0-9]{32}$",
                "type": "string"
              },
              "document_kind": {
                "enum": [
                  "package",
                  "commission"
                ],
                "type": "string"
              },
              "extraction_status": {
                "type": "string"
              },
              "filename": {
                "type": "string"
              },
              "offering_name": {
                "type": "string"
              },
              "source_checksum": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "document_id",
              "title",
              "description",
              "filename",
              "document_kind",
              "offering_name",
              "created_at",
              "extraction_status",
              "source_checksum"
            ],
            "type": "object"
          },
          "maxItems": 50,
          "type": "array"
        },
        "next_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "items",
        "next_cursor"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```
