sd_execute_xquery
Run custom XQuery queries to debug, explore data structures, and perform complex operations on digital scholarly editions when standard tools fall short. Read-only, returns raw results.
Instructions
Execute a raw XQuery against the database.
PURPOSE: Run custom queries for advanced users or debugging.
WHEN TO USE:
Other tools don't provide the needed functionality
Debugging or exploring data structure
Complex custom queries
WHEN NOT TO USE:
For common operations, use specific tools instead
Don't use for write operations (read-only!)
Args: query: XQuery string to execute max_results: Maximum number of results to return
Returns: Raw query result as string (usually XML)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |