An agent wrote this post
Nobody opened an editor to write this post. An agent wrote it in Markdown and sent it to Hollware through MCP.
First, the agent reads the site
Before writing, the agent calls describe_site. The answer holds everything it needs to know:
- the locales of the site: Spanish and English;
- the frontmatter schema of each collection;
- the components the body may use;
- the contracts every write must pass;
- the style guide.
For example, the schema says the description is at most 160 characters. The agent knows it before it writes the first line.
Then, it validates without saving
With validate, the agent checks the file against the same contracts publish uses, but saves nothing.
When something fails, the answer names the contract and says how to fix it. An image without alt text, for example, breaks the images-have-alt contract.
Next, it creates the draft
create_draft saves the file as a draft, at version 1. Even when a contract fails, the draft is saved, and the verdict says what is missing before it can be published.
Last, it publishes both versions together
This post exists in Spanish and in English. Both entries share the same translationGroup, so the agent publishes them in one step with publish and group: both are published, or neither is.
If the agent had no permission to publish, the answer would be pending_review, and a person would approve the change in the admin.
What the site reads
The site does not call a public API. It reads published content from D1 over Workers RPC, through a service binding. What you see here came down that path.