veryfront__set_upload_grantsAccess
No external-service connection is required. Use a Veryfront credential with access to the requested resources. Call type: Can change resources.Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project ID or slug. Minimum length: 1. |
path | string | Yes | Upload UUID for direct grants, or folder/file path resolved to the applicable folder visibility setting. Minimum length: 1. |
grants | object[] | Yes | Entire replacement grant list; [] revokes all grants on the resolved target. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.request.json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "veryfront__set_upload_grants",
"arguments": {
"path": "example",
"grants": []
}
}
}
Result
The published output shape is summarized below. Inspect both the MCP response content andisError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
data | object[] | Yes | Primary result records returned by the tool. |
resolved_path | string | Yes | Actual uploaded file or folder visibility path whose grants were read or replaced. |
resolved_type | string | Yes | Values: "upload", "folder". |
resolved_id | string | Yes | UUID of the resolved upload or folder. Format: uuid. |
Full schemas
{
"type": "object",
"properties": {
"project_reference": {
"type": "string",
"minLength": 1,
"description": "Project ID or slug."
},
"path": {
"type": "string",
"minLength": 1,
"description": "Upload UUID for direct grants, or folder/file path resolved to the applicable folder visibility setting."
},
"grants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"format": "uuid",
"description": "Recipient user UUID."
},
"permission": {
"type": "string",
"enum": [
"read",
"write",
"admin"
],
"description": "Provide the permission.",
"default": "read"
}
},
"required": [
"user_id"
],
"additionalProperties": false,
"description": "One grant item supplied to the tool."
},
"description": "Entire replacement grant list; [] revokes all grants on the resolved target."
}
},
"required": [
"path",
"grants"
],
"additionalProperties": false,
"description": "Arguments for the replace_upload_grants tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"format": "uuid"
},
"permission": {
"type": "string",
"enum": [
"read",
"write",
"admin"
]
},
"created_at": {
"type": "string",
"description": "Grant creation timestamp."
}
},
"required": [
"user_id",
"permission",
"created_at"
],
"additionalProperties": false
},
"description": "Primary result records returned by the tool."
},
"resolved_path": {
"type": "string",
"description": "Actual uploaded file or folder visibility path whose grants were read or replaced."
},
"resolved_type": {
"type": "string",
"enum": [
"upload",
"folder"
]
},
"resolved_id": {
"type": "string",
"format": "uuid",
"description": "UUID of the resolved upload or folder."
}
},
"required": [
"data",
"resolved_path",
"resolved_type",
"resolved_id"
],
"additionalProperties": false,
"description": "Structured result returned by the replace_upload_grants tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}