Skip to main content
Glama

Moderation Transition Execute

moderation_transition_execute

Apply a Drupal content moderation transition by validating the entity's current state against the workflow, then updating it to the transition's target state.

Instructions

Execute a moderation transition on an entity.

Looks the transition up on its workflow and applies its target state to the entity, refusing when the entity's current state is not one the transition starts from. The old version fetched the transition through JSON:API, which has no such resource, so this never ran.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idNo
entity_idYes
entity_typeYes
transition_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden — and it does disclose real behavior: it looks the transition up on the workflow, applies a target state (a mutation), and refuses when the current state isn't a valid start state. It also explains the historical failure mode. Missing details on error shape, permissions, and reversibility keep it from 5.

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?

Two sentences, front-loaded with the action, then the mechanism. The historical note about JSON:API is extraneous for an invocation decision and could be trimmed.

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 values don't need explaining. For a state-mutating tool with no annotations, the description covers the key behavior (valid-start-state guard, target-state application). It could still note permissions or side effects, but it's largely complete for invocation.

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% for 4 parameters. The description explains conceptually that a transition is looked up and applied to an entity, which hints at entity_type/entity_id/transition_id roles, but never states formats, whether entity_type accepts machine names or labels, or what user_id does (audit? attribution?).

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?

States a specific verb ('execute') and resource ('a moderation transition on an entity'), clearly distinguishing it from sibling CRUD tools like moderation_transition_create/get/list/delete. It doesn't explicitly name those siblings, but the 'execute' vs 'create'/'get' distinction is inferable.

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?

Implicitly defines when this applies: only when the entity's current state is a valid start state for the transition. However, it doesn't say when to reach for this versus moderation_state_get or moderation_transition_get, or precondition steps.

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