Filters Create
filters_createCreates saved Data Studio filter resources from validated predicate/AND/OR trees, using report fingerprints and dry-run previews to keep writes conflict-checked and reversible.
Instructions
Create saved filter resources from native-validated predicate/and/or trees.
Each item has name, datasource_id and tree (see filter_validate). Requires attached source with matching draft/published; formulas validated by Google. Preserves all existing resources; one journalled report-resource write and read-back. Does not attach new filters to charts/pages/blends or publish drafts. Preview IDs are provisional. Source checks are preflight, not cross-entity CAS. operation_restore removes the created resources if no later consumers/edits conflict.
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": {
"filters": "<filters>",
"expected_report_content_fingerprint": "<expected_report_content_fingerprint>"
},
"name": "filters_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| filters | Yes | ||
| report_id | No | ||
| expected_report_content_fingerprint | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||