Skip to main content
Glama
remiehneppo

Code Generator MCP Server

by remiehneppo

generate_multi_function_module

Generate code for a multi-function module and optional unit tests from function specs, language, and test cases.

Instructions

Generate code for a multi-function module (Template 4) using coder expert model.

If generate_test_file is True, it will co-generate a matching unit test suite.

IMPORTANT: All parameters (such as 'task', 'module_purpose', 'context', 'functions' list with its descriptions/constraints, etc.) MUST be provided in English. If the user's prompt or request is in Vietnamese or another language, the calling agent must automatically translate the text of these parameter values into English before invoking this tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYes
contextNo
languageYes
functionsYes
test_casesYes
dependenciesNo
shared_typesNo
export_formatNo
module_purposeYes
generate_test_fileNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries full behavioral burden. It usefully discloses the coder expert model, optional co-generated unit test suite, and mandatory English parameter translation, but omits permissions, side effects, determinism, and other operational traits.

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?

Front-loads the purpose, then states the conditional test-generation behavior, then the critical language requirement. Every sentence adds information and there is no redundant restatement.

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

Completeness2/5

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

For a 10-parameter code-generation tool with no annotations, the description is incomplete. It does not explain key parameters, usage relative to siblings, or behavioral constraints beyond English translation and optional test generation, even though output-schema existence means return values need not be described.

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

Parameters2/5

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

Top-level schema description coverage is 0% across 10 parameters, so the description must compensate. It only names or hints at task, module_purpose, context, functions, and generate_test_file, while language, test_cases, dependencies, shared_types, export_format, and most function-spec fields remain unexplained.

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?

States a specific verb and resource: generate code for a multi-function module (Template 4) using a coder expert model. The phrase 'multi-function module' distinguishes it from generate_standard_function, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

Provides no guidance on when to choose this over generate_standard_function, generate_codebase_context, or generate_bugfix_refactor. The only conditional behavior mentioned is if generate_test_file is True, which is execution behavior rather than tool selection guidance.

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