Skip to main content
Glama
dbonomo
by dbonomo

project_new

Generate a buildable Pebble project for watchfaces or watchapps, with C or Alloy JavaScript, and options for platforms, companion, and settings.

Instructions

Scaffold a new, immediately buildable Pebble project.

Writes the files directly (pure Python -- no pebble new-project shell-out), so it works on hosts without the CLI. The result compiles to a .pbw with pebble build as-is.

kind -- "watchface" (default; sets watchapp.watchface) or "watchapp". language -- "c" (default) emits src/c/<name>.c (a working digital-clock TextLayer for a watchface, or a Window+TextLayer for a watchapp) + wscript; "javascript" emits an Alloy project (projectType: "moddable", the modern on-watch JS engine): src/c/mdbl.c glue + src/embeddedjs/main.js

  • manifest.json + src/pkjs/index.js.

platforms -- defaults to all seven for C (aplite/basalt/chalk/diorite/emery/flint/gabbro). Alloy runs only on the Moddable-XS platforms emery (Time 2) and gabbro (Round 2), so JavaScript projects default to and are clamped to those (dropped platforms are reported in warnings).

companion adds a phone-side src/pkjs/index.js (implied for Alloy). config adds a pebble-clay settings page (src/pkjs/config.js + the dependency + companion). dest_dir is the parent directory; the project is created in <dest_dir>/<slug(name)>.

Returns path, uuid (a fresh uuid4), kind, language, platforms, files_created, warnings, and next_steps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNowatchface
nameYes
configNo
dest_dirNo.
languageNoc
companionNo
platformsNo
Behavior5/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It details side effects (writes files directly), file structure per language, platform defaults and clamping, dropped platforms reported in warnings, and the returned fields (path, uuid, etc.). This is highly transparent.

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 long but appropriately so given 7 parameters and no schema descriptions. It is well-structured with bolded parameter names and code-formatted paths. Every sentence adds valuable information, and the key purpose is front-loaded. No fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema, so the description must explain return values, which it does clearly. It also covers file creation, platform constraints, and implications of options. It is complete for a scaffolding tool of this complexity.

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

Parameters5/5

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

The schema has 0% description coverage, so the description must explain all parameters. It thoroughly explains every parameter: kind (watchface/watchapp), language (c vs javascript with details), platforms (defaults and clamping), companion, config, and dest_dir. Even name is referenced in the path and file naming (`<slug(name)>`). This fully compensates for the schema gap.

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 first sentence states a specific verb ('Scaffold') and resource ('new, immediately buildable Pebble project'), clearly distinguishing it from siblings like pebble_build (build) and project_info (inspect). The additional detail about writing files directly without shelling out to the CLI adds further specificity.

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: for scaffolding a new project on hosts without the CLI. It explains platform clamping for JavaScript projects and the effect of companion/config options. However, it does not explicitly mention when NOT to use it or alternative tools (e.g., use pebble_build for compilation).

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/dbonomo/pebble-mcp'

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