MCP Reference
drive_get
Get Drive
Beschreibung
Returns a single drive's metadata plus the caller's inherited workspace role. Root-level counts (folders + files, live only) are included so an agent can decide whether to page in.
Zugriff
Zugriffsprofil: gated. Module: files.
Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
account_id |
string | Ja | |
drive_id |
string | Ja | Drive prefix ID (drv_…) from drive_list. |
Eingabeschema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"account_id": {
"type": "string"
},
"drive_id": {
"type": "string",
"description": "Drive prefix ID (drv_…) from drive_list."
}
},
"required": [
"account_id",
"drive_id"
],
"type": "object"
}
Ausgabeschema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"workspace_role": {
"type": "string",
"enum": [
"member",
"manager"
]
},
"archived": {
"type": "boolean"
},
"root_folder_count": {
"type": "integer",
"description": "Live folders directly under the root."
},
"root_file_count": {
"type": "integer",
"description": "Live files directly under the root."
},
"total_file_count": {
"type": "integer",
"description": "Live files anywhere in the drive."
},
"created_by": {
"type": "object"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"name",
"description",
"workspace_role",
"archived",
"root_folder_count",
"root_file_count",
"total_file_count",
"created_by",
"created_at",
"updated_at"
],
"type": "object"
}