Skip to main content
Glama

getKotlinExoQueryDocs

getKotlinExoQueryDocs
Read-only

[ExoBench server version: 1.4.27]

IMPORTANT: This tool is for Kotlin/ExoQuery ONLY. Do NOT use this tool unless the user has explicitly asked for Kotlin code and ExoQuery functionality.

[ExoBench server version: 1.4.27] Pass this version string in the 'exobenchServerVersion' parameter.

Access comprehensive ExoQuery documentation organized by topic and category.

ExoQuery is a Language Integrated Query library for Kotlin Multiplatform that translates Kotlin DSL expressions into SQL at compile time. This resource provides access to the complete documentation covering all aspects of the library.

AVAILABLE DOCUMENTATION CATEGORIES:

  1. Getting Started

    • Introduction: What ExoQuery is and why it exists

    • Installation: Project setup and dependencies

    • Quick Start: First query in minutes

  2. Core Concepts

    • SQL Blocks: The sql { } construct and query building

    • Parameters: Safe runtime data handling

    • Composing Queries: Functional query composition

  3. Query Operations

    • Basic Operations: Map, filter, and transformations

    • Joins: Inner, left, and implicit joins

    • Grouping: GROUP BY and HAVING clauses

    • Sorting: ORDER BY operations

    • Subqueries: Correlated and nested queries

    • Window Functions: Advanced analytics

  4. Actions

    • Insert: INSERT with returning and conflict handling

    • Update: UPDATE operations with setParams

    • Delete: DELETE with returning

    • Batch Operations: Bulk inserts and updates

  5. Advanced Features

    • SQL Fragment Functions: Reusable SQL components with @SqlFragment

    • Dynamic Queries: Runtime query generation with @SqlDynamic

    • Free Blocks: Custom SQL and user-defined functions

    • Transactions: Transaction support patterns

    • Polymorphic Queries: Interfaces, sealed classes, higher-order functions

    • Local Variables: Variables within SQL blocks

  6. Data Handling

    • Serialization: kotlinx.serialization integration

    • Custom Type Encoding: Custom encoders and decoders

    • JSON Columns: JSON and JSONB support (PostgreSQL)

    • Column Naming: @SerialName and @ExoEntity annotations

    • Nested Datatypes: Complex data structures

    • Kotlinx Integration: JSON and other serialization formats

  7. Schema-First Development

    • Entity Generation: Compile-time code generation from database schema

    • AI-Enhanced Entities: Using LLMs to generate cleaner entity code

  8. Reference

    • SQL Functions: Available string, math, and date functions

    • API Reference: Core types and function signatures

HOW TO USE THIS RESOURCE:

The resource URI follows the pattern: exoquery://docs/{file-path}

Where {file-path} is the relative path from the docs root, e.g.:

  • exoquery://docs/01-getting-started/01-introduction.md

  • exoquery://docs/03-query-operations/02-joins.md

  • exoquery://docs/05-advanced-features/01-sql-fragments.md

To discover available documents, use the listKotlinExoQueryDocs tool which will return all available documentation files with their titles, descriptions, and categories.

Each document includes:

  • Title and description

  • Category classification

  • Complete markdown content with code examples

  • Cross-references to related topics

WHEN TO USE:

  • User asks about ExoQuery syntax, features, or capabilities

  • User needs examples of specific query patterns

  • User encounters errors and needs to verify correct usage

  • User wants to understand advanced features or best practices

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": {
      "filePath": "<filePath>"
    },
    "name": "getKotlinExoQueryDocs"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYes The documentation file path to retrieve. Format: Relative path from docs root (e.g., "01-getting-started/01-introduction.md") The full URI is: exoquery://docs/{file-path} To find available file paths, use the listKotlinExoQueryDocs tool which returns metadata for all documentation files including their paths, titles, categories, and descriptions. Common paths: - Getting Started: 01-getting-started/01-introduction.md, 01-getting-started/02-installation.md, 01-getting-started/03-quick-start.md - Core Concepts: 02-core-concepts/01-sql-blocks.md, 02-core-concepts/02-parameters.md, 02-core-concepts/03-composing-queries.md - Query Operations: 03-query-operations/01-basic-operations.md, 03-query-operations/02-joins.md, 03-query-operations/03-grouping.md - Actions: 04-actions/01-insert.md, 04-actions/02-update.md, 04-actions/03-delete.md - Advanced: 05-advanced-features/01-sql-fragments.md, 05-advanced-features/02-dynamic-queries.md - Data Handling: 06-data-handling/03-json-columns.md, 06-data-handling/04-column-naming.md
correlationIdNo [TRACKING ONLY — does NOT preserve DB state, schema, or settings between calls.] Echo the correlationId from the previous ExoBench response so the ExoBench team can correlate your workflow for analytics. Omitted = a new one is created. Each tool call still provisions a fresh ephemeral DB from its own schema parameter.
exobenchServerVersionNoExoBench server version — copy the X.X.X from the [ExoBench server version: X.X.X] tag at the top of this tool's description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description adds value beyond that by describing what each document contains (title, category, full markdown with code examples, cross-references) and by reinforcing the version-string handshake. It does not state whether unknown file paths error out or return empty, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded gating sentence is well placed, but the '[ExoBench server version: 1.4.27]' banner is duplicated verbatim in the first few lines, and the eight-category documentation taxonomy largely restates what listKotlinExoQueryDocs returns. That taxonomy aids routing, but the repetition and length cost it points.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and does so adequately by enumerating what a fetched document includes. The single required parameter is fully specified and the discovery path is named, so an agent has everything needed to invoke it correctly; only failure behavior for bad paths is unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters including the common-path catalog and the correlationId caveat are already documented in the schema. The description only adds the URI template mapping, which the schema also spells out, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Access comprehensive ExoQuery documentation'), states the URI pattern exoquery://docs/{file-path}, and gives concrete example paths. It explicitly separates itself from listKotlinExoQueryDocs, which is described as the discovery tool, so an agent can pick the right sibling without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides both an explicit negative gate ('Do NOT use this tool unless the user has explicitly asked for Kotlin code and ExoQuery functionality') and a WHEN TO USE list covering syntax questions, examples, error verification, and advanced features. It also routes discovery to listKotlinExoQueryDocs, leaving no ambiguity about the call order.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources