Skip to main content
Glama
devhelmhq

DevHelm MCP Server

Official
by devhelmhq

add_resource_group_member

Add a monitor or service to a resource group by specifying member ID and type.

Instructions

Add a monitor to a resource group.

Required fields: monitorId.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idYes
bodyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The add_resource_group_member tool handler. It accepts a group_id and an AddResourceGroupMemberRequest body, and calls the SDK's resource_groups.add_member() to add a monitor to a resource group. The body requires a 'memberType' and 'memberId' field (as per test_typed_schemas.py line 73).
    @mcp.tool()
    def add_resource_group_member(
        group_id: str,
        body: AddResourceGroupMemberRequest,
        api_token: str | None = None,
    ) -> ToolResult:
        """Add a monitor to a resource group.
    
        Required fields: monitorId.
        """
        try:
            return serialize(
                get_client(api_token).resource_groups.add_member(
                    group_id, as_payload(body)
                )
            )
        except DevhelmError as e:
            raise_tool_error(e)
  • AddResourceGroupMemberRequest is imported from devhelm.types and used as the typed Pydantic model for the tool's body parameter. It defines the input schema for the member being added.
    from devhelm.types import (
        AddResourceGroupMemberRequest,
        CreateResourceGroupRequest,
        UpdateResourceGroupRequest,
    )
  • The tool is registered when server.py calls mod.register(mcp) for the resource_groups module (line 99 in the ALL_TOOL_MODULES list).
    for mod in ALL_TOOL_MODULES:
        mod.register(mcp)
  • The register() function in resource_groups.py decorates add_resource_group_member with @mcp.tool() to register it as an MCP tool.
    def register(mcp: FastMCP) -> None:
Behavior1/5

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

With no annotations, the description must fully disclose behavioral traits. It fails to mention whether the operation is idempotent, what happens if the member already exists, or any side effects. It also incorrectly suggests only monitors can be added.

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

Conciseness2/5

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

The description is very short, but its conciseness comes at the cost of accuracy. A concise but misleading description is worse than a slightly longer accurate one.

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

Completeness1/5

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

Given the tool has nested parameters, an output schema, and sibling tools for resource group membership management, the description is severely lacking. It should list accepted member types, required nested fields, and behavior expectations.

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

Parameters1/5

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

The description adds no value beyond the input schema and even introduces a nonexistent parameter 'monitorId'. The schema already describes memberType and memberId, but the description contradicts them. The group_id parameter is not mentioned at all.

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

Purpose2/5

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

The description states 'Add a monitor to a resource group', but the input schema allows memberType of 'service' as well, so it omits half the functionality. Additionally, it mentions a required field 'monitorId' which does not exist in the schema; the actual required fields are group_id and body with memberId. This misrepresentation harms clarity.

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

Usage Guidelines1/5

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

No guidance is provided on when to use this tool versus alternatives such as remove_resource_group_member or create_resource_group. There is no mention of prerequisites, context, or exclusions.

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