Skip to main content
Glama

midnight_scaffold_project

Create a new Midnight dApp project from templates for counter, token, voting, or blank. Generates contract files, TypeScript SDK, and optional React UI.

Instructions

Scaffold a new Midnight dApp project from a template.

Templates available:

  • counter: Simple counter contract (great for learning)

  • token: Private token with transfers and balances

  • voting: Privacy-preserving voting system

  • blank: Empty project structure

Generates:

  • Compact contract files

  • TypeScript SDK integration

  • React UI (optional)

  • Build and test configuration

Use this tool to:

  • Start a new Midnight project quickly

  • Learn from example contracts

  • Set up proper project structure

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoProject name (will be used as directory name)
templateNo
include_uiNo
package_managerNo
output_dirNo
use_cliNo
create_filesNo
Behavior3/5

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

With no annotations, the description must fully convey behavior. It mentions file generation but omits details like overwrite behavior, error handling, or network requirements. Transparency is adequate but could be more explicit.

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 well-structured with bullet points and sections, and is fairly concise. Some redundancy exists (e.g., repeated 'Use this tool to' list), but overall it earns its place.

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 (7 parameters, no output schema, no annotations), the description provides a good overview but lacks details on parameter semantics and behavioral specifics for a complete contextual understanding.

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 coverage is low (14%). The description adds meaning for the 'template' parameter by listing options with brief descriptions, but does not explain other parameters like package_manager, output_dir, use_cli, or create_files. Partial compensation.

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 the tool scaffolds a new Midnight dApp project from a template, lists available templates and generated files, and distinguishes itself from siblings like compile, deploy, and analyze tools.

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 explicitly states use cases like starting a new project and learning from examples. It implicitly avoids alternative tools by focusing on initial setup, but does not provide explicit when-not-to-use or alternative tool recommendations.

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/DaJo-Code/midnight-nextjs-mcp'

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