Skip to main content
Glama

Importar CREATE TABLE

importar_ddl
Read-only

Converte um CREATE TABLE (Postgres, MySQL, Oracle ou SQL Server) num schema do massa: o tipo de cada coluna sai do nome (nr_cpf vira cpf), do CHECK ou do tipo SQL. Devolve o schema, o nome da tabela, o dialeto e avisos de colunas a revisar. Passe o schema a gerar (com tabela e dialeto) para obter os INSERT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ddlYestexto do CREATE TABLE (a primeira tabela é importada)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
avisosYescolunas a revisar; bloqueia indica coluna que o banco recusaria
schemaYeso schema do massa, com 100 linhas; ajuste rows e passe a gerar
tabelaYes
dialetoNomysql, oracle ou sqlserver, conforme o DDL; vazio é SQL padrão. Passe-o a gerar

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and idempotentHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: type inference is heuristic (from the column name, CHECK constraint, or SQL type) and it emits warnings for columns needing review, which tells the agent results may be imperfect and need validation.

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

Conciseness4/5

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

Three dense sentences that lead with the conversion and end with the next-step instruction; every sentence carries information. It is slightly packed with inference detail mid-sentence, but nothing is wasted or redundant.

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

Completeness4/5

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

An output schema exists, so return values need not be spelled out, and the description still gives the useful shape (schema, table name, dialect, warnings). Together with the annotations and full parameter coverage, an agent has enough to invoke it correctly, with only minor gaps around limits (e.g. only-first-table handling is in the schema, not the description).

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?

There is a single parameter with 100% schema description coverage, so the schema already documents it, including 'a primeira tabela é importada'. The description's only added value is implying the dialect is auto-detected rather than supplied as a parameter, which is marginal over the structured fields.

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 (imports/converts a CREATE TABLE into a 'massa' schema) and enumerates the supported dialects (Postgres, MySQL, Oracle, SQL Server). It also explains how column types are derived, which separates it from the sibling generation tools that consume the resulting schema.

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

Usage Guidelines4/5

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

It gives a clear workflow condition: pass the resulting schema to 'gerar' (with table and dialect) to obtain INSERTs, implying this tool is the first step and 'gerar' the second. It lacks an explicit when-not or a statement about what to do with an already-validated schema, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources