Skip to main content
Glama

modx_assign_property_set

Attach a property set to a MODX element by specifying its ID and class or type, enabling property set assignments for snippets, chunks, templates, plugins, or TVs.

Instructions

Attach a property set to an element. Identify the element with its id + either element_class (e.g. 'modSnippet') or element_type ('snippet'/'chunk'/'template'/'plugin'/'tv').

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": {
      "element": "<element>",
      "property_set": "<property_set>"
    },
    "name": "modx_assign_property_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementYesElement id.
element_typeNo
property_setYesProperty set id.
element_classNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a mutation but says nothing about idempotency when the association already exists, required permissions, whether the element's existing property sets are affected, or what the call returns on success or failure. For an unannotated mutating tool this is a substantial gap.

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?

Two tight sentences: the action first, then the identification rule. Nothing is wasted and the ordering is front-loaded on the operation itself.

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?

With no annotations and no output schema, the description should cover more of the operational surface for a 4-parameter mutation. It does an adequate job of telling an agent how to construct a valid call, but leaves behavioral expectations and failure modes entirely unaddressed.

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

Parameters4/5

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

Schema coverage is only 50%, with element_class and element_type undocumented in the schema. The description compensates directly by explaining that identification needs the element id plus either element_class (with an example 'modSnippet') or element_type, which resolves the ambiguity of two overlapping optional parameters. It restates the enum values already in the schema, which is redundant but harmless.

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 names a specific verb and resource: 'Attach a property set to an element.' That is far more precise than a name restatement and lets an agent distinguish it from element-content tools such as modx_update_element or modx_update_element_property. It never names the inverse sibling modx_unassign_property_set, so the differentiation is implicit rather than explicit.

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

Usage Guidelines2/5

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

There is no guidance on when to use this rather than the alternative modx_unassign_property_set, no stated prerequisites (the property set and target element must already exist), and no note about what happens if the set is already attached. Usage must be inferred entirely from the verb.

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

Deploy Server

Other Tools