Skip to main content
Glama
lzaafe-alt

lolosqltools

by lzaafe-alt

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_nameYesThe SQL object name (e.g., 'T_FaseOportunidad', 'T_ActividadDetalle')
existing_aliasesNoAlready-used aliases in the query context (to detect conflicts)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It discloses two key behaviors: the alias generation algorithm and conflict detection with alternatives. But it doesn't say what the output looks like (a single string? a list of alternatives?), whether it's deterministic, or failure modes for invalid names.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tightly-written sentences, front-loaded with the core purpose, then the algorithm, then the conflict-detection behavior. Zero waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 2-param helper tool with 100% schema coverage, the description covers the key behaviors. However, with no annotations and no output schema, the return shape and error handling are unknown. An agent would not know whether it gets one alias or multiple alternatives back.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents both parameters with examples. The description explains the algorithm that consumes table_name but adds no syntax or format detail beyond what the schema already provides. Baseline 3 is correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb+resource: 'Generates a BSG-standard table alias from a SQL object name.' This is specific and distinguishable from siblings like validate_object_name or generate_template. The mechanism (first letter of each PascalCase word after stripping prefix) adds further precision.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied: it's for generating aliases when writing SQL, and the existing_aliases parameter signals conflict detection. However, there's no explicit when-to-use guidance or alternatives mentioned among the siblings. The description doesn't say when you'd choose this over manually aliasing or another tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.