Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide( fx.Annotate( NewQueryTool, fx.ResultTags(`group:"vef:mcp:tools"`), ), ), )
Module provides MCP built-in tools.
Functions ¶
func NewQueryTool ¶
func NewQueryTool(db orm.DB) mcp.ToolProvider
NewQueryTool creates a new QueryTool instance.
Types ¶
type QueryArgs ¶
type QueryArgs struct {
SQL string `json:"sql" jsonschema:"required,description=The SQL query with placeholders (?) for parameters"`
Params []any `json:"params,omitempty" jsonschema:"description=Parameters for the SQL query placeholders"`
}
QueryArgs defines the expected arguments for the database_query tool.
Click to show internal directories.
Click to hide internal directories.