Skip to main content
Glama

modx_create_context_setting

Create a context-level setting to override a system setting for a specific MODX context, with optional value, area, namespace, and xtype.

Instructions

Create a context-level setting (overrides the system setting for that context).

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": {
      "context_key": "<context_key>",
      "key": "<key>"
    },
    "name": "modx_create_context_setting"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
areaNo
valueNo
xtypeNo
namespaceNo
context_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose one meaningful trait beyond the name: the new setting overrides the system setting for that context. It does not say whether an existing context setting with the same key is overwritten or an error is raised, whether the system cache is cleared, or what permissions are needed for a mutation — all important for a 6-parameter write 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?

One short sentence with the override semantics front-loaded and no filler. It is efficient, though its brevity leaves the gaps noted in other dimensions rather than being a model of compact completeness.

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

Completeness2/5

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

A mutation tool with six undocumented parameters, no annotations, and no output schema. The description says nothing about failure modes, return values, permissions, or parameter meaning, so an agent cannot confidently call it beyond the two required fields.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it does not. None of the six parameters (key, context_key, value, area, xtype, namespace) are explained; an agent gets no guidance on what 'area' scopes, what 'xtype' controls, or what 'namespace' grouping means.

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 uses a specific verb+resource pair ('Create a context-level setting') and adds the defining semantic: it overrides the system setting for that context. This lets an agent distinguish it from the system-setting siblings (modx_create_system_setting, modx_get_system_setting) even though those are not named.

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?

Usage is only implied. The parenthetical explains what a context-level setting is, which helps an agent decide between context-level and system-level creation, but there is no explicit 'use this when...' guidance, no mention of when to use modx_update_context_setting instead, and no prerequisites such as required permissions or whether the context must already exist.

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