Skip to main content
Glama

create_custom_component

Create a custom component by providing Python code and a name, with optional description and return type.

Instructions

Create a new custom component with Python code. Requires component code, name, and optional description and return_type. Returns created component object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesPython code for the custom component
nameYesComponent name
descriptionNoOptional component description
return_typeNoOptional return type specification
Behavior2/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It states the tool creates a component but fails to mention side effects (e.g., whether it overwrites existing components), error conditions (e.g., name collisions), or any other behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that efficiently communicates the core purpose and parameter requirements. It is front-loaded and contains no filler.

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

Completeness3/5

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

The description covers the basic operation but lacks details about the return object structure, error handling, or constraints like name uniqueness. Given no output schema and relatively simple parameters, the description is minimally adequate but could be more complete.

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

Parameters3/5

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

The input schema has 100% coverage with descriptions for all four parameters. The description simply lists parameter names without adding new meaning, which meets the baseline but does not exceed it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool creates a new custom component with Python code, listing required and optional parameters. However, it does not differentiate from the sibling tool 'update_custom_component', which could cause confusion about when to use each.

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

Usage Guidelines3/5

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

The description specifies required parameters (code and name) and optional ones (description, return_type), providing basic usage guidance. However, it lacks context on when to use this tool over alternatives like 'update_custom_component' or any prerequisites.

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/nobrainer-tech/langflow-mcp'

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