feat: add schema exploration tools (ListTables, DescribeTable, ListIndexes) #24
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-mcp#24
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Agents need database introspection tools to understand schema before writing queries. Currently the only tool available is
query_databasewhich requires knowing table names in advance.Tools to Implement
list_tablesmcp.database.blocked_tablesconfigurationdescribe_tabletable_name(string, required)list_indexestable_name(string, required)Security Notes
Files
src/Mcp/Tools/Schema/ListTables.php(new)src/Mcp/Tools/Schema/DescribeTable.php(new)src/Mcp/Tools/Schema/ListIndexes.php(new)resources/mcp/servers/schema-tools.yaml(new)Notes
Also noted in TODO.md under High Priority Features. Estimated effort: 4-5 hours.