uptrace_get_query_syntax
Access UQL syntax documentation to learn operators, functions, and patterns for querying spans, logs, and metrics in Uptrace.
Instructions
Get UQL (Uptrace Query Language) syntax documentation. Returns operators, functions, examples, and common patterns for querying spans, logs, and metrics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/uptrace_mcp/server.py:867-895 (handler)The handler implementation for 'uptrace_get_query_syntax' that calls client.get_query_syntax() and formats the response.
elif name == "uptrace_get_query_syntax": logger.info("Fetching UQL query syntax documentation") syntax_doc = client.get_query_syntax() import json lines = [ "# UQL (Uptrace Query Language) Syntax Documentation", "", f"**Language**: {syntax_doc.get('language', 'UQL')}", f"**Description**: {syntax_doc.get('description', '')}", "", ] if "basic_structure" in syntax_doc: lines.append("## Basic Structure") lines.append(f"```\n{syntax_doc['basic_structure']}\n```") lines.append("") if "operators" in syntax_doc: lines.append("## Operators") for category, ops in syntax_doc["operators"].items(): lines.append(f"### {category.title()}") for op, desc in ops.items(): lines.append(f"- `{op}`: {desc}") lines.append("") if "functions" in syntax_doc: lines.append("## Functions") - src/uptrace_mcp/server.py:300-307 (registration)The tool registration for 'uptrace_get_query_syntax' in the MCP server tool list.
Tool( name="uptrace_get_query_syntax", description="Get UQL (Uptrace Query Language) syntax documentation. Returns operators, functions, examples, and common patterns for querying spans, logs, and metrics.", inputSchema={ "type": "object", "properties": {}, }, ),