Skip to main content
Glama

generateCode

generateCode

Generate source code from a database table by selecting a table and a template pack. Uses current database context to produce file contents based on the template.

Instructions

Generate source code from a database table using a template pack. Uses the current context (project/connection/schema) for database connection. Returns generated file contents based on the specified template.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableNameYesTable name to generate code for
templatePackIdYesTemplate pack ID to use for code generation
schemaNoDatabase schema name. If omitted, uses current context schema.
Behavior2/5

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

No annotations provided, so description must disclose all behavioral traits. Does not state whether tool is read-only, has side effects (e.g., writing files), error behavior (e.g., missing table), or required permissions. Only states it returns file contents.

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 focused sentences: purpose, context requirement, output. No redundant words, information is front-loaded.

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?

Covers purpose, context, and return type, but lacks details on error conditions, valid template packs, prerequisite setup for context, and return format specifics. Adequate for a simple tool.

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 has 100% parameter description coverage, so baseline is 3. Description adds context about schema omission using current context, but does not elaborate on tableName or templatePackId beyond schema.

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

Purpose4/5

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

Description clearly states verb 'generate source code' and resource 'from a database table using a template pack'. It distinguishes from siblings like createTables (table creation vs code generation) though not explicitly.

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?

Implied usage: use when generating code from a table. Mentions current context for connection, but no explicit when-not-to-use or alternatives among siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/unvus/neosql-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server