SQL Generator Pack
★Trustedv1.0.0MIT★Gold Verified95by AgentNode · published 1 month ago · toolpack
Generate SQL queries from natural language descriptions.
Translates natural language to SQL with schema awareness and query validation.
Quick Start
agentnode install sql-generator-packRuns in a subprocess with filtered environment by default. Declared permissions are policy-checked, not sandboxed.
Usage
From packagefrom sql_generator_pack.tool import run
result = run(
question="Show me the top 10 customers by total order value this quarter",
schema={
"customers": ["id", "name", "email", "created_at"],
"orders": ["id", "customer_id", "total_amount", "status", "created_at"]
},
dialect="postgresql"
)
print(result["sql"])
# SELECT c.name, c.email, SUM(o.total_amount) AS total_value
# FROM customers c
# JOIN orders o ON c.id = o.customer_id
# WHERE o.created_at >= date_trunc('quarter', CURRENT_DATE)
# AND o.status = 'completed'
# GROUP BY c.id, c.name, c.email
# ORDER BY total_value DESC
# LIMIT 10;
print(f"Tables used: {result['tables_referenced']}")
print(f"Query type: {result['query_type']}")Runs locally on your machine. No execution data is sent to AgentNode. Permissions are checked before execution. Learn how this works
Verification
Package installs and imports correctly. runtime checks passed. publisher tests passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Last verified 13d ago· Runner v2.0.0
Use this when you need to...
- ›Convert plain English questions into SELECT queries for analytics
- ›Generate complex JOIN queries from schema descriptions
- ›Build parameterized INSERT and UPDATE statements from natural language
- ›Translate business KPI definitions into aggregate SQL queries
- ›Generate database migration DDL from schema change descriptions
README
Version History
Capabilities
Permissions
Declared by the publisher. Checked before execution by the policy gate.
Permissions are policy-checked before execution. Network and filesystem access are not sandboxed at runtime. Learn more
Privacy
All tool execution happens locally on your machine. AgentNode never receives:
- • Tool inputs or outputs
- • Execution logs
- • Data your agent processes
Only install events and search queries are sent to the registry.
agentnode install sql-generator-packFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode