Skip to main content
Glama

delete_pages_by_pattern

Delete website pages that match URL patterns. Use glob patterns to remove outdated documentation or version-specific content.

Instructions

Delete website pages matching URL patterns (useful for cleaning up version URLs, static assets)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
website_idYesThe unique identifier of the website whose pages should be deleted. Get this from list_documentation_sources.
url_patternsYesArray of URL patterns to match for deletion. Uses glob patterns (* for wildcards). For example, ["*/v1/*", "*/legacy/*"] will delete pages with /v1/ or /legacy/ in their URLs.
dry_runNoWhether to perform a dry run (preview) without actually deleting pages. Set to false to actually delete pages. Default is true for safety.
Behavior2/5

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

No annotations are provided, so the description must convey behavioral traits. It mentions deletion but does not disclose that the operation is destructive, irreversible, or that a dry run should be performed first. The schema includes a dry_run parameter with safety notes, but the main description omits this critical warning.

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?

The description is a single clear sentence with no unnecessary words. It is front-loaded with the core action and use case.

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?

For a destructive tool with no output schema, the description lacks important context such as safety precautions, effects on related data, or confirmation steps. The dry_run parameter is not mentioned in the description, leaving the agent underinformed about safe usage.

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%, so each parameter is already described well. The main description does not add extra meaning beyond the schema, resulting in a baseline score of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool deletes website pages matching URL patterns, with a specific use case ('cleaning up version URLs, static assets'). This distinguishes it from sibling tools like delete_all_website_pages or delete_pages_by_ids.

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 implies usage for pattern-based cleanup but does not explicitly state when to use it over alternatives like delete_pages_by_ids or delete_all_website_pages. No exclusions or when-not-to-use guidance is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZachHandley/ZMCPTools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server