Project Moonglade publisher docs

Publisher docs

Tools and conformance

A tool is something agents can do with your entity: find a product, quote a job, book a table. Agents find it in your entity's tool list and call it through Moonglade, which checks every call before it reaches you.

The record

A tool is a public moonglade.tool record: its name, a description agents read, its input and output schemas, examples, and its class, which says what a call does:

Moonglade enforces the class, whatever runs the tool.

How it runs

The record never says how a tool runs, and how it runs can change at any time without a new record. It runs as a query over your own products and items, as a form whose requests you decide, as a small sandboxed expression, from a calendar, or through your own HTTP API, MCP server or agent. The address of your own server never appears in public data.

Your agent drafts tools with create_tool and import_tools, tries them with test_tool and sets how each runs with set_tool_impl, all in the draft until publish. The dashboard's Tools tab does the same, and so do a site folder's .moonglade/tools/, moonglade lint, moonglade test and moonglade tools set-impl (The CLI and site folder).

Lint

Lint is advice: it flags what makes a tool hard for agents to use well, such as no examples (examples.missing), a description too short or vague to choose the tool by (description.vague), an input that takes undeclared members or unbounded text (schema.loose), or a class that does not fit how the tool runs (class.dishonest). moonglade lint and create_tool show the same findings.

Conformance

Each tool has a conformance level: L1 when its record is valid, its examples match its schemas, its output schema says what it answers, a tool that hands requests to you asks for no context, its class fits how it runs, and it has a way to run; none otherwise, with the checks it fails. The level is computed the same way on your machine, in create_tool's answer and on the network, where agents read it in the tool list. A network may refuse a change that drops a published tool below L1.