create_grail_bucket
Create a custom Grail retention bucket to store observability data with configurable retention days and data type (logs, events, spans, etc.).
Instructions
Create a new custom Grail retention bucket (WRITE, Dynatrace Storage Management v1). Requires DT_ENABLE_WRITES=true and the platform scope storage:bucket-definitions:write.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bucket": "<bucket>"
},
"name": "create_grail_bucket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | Bucket definition per Storage Management v1 spec. Required fields: bucketName (3-100 chars, lowercase letters/digits/underscores/hyphens, must start with a letter, must not start with 'default_' or 'dt_'), table (one of: logs, events, bizevents, spans, security.events, user.sessions, user.events), retentionDays (1-3657). Optional: displayName (up to 200 chars), bucketClass ('live' or 'historic', defaults to 'live'), includedQueryLimitDays (>=0), metricInterval (metric buckets only: PT1M, PT5M, PT15M, PT1H). |