Skip to main content
Glama

Machine-readable spec of mcpgen

mcpgen_schema

Emits a schema reference covering commands, flags, exit codes, the JSON envelope, and the mcpgen.json JSON Schema for generating and verifying Go MCP servers.

Instructions

Emit the mcpgen schema document: commands, flags, exit codes, the JSON envelope, and the mcpgen.json JSON Schema (mcpgen schema).

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses what the returned payload contains (commands, flags, exit codes, JSON envelope, JSON Schema), which is effectively a return-value summary, but leaves the verb 'Emit' ambiguous: it does not say whether output goes to stdout or is written to a file, nor whether the call has side effects or is purely read-only.

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?

A single front-loaded sentence with a compact colon-delimited list of contents; nearly every clause adds information. The trailing parenthetical '(mcpgen schema)' restates the tool name and is mildly redundant.

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?

With no parameters and no output schema, the description does the right thing by enumerating the returned document's sections, but it stops short of describing the transport/format of the emitted output or its size, which is the main thing an agent still needs to know before calling.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4; there is nothing for the description to disambiguate. It correctly implies the call is parameterless by describing a fixed document rather than configurable output.

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?

Uses a specific verb ('Emit') with a concrete resource ('the mcpgen schema document') and enumerates its contents: commands, flags, exit codes, the JSON envelope, and the mcpgen.json JSON Schema. This clearly separates it from the sibling mutation/validation tools (mcpgen_add, mcpgen_check, mcpgen_new), though it never names them 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?

There is no when-to-use guidance, no statement of prerequisites, and no reference to alternatives such as mcpgen_check. The agent must infer from the purpose alone that this is the self-description/discovery call rather than a validation or scaffolding call.

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

Deploy Server

Other Tools