WhoBuilt

Bending a Public MCP Server Without Breaking It

Apr 8, 2026· 41 min· 1.4K views·Watch on YouTube

Speaker

Nimrod Hauser, founding engineer at Baz, shares how to adapt Playwright MCP tools for Baz’s spec reviewer at an AI Engineer talk.

Why third-party tools need care

Hauser explains that agent tools from MCP servers, libraries, or other teams can make agents behave unpredictably and degrade performance. In a multi-tenant system, missing guardrails can also expose one client’s data to another.

The baseline spec reviewer

Baz’s spec reviewer compares ticket requirements and Figma designs with a running implementation, using Playwright MCP to inspect the browser and capture evidence. With the default 21 Playwright tools, the agent invents a page path, gets a 404, and returns a failed verdict.

Curate tools and tailor descriptions

Hauser presents five ways to improve third-party tools, beginning with curating them and rewriting their descriptions. Baz removes six of the 21 Playwright tools and guides the agent to use an accessibility snapshot before actions such as clicking or hovering.

Add deterministic guardrails and composed tools

For screenshots, Baz validates that the output path stays inside the designated folder and returns an explanation the agent can use to retry. It also adds a separate evidence screenshot tool with instructions such as including the ticket number in the filename.

Move fixed steps outside the agent

Baz uses Playwright functions directly to log in before creating the agent, injecting JWT tokens into browser storage and clicking the login button. In the improved run, the agent finds the configuration drawer, reports a pass, and saves a ticket-labeled screenshot as evidence.

Takeaways

  • Remove tools the workflow does not need to reduce the agent’s choices and context load.
  • Write tool descriptions around your own use case, including which tools to call first.
  • Enforce sensitive constraints in deterministic code, such as restricting screenshot paths.
  • Create task-specific tools when they need distinct instructions or behavior.
  • Move steps that always happen, such as login, out of the agent’s decision loop.

Mentioned in this talk

Search inside this talk

What was claimed 8

  • works at
    founding engineer
    “I work at Baz.”
    YouTube
    Verified3 sources· Talk, Web· archived
  • built
    “today, our use case will be Baz's spec reviewer.”
    YouTube
    Unverified1 source· Talk
  • feature
    Spec Reviewer: Compares ticket requirements and visual designs with an implementation and returns a verdict with screenshot evidence.
    “assess whether the implementation meets the requirements. It will give us a verdict and take a snapshot as evidence”
    YouTube
    Unverified1 source· Talk
  • integrates with
    “it will spin up Playwright's MCP server to open a browser”
    YouTube
    Unverified1 source· Talk
  • feature
    Tool curation: Excludes tools that are unnecessary for the use case, reducing the available tools from 21 to 16.
    “instead of the 21 tools we used to have, I expect to see fewer. And so we have 16.”
    YouTube
    Unverified1 source· Talk
  • feature
    Playwright MCP: Its MCP server provides browser manipulation tools.
    “Playwright have given us 21 tools. Everything that has to do with manipulating the browser”
    YouTube
    Unverified1 source· Talk
  • feature
    governed actions: Validates screenshot paths and blocks saves outside the designated output folder.
    “if the tool that's now being activated is the take screenshot tool ... validate them”
    YouTube
    Unverified1 source· Talk
  • feature
    Deterministic tool calls: Logs into the system before the agent is created, using JWT tokens and browser local storage.
    “the first thing we do is call this deterministic function, login to Buzz. Only after we log in to Buzz do we create an agent.”
    YouTube
    Unverified1 source· Talk

Related talks