Skip to main content
Glama

add_collection_members

Add IP, CIDR, DNS, or collection members to a collection; changes are staged and require apply_change to take effect.

Instructions

Add members (network locations) to a collection. Returns a change_id; nothing changes until apply_change.

Each member needs: name, comment, location ({type, value}). Location types: ip, cidr, dns, collection.

Example member: {"id": "auto-generated", "name": "Web Server", "comment": "", "location": {"type": "ip", "value": "10.0.1.5"}}

Args: collection_id: The collection to add members to. members: List of member objects. IDs will be auto-generated if missing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "collection_id": "<collection_id>",
      "members": "<members>"
    },
    "name": "add_collection_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
membersYes
collection_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers the key non-obvious trait: mutations are deferred until apply_change, and the return value is a change_id. It does not cover permissions, duplicate-member handling, or failure behavior, which leaves a gap for a mutation tool.

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?

Front-loaded with the action and the apply_change caveat, then structured into a field breakdown and an example. The example is slightly bulky but earns its place by showing the exact member object shape that the schema does not describe.

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?

An output schema exists, so return-value detail need not be repeated, and the nested member structure is fully specified. What remains thin is error/edge behavior (duplicates, invalid location values, permission requirements) for a mutation tool with no annotations.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate, and it does: it documents collection_id, the members list, the required nested fields (name, comment, location), the allowed location types (ip, cidr, dns, collection), auto-generated IDs, and a concrete example object.

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?

States a specific verb and resource ("Add members (network locations) to a collection") and immediately clarifies the staged-write nature via the change_id/apply_change note. An agent can distinguish this from remove_collection_members and apply_change without opening any schema.

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?

Provides a clear workflow rule: the call stages changes and nothing takes effect until apply_change is invoked. It does not explicitly exclude alternatives (e.g., upsert_collection for creating collections, or remove_collection_members for deletion), but the staged-write context is enough to place the tool correctly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.