Skip to main content
Glama

wait_for_request

Wait for a network request matching a URL pattern and return its method, status, and headers. Replaces setTimeout polling anti-pattern.

Instructions

⭐ Block until a network request matching url_pattern is observed. Replaces the setTimeout(2000)+poll anti-pattern.

Args:
    url_pattern: substring match
    method: optional HTTP verb filter (GET/POST/...)
    timeout: max seconds to wait
    require_response: also wait for the response phase (default True)

Returns JSON of the matching entry (url/method/status/request_headers/
response_headers).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
url_patternYes
methodNo
timeoutNo
require_responseNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Tool Definition Quality

Score is being calculated. Check back soon.

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/RobithYusuf/mcp-stealth-chrome'

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