Skip to main content
Glama
devhelmhq

DevHelm MCP Server

Official
by devhelmhq

create_tag

Creates a tag within an organization for categorizing resources. Requires a unique name; color is optional.

Instructions

Create a tag.

Required fields: name. Optional: color.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Handler function that creates a tag by delegating to the SDK client's tags.create() method with the serialized body payload.
    def create_tag(body: CreateTagRequest, api_token: str | None = None) -> ToolResult:
        """Create a tag.
    
        Required fields: name. Optional: color.
        """
        try:
            return serialize(get_client(api_token).tags.create(as_payload(body)))
        except DevhelmError as e:
            raise_tool_error(e)
  • Imports CreateTagRequest type from the devhelm SDK, which defines the input schema for create_tag (required: name, optional: color).
    from devhelm.types import CreateTagRequest, UpdateTagRequest
  • The register() function uses @mcp.tool() decorator to register create_tag (and sibling tag tools) with the FastMCP server.
    def register(mcp: FastMCP) -> None:
        @mcp.tool()
        def list_tags(api_token: str | None = None) -> ToolResult:
            """List all tags in the workspace."""
            try:
                return serialize(get_client(api_token).tags.list())
            except DevhelmError as e:
                raise_tool_error(e)
    
        @mcp.tool()
        def get_tag(tag_id: str, api_token: str | None = None) -> ToolResult:
            """Get a tag by ID."""
            try:
                return serialize(get_client(api_token).tags.get(tag_id))
            except DevhelmError as e:
                raise_tool_error(e)
    
        @mcp.tool()
        def create_tag(body: CreateTagRequest, api_token: str | None = None) -> ToolResult:
            """Create a tag.
    
            Required fields: name. Optional: color.
            """
            try:
                return serialize(get_client(api_token).tags.create(as_payload(body)))
            except DevhelmError as e:
                raise_tool_error(e)
    
        @mcp.tool()
        def update_tag(
            tag_id: str, body: UpdateTagRequest, api_token: str | None = None
        ) -> ToolResult:
            """Update a tag."""
            try:
                return serialize(
                    get_client(api_token).tags.update(tag_id, as_payload(body))
                )
            except DevhelmError as e:
                raise_tool_error(e)
    
        @mcp.tool()
        def delete_tag(tag_id: str, api_token: str | None = None) -> str:
            """Delete a tag."""
            try:
                get_client(api_token).tags.delete(tag_id)
                return "Tag deleted successfully."
            except DevhelmError as e:
                raise_tool_error(e)
  • Server-level registration that iterates over all tool modules (including tags) and calls their register() function to wire tools into the MCP server.
    for mod in ALL_TOOL_MODULES:
        mod.register(mcp)
Behavior2/5

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

No annotations provided. The description lacks behavioral details such as behavior on duplicate names (uniqueness mentioned in schema but not here), permissions, or side effects.

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?

Two efficient sentences with purpose upfront. Could be slightly expanded for completeness without losing conciseness.

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?

Given no annotations and an output schema, the description is minimal. It omits context about uniqueness errors or org scope, but schema fills some gaps.

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 description adds no meaning beyond the input schema, which already describes name (maxLength, uniqueness) and color (default, hex pattern). Baseline 3 is appropriate as schema coverage is high.

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 'Create a tag', with a specific verb and resource. It distinguishes from sibling tools like create_monitor by being tag-specific.

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?

It mentions required and optional fields, but does not provide explicit guidance on when to use or not use this tool, nor mentions alternatives like update_tag.

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

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