Skip to main content
Glama

Regenerate Server

regenerate_server

Regenerates server.py and related files from the registry, keeping a .bak backup of old files. Rejects locked projects.

Instructions

从 registry 重出 server.py 等文件(旧文件自动留 .bak)。locked 项目拒绝。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_dirYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral disclosure burden. It covers the key behaviors: files are regenerated from a registry, old files are preserved as .bak, and locked projects are refused. It does not mention permissions or what happens on partial failure, but the main behavioral traits are clearly disclosed.

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?

The description is a single compact sentence that front-loads the primary action and source, then adds the two most important caveats: .bak preservation and locked-project rejection. Every element earns its place with no filler.

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?

The tool is simple, has one required parameter, and an output schema exists, so return values need not be described. However, the parameter semantics gap and the absence of usage guidance relative to sibling tools leave the description slightly incomplete for an agent deciding how and when to invoke it.

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?

The schema only declares project_dir as a string with 0% description coverage, and the description does not explain what value project_dir should take, whether it is a filesystem path, an ID, or a directory name. The reference to 'locked projects' weakly implies project_dir points to a project, but this is not sufficient for an agent to confidently supply the correct value.

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

Purpose5/5

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

The description clearly states a specific action (regenerate), the resource (server.py and related files), and the source (registry), with an explicit side effect (old files kept as .bak). It is distinguishable from sibling tools like generate_mcp_server because it says 'regenerate from registry' rather than simply 'generate'.

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?

The description implies when the tool is appropriate: when files need to be recreated from the registry, and it notes that locked projects are rejected. However, it gives no explicit guidance about when to prefer this over alternatives such as generate_mcp_server, leaving the routing decision mostly to inference.

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