# List upload grants

Tool: `veryfront__list_upload_grants`

List every user grant on the upload or folder that governs a path, with the target that was resolved. Requires project.uploads.admin.

## Arguments

| Name                | Type                  | Required | Description                                                                                              |
| ------------------- | --------------------- | -------- | -------------------------------------------------------------------------------------------------------- |
| `project_reference` | string · min length 1 |          | Project ID or slug.                                                                                      |
| `upload_path`       | string · min length 1 |          | Upload UUID for direct grants, or folder/file path resolved to the applicable folder visibility setting. |
| `path`              | string · min length 1 |          | Another spelling of upload\_path. Send one of the two.                                                   |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_upload_grants",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"user_id\":\"00000000-0000-0000-0000-000000000000\",\"permission\":\"read\",\"created_at\":\"string\"}],\"resolved_path\":\"string\",\"resolved_type\":\"upload\",\"resolved_id\":\"00000000-0000-0000-0000-000000000000\"}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "user_id": "00000000-0000-0000-0000-000000000000",
          "permission": "read",
          "created_at": "string"
        }
      ],
      "resolved_path": "string",
      "resolved_type": "upload",
      "resolved_id": "00000000-0000-0000-0000-000000000000"
    }
  }
}
```
