Skip to main content
Glama
BrandKity

BrandKity MCP Server

Official
by BrandKity

ensure_block

Creates a block in a brand kit only if one of the same type does not already exist; returns the block ID and indicates whether a new block was created.

Instructions

PREFERRED over add_block. Idempotent block creation: if a block of the given type already exists in the kit, returns its block_id without creating a duplicate. If no matching block exists, creates one and returns the new block_id. Use this for every block in your workflow so re-runs and retries never produce extra blocks. The "created" field in the response tells you whether a new block was created (true) or an existing one was returned (false).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kit_idYesKit UUID
typeYesBlock type
nameNoCustom display name. Only applied when a new block is created; ignored when an existing block is returned.
Behavior4/5

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

With no annotations, the description fully explains the idempotent behavior, the return value (block_id), and the 'created' field. It does not cover error cases or permissions, but the core behavioral traits are well disclosed.

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 concise with three sentences, each serving a distinct purpose: preference, idempotency explanation, usage advice, and response field clarification. It is front-loaded with the most critical information.

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 no output schema, the description provides sufficient context about the return value and idempotency. It lacks details on error handling or edge cases, but for a create-or-get operation, it is reasonably complete.

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%, and the description adds value by explaining that the name parameter is only applied on creation, ignored for existing blocks. This nuance goes beyond the schema description.

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's purpose: idempotent block creation, returning existing block_id if a block of the given type already exists, otherwise creating a new one. It explicitly names the preferred tool and distinguishes it from add_block.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'PREFERRED over add_block' and advises using this tool for every workflow to avoid duplicates on re-runs. It also clarifies when the name parameter is applied, providing clear guidance on usage.

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/BrandKity/mcp-server'

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