Skip to main content
Glama

Gerar MCP

generate_mcp

Generates a complete TypeScript MCP server project from an idea, returning package.json, src/index.ts, and mcp.json file contents for the host to save without writing to disk.

Instructions

Gera um projeto MCP TypeScript completo (package.json, src/index.ts, mcp.json). Devolve o texto dos arquivos para o host gravar. Não escreve disco.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "idea": "<idea>"
    },
    "name": "generate_mcp"
  }
}

Input Schema

NameRequiredDescriptionDefault
ideaYesO que o servidor deve fazer
nameNoNome curto do servidor, kebab-case

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, yet it does disclose the single most important non-obvious behavior: it returns file contents for the host to write and does not touch disk. It says nothing about whether it overwrites existing files, installs dependencies, or has size/rate limits.

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 short sentences, verb-first, with the artifact list and the no-disk-write caveat front-loaded. Every sentence carries distinct information and nothing is padded.

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 two-parameter generator with no annotations and no output schema, the definition covers inputs and the disk-write question, but not the shape of the returned value (e.g., how files are keyed) — which matters precisely because there is no output schema to fall back on.

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 both parameters (idea, name) are already documented in the schema; the description adds no further meaning about the idea field or the kebab-case name. Baseline 3 applies since the schema does the work.

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?

Names a specific verb (generate) and resource (a complete TypeScript MCP project), and enumerates the concrete artifacts produced (package.json, src/index.ts, mcp.json). It stops short of naming the sibling it differs from (e.g., design_mcp), but the output artifacts make the purpose unambiguous.

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 only implied: the artifact list and the 'returns file text' note suggest this is the final scaffolding step, but there is no explicit when-to-use guidance, no mention of running design_mcp or evaluate_idea first, and no stated prerequisites. An agent must infer placement in the workflow.

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