execute_dql
Execute parameterized DQL queries to retrieve and manipulate data in Ditto databases with transaction support and timeout controls.
Instructions
Runs a query in Ditto using a parameterized DQL statement
Input Schema
Name | Required | Description | Default |
---|---|---|---|
apiKey | No | Ditto API key (prefer env over passing here) | |
args | No | Named parameters for the DQL | |
baseUrl | No | Overrides DITTO_BASE_URL for this call | |
statement | Yes | DQL statement to execute (single statement; no trailing ';') | |
timeoutMs | No | Per-call timeout override (ms) | |
transactionId | No | Optional X-DITTO-TXN-ID for consistency |
Input Schema (JSON Schema)
{
"properties": {
"apiKey": {
"description": "Ditto API key (prefer env over passing here)",
"minLength": 1,
"type": "string"
},
"args": {
"additionalProperties": {},
"description": "Named parameters for the DQL",
"type": "object"
},
"baseUrl": {
"description": "Overrides DITTO_BASE_URL for this call",
"format": "uri",
"type": "string"
},
"statement": {
"description": "DQL statement to execute (single statement; no trailing ';')",
"minLength": 1,
"type": "string"
},
"timeoutMs": {
"description": "Per-call timeout override (ms)",
"exclusiveMinimum": 0,
"maximum": 60000,
"type": "integer"
},
"transactionId": {
"description": "Optional X-DITTO-TXN-ID for consistency",
"minimum": 0,
"type": "integer"
}
},
"required": [
"statement"
],
"type": "object"
}