Skip to main content
Glama

Bulk Update Aliases

bulk_update_aliases

Regenerate URL aliases for a Drupal content type by running Pathauto generation, fixing stale or missing aliases after content changes.

Instructions

Regenerate URL aliases for a content type.

Alias generation belongs to the Pathauto module, so this runs drush pathauto:generate. The previous implementation ran drush uuri, which is not a Drush command. pattern is not applied here: patterns are pathauto_pattern config objects, which pathauto_pattern_create / pathauto_pattern_update manage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNogenerate
bundleYes
patternYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/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 helpfully discloses the mechanism (drush pathauto:generate) and warns that the required 'pattern' parameter is a no-op, but it never states whether regenerating overwrites or deletes existing aliases, what permissions are needed, or whether the operation is reversible.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The purpose is front-loaded, which is good. But the second paragraph spends a full sentence on historical trivia ('The previous implementation ran drush uuri, which is not a Drush command') that does not help an agent select or invoke the tool, diluting an otherwise short description.

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?

An output schema exists, so return values need not be described. For a mutation tool with no annotations, though, the description leaves key operational facts uncovered: the meaning of 'action', and the effect on existing aliases when they are regenerated.

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% across three parameters, so the description must compensate. It explains 'pattern' (not applied) and loosely implies 'bundle' ('for a content type'), but 'action' — which has a default of 'generate' and presumably other values — is never explained, leaving the agent guessing at valid inputs.

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 opening sentence states a specific verb, resource, and scope: 'Regenerate URL aliases for a content type.' That is clear on its own, but it gives no differentiation from the sibling 'pathauto_generate', which the description itself says this tool invokes ('runs drush pathauto:generate'). An agent cannot tell from the text why it should pick this over that sibling.

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 description clarifies that 'pattern is not applied here' and routes pattern management to pathauto_pattern_create / pathauto_pattern_update, which is useful scope guidance. However, it never says when to use this tool versus pathauto_generate, so the primary when-to-use decision is left implied.

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