Skip to main content
Glama

playwright_delete

Perform HTTP DELETE requests to remove resources from web servers using browser automation. Send DELETE operations to specified URLs through Playwright with Chrome DevTools Protocol integration.

Instructions

Perform an HTTP DELETE request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to perform DELETE operation

Implementation Reference

  • Handler implementation for the 'playwright_delete' tool. Performs an HTTP DELETE request on the provided URL using Playwright's APIRequestContext and returns success/error content with response status.
    case "playwright_delete":
      try {
        var response = await apiContext!.delete(args.url);
    
        return {
          content: [{
            type: "text",
            text: `Performed delete Operation ${args.url}`,
          },
          {
            type: "text",
            text: `Response code ${response.status()}`
          }],
          isError: false,
        };
      } catch (error) {
        return {
          content: [{
            type: "text",
            text: `Failed to perform delete operation on ${args.url}: ${(error as Error).message}`,
          }],
          isError: true,
        };
      }
  • Tool schema definition for 'playwright_delete', specifying the input schema requiring a 'url' parameter.
    {
      name: "playwright_delete",
      description: "Perform an HTTP DELETE request",
      inputSchema: {
        type: "object",
        properties: {
          url: { type: "string", description: "URL to perform DELETE operation" }
        },
        required: ["url"],
      },
    },
  • API_TOOLS constant includes 'playwright_delete' to identify it as requiring APIRequestContext setup in the handler.
    export const API_TOOLS = [
      "playwright_get",
      "playwright_post",
      "playwright_put",
      "playwright_delete",
      "playwright_patch"
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states the HTTP method but doesn't disclose behavioral traits such as authentication needs, rate limits, error handling, or what 'DELETE' implies (e.g., resource removal). This is a significant gap for a mutation tool with zero annotation coverage.

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, efficient sentence with zero waste. It's appropriately sized and front-loaded, clearly stating the core action without unnecessary elaboration.

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?

Given the complexity of an HTTP DELETE operation (a mutation tool), lack of annotations, and no output schema, the description is incomplete. It doesn't explain return values, error conditions, or prerequisites, leaving critical gaps for agent understanding.

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 description coverage is 100%, with the parameter 'url' clearly documented in the schema. The description doesn't add any meaning beyond what the schema provides, such as URL format constraints or examples, so it meets the baseline of 3 when the schema does the heavy lifting.

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

Purpose3/5

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

The description states the action ('Perform an HTTP DELETE request') which is a specific verb, but it doesn't mention what resource this operates on or distinguish it from siblings like playwright_patch or playwright_put. It's vague about the actual target beyond 'HTTP'.

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?

No guidance is provided on when to use this tool versus alternatives like playwright_patch or playwright_put. The description lacks context about appropriate scenarios or exclusions, leaving the agent to infer usage based on HTTP method knowledge alone.

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/lars-hagen/mcp-playwright-cdp'

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