get_database_schema
Discover database tables, columns, primary keys, and foreign keys, filtered by your access role.
Instructions
Discover tables, columns, primary keys, and foreign-key relationships, filtered to only what your role is allowed to see.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_database_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | One of "admin", "analyst", "support", "readonly_guest". Ignored (and taken from your access token instead) if the server is running with authentication enabled. | |
| db_uri | No | Either a short connection name configured on the server (e.g. "prod", "reporting" — these map to environment variables like ANVAYA_DB_PROD, so no password is ever typed here), a full connection string for local testing (e.g. sqlite:///path/to/file.db), or left empty ("") to use the server's default database. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||