Skip to main content
Glama

Register a generated component

register_component

Register HTML sections as editable components in Neural Draft admin, receiving a component ID and translation keys to enable CMS editing.

Instructions

Register an HTML section as an editable component in the customer's Neural Draft admin. Call this for EVERY section you generate (hero, features, pricing, footer, etc.). The HTML should follow the editable-HTML conventions (read conventions://editable-html first). Returns the component_id (preserve in code as a comment) and the translation keys that were created.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesFull HTML for the section, including data-translate / data-image-key attributes.
intentYesWhat this section is for, e.g. 'marketing_hero', 'pricing_grid', 'testimonials'. Free-form but lowercase_snake_case is recommended.
positionNo0-based display order on the page. Omit to append at the end.
page_slugNoSlug of the page this section belongs to (e.g. 'home', 'about', 'pricing').
Behavior4/5

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

With no annotations provided, the description carries the transparency burden. It discloses key behaviors: the tool creates editable components, returns component_id and translation keys, and imposes a conventions requirement on the HTML. It does not cover all possible behavioral aspects (e.g., idempotency, error conditions), but the return value disclosure and prerequisite are valuable beyond basic mutation semantics.

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 three sentences, with each serving a distinct purpose: purpose (sentence 1), usage frequency (sentence 2), and return value/conventions requirement (sentence 3). It is front-loaded with the verb and resource, and every sentence contributes actionable information without waste.

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

Completeness4/5

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

Given the lack of output schema and annotations, the description provides a solid overall context: it explains the purpose, when to call, prerequisite reading, and return values. It also includes a specific preservation instruction for component_id. It omits some details (e.g., handling of optional params, error scenarios), but it is adequately complete for the tool's complexity and relatively small parameter count.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds meaningful context for the html parameter by linking to editable-HTML conventions, which is not in the schema. It also implies that the HTML should contain data-translate attributes (since translation keys are created). This goes beyond the schema's generic descriptions, justifying a 4.

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 action: 'Register an HTML section as an editable component in the customer's Neural Draft admin.' It uses a specific verb (register) and resource (HTML section as editable component), and distinguishes from siblings like create_page or delete_component. The phrase 'for EVERY section you generate' further clarifies scope, making the purpose unambiguous.

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 gives explicit guidance on when to use: 'Call this for EVERY section you generate (hero, features, pricing, footer, etc.)' and provides a prerequisite ('read conventions://editable-html first'). It does not explicitly mention when not to use or alternative tools, but the strong 'when' directive and context make usage clear. It slightly misses the 5 threshold due to lack of exclusions/alternatives.

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/vbalagovic/neuraldraft-mcp'

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