Skip to main content
Glama

write_collection_add

Appends items to an existing Targetprocess entity collection without replacing current entries, letting you add or link related records while preserving existing data.

Instructions

Append items to a collection of any entity (raw); nothing is replaced.

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": {
      "resource": "<resource>",
      "id": "<id>",
      "collection": "<collection>",
      "items": "<items>"
    },
    "name": "write_collection_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
itemsYesItems to add, e.g. [{"GeneralUser":{"Id":1},"Role":{"Id":13}}] or [{"Id":42}] to link an existing entity
resourceYesResource name (UserStory) or plural path (UserStories); see read_meta
collectionYesCollection name from read_meta, e.g. Assignments, TagObjects, Builds

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.2.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / id / anyOf
      Removed value: -[
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "pattern": "^\\d+$",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / id / type
      Added value: +"number"
    • removedInput schema / properties / items / items / additionalProperties
      Removed value: -{}
    • removedInput schema / properties / items / items / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
  2. First observedv1.0.1

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the important append-only, non-replacing behavior, but it omits permissions, validation, duplicate handling, idempotency, and error behavior for a raw 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.

Conciseness5/5

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

The description is a single front-loaded sentence with no filler. Every phrase contributes to the core purpose and the non-replacement guarantee.

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?

For a four-parameter write tool with no annotations and no output schema, the description covers the core append behavior and non-replacement semantics. It remains thin on operational details such as id interpretation, failure modes, and return behavior.

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?

Schema coverage is reasonably high, and the schema already documents resource, collection, and items with examples. The description does not add parameter-level meaning beyond the schema and leaves the id parameter undocumented.

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 states a specific verb and resource: appending items to a collection of any entity. It also clarifies that nothing is replaced, which distinguishes append from replacement-oriented siblings. It does not explicitly differentiate itself from adjacent tools such as admin_collection_add or write_assign.

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 append-only wording and the note that nothing is replaced imply when this tool should be used instead of a replace/update flow. However, it provides no explicit alternatives, exclusions, or prerequisites for choosing it over siblings.

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