Skip to main content
Glama

Assign a collection to several sites

assign-collection-to-sites
Idempotent

Assigns one of your collections to several of your sites at once. WPCore plugin 2.1.0 or later on each site lists the collection's plugins on its WPCore screen, where the user installs them. The result lists the sites in three groups: assigned, already assigned, and not assigned because the site has 100 collections.

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": {
      "sites": "<sites>",
      "collection": "<collection>"
    },
    "name": "assign-collection-to-sites"
  }
}

Input Schema

NameRequiredDescriptionDefault
sitesYesUUIDs of your sites. At most 100.
collectionYesThe UUID of the collection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-destructive, idempotent write, and the description goes further by explaining the three-way result grouping (assigned, already assigned, skipped at the 100-collection limit) plus the plugin-version prerequisite. It does not cover permissions or partial-failure semantics beyond the limit case.

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?

Three short sentences, front-loaded with the action and scope, followed by the prerequisite and the return grouping. Nothing is padding, though 'where the user installs them' is slightly incidental detail.

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

Completeness5/5

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

For a two-parameter bulk-assignment tool with no output schema, the description covers the action, the version prerequisite, and the shape of the response groups an agent will need to interpret. Nothing essential to calling or reading the result is missing.

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 100% and both parameters (sites UUID array, collection UUID) are documented in the schema itself, so baseline 3 applies. The description adds no parameter-level detail beyond what the schema already states, including the 100-site cap.

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 opens with a precise verb and resource ('Assigns one of your collections to several of your sites at once'), and the 'several ... at once' phrasing distinguishes it from the singular assign-collection-to-site sibling. It does not name that sibling explicitly, so the differentiation is implicit rather than stated.

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?

It gives clear operating context: bulk assignment requires WPCore plugin 2.1.0+ on each target site, and the collection's plugins then appear on the site's WPCore screen for installation. It stops short of saying when to prefer this over the single-site variant or what to do if a site fails the version requirement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources