mop_execute_xquery
Execute raw XQuery against digital scholarly editions to run custom queries, debug data structures, and explore data beyond standard tools. Returns raw XML 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)
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": {
"query": "<query>"
},
"name": "mop_execute_xquery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |