Skip to main content
Glama

generate_mcp_server

Generate a complete MCP server directory from selected API endpoints, then automatically create and upload it to a new public GitHub repository.

Instructions

Step 5 of 6. Generate a complete MCP server directory from the selected endpoints.

Requires step 4 (select_endpoint_bundle). Uses stored validated_spec and selected_endpoints. output_dir: optional path where to create the project (e.g. ./output/projectsight-mcp). repo_name: optional suggested repo name for step 6; if omitted, derived from API title.

If scaffold succeeds, automatically proceeds to step 6: creates a new public GitHub repo, uploads the directory, and returns repo_url. Always a new repo, always public. Returns: output_dir, files_created, tool_count, repo_url (if upload succeeded), next_step_guidance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_dirNo
repo_nameNo
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: it's part of a multi-step workflow, automatically proceeds to step 6 (GitHub repo creation) on success, always creates a new public repo, and returns specific outputs (output_dir, files_created, etc.). It also mentions the tool's scope and consequences, though it could elaborate more on error handling or side effects.

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?

The description is appropriately sized and front-loaded, starting with the core purpose. Sentences are efficient, covering prerequisites, parameters, behavior, and outputs without redundancy. Minor improvements could include bullet points for outputs or clearer separation of steps, but overall it's well-structured and concise.

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?

Given the complexity of a multi-step workflow tool with 2 parameters, 0% schema coverage, no annotations, and no output schema, the description is moderately complete. It covers purpose, prerequisites, parameters, and outputs, but lacks details on error cases, side effects, or how it integrates with siblings like 'upload_to_github'. For a tool that automatically creates public repos, more cautionary notes would enhance completeness.

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 0%, so the description must compensate. It explains both parameters: 'output_dir' as an optional path for the project and 'repo_name' as an optional suggested name for step 6, with derivation from API title if omitted. This adds meaningful context beyond the schema's basic titles. However, it doesn't detail format constraints or examples for paths, leaving some ambiguity.

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?

The description clearly states the tool's purpose: 'Generate a complete MCP server directory from the selected endpoints.' It specifies the verb (generate) and resource (MCP server directory), and mentions it's part of a workflow (step 5 of 6). However, it doesn't explicitly differentiate from sibling tools like 'upload_to_github' or 'select_endpoint_bundle', which handle related but distinct steps.

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?

The description provides clear context for when to use this tool: 'Requires step 4 (select_endpoint_bundle). Uses stored validated_spec and selected_endpoints.' It specifies prerequisites and workflow dependencies. However, it doesn't explicitly state when NOT to use it or mention alternatives among siblings, such as using 'upload_to_github' separately.

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/Charley-Forey-AI/mcp-builder-mcp'

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