suggest_alias
Generate a BSG-standard table alias from a SQL object name, detect conflicts with existing aliases, and suggest alternatives.
Instructions
Generates a BSG-standard table alias from a SQL object name. The alias is built from the first letter of each PascalCase word after stripping the prefix. Detects conflicts with existing aliases and suggests alternatives.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table_name": "<table_name>"
},
"name": "suggest_alias"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | The SQL object name (e.g., 'T_FaseOportunidad', 'T_ActividadDetalle') | |
| existing_aliases | No | Already-used aliases in the query context (to detect conflicts) |