DatabaseReaderTool

@Component
class DatabaseReaderTool(dataSource: DataSource, properties: AgentConstraintsProperties)

Constructors

Link copied to clipboard
constructor(dataSource: DataSource, properties: AgentConstraintsProperties)

Functions

Link copied to clipboard
@Tool(description = "Describes the columns and schema of a given table in "schema.table" format. The table name is case-insensitive and must be from the allowlisted tables.")
fun describeTable(@McpToolParam(description = "Qualified table name in schema.table format (e.g., public.trades)") qualifiedTableName: String): List<DatabaseColumnMetadata>
Link copied to clipboard
@Tool(description = "List allowlisted tables the agent may inspect.")
fun listAllowedTables(): List<String>