MCP stdio server wrapping PinchTab HTTP API for browser automation
pinchtab-mcp exposes 7 browser automation tools with basic schemas and descriptions. All tools have input schemas with type definitions and descriptions present. However, descriptions are generic and lack LLM-optimized guidance on WHEN to use each tool vs alternatives. Parameter descriptions are minimal (10-30 chars typical). No output schemas documented. Error handling is absent, tools return raw API responses without recovery guidance. Tool names are action-oriented (navigate, query, screenshot) but lack specificity: 'action' is overloaded (click, type, scroll, key all in one tool); 'tabs' conflates list/create/close/focus. No idempotency hints, no permission declarations, no audit trail guidance. Security: evaluate() tool executes arbitrary JavaScript, dangerous without explicit warnings in description. fetch() tool accepts arbitrary URLs but validates against metadata endpoints and private ranges at startup, not per-call. Overall: functional definitions but well below production quality. Baseline: 549 production tools average 194-char descriptions; these average ~60 chars and lack context.
Perform an action on a page element (click, type, scroll, etc.)
Execute JavaScript code in the page context
Fetch a URL and return the response body
Navigate to a URL in a browser tab
Query page elements using CSS selectors or XPath
Take a screenshot of the current page
Manage browser tabs (list, create, close, etc.)
Tool 'action' overloads multiple distinct operations (click, type, scroll, key, etc.) into one tool with a 'kind' discriminator. LLMs cannot infer which action to use without trial-and-error. Should split into click_element, type_text, scroll_page, press_key.
Tool 'tabs' conflates four distinct operations (list, create, close, focus) under one 'action' parameter. Description does not explain when to use each action or what each returns. Should split into list_tabs, create_tab, close_tab, focus_tab.
Tool 'evaluate' executes arbitrary JavaScript in page context with no warnings about security implications. Description is 25 chars ('Execute JavaScript code in the page context'), below 20-char floor. No mention that this is destructive, requires explicit user intent, or should be gated behind PINCHTAB_ALLOW_EVALUATE flag.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | 2026-07-28+ | v2 |
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields. E.g., does query() return element IDs, text content, or both? Does navigate() return a tab ID for chaining?
No error handling guidance. Tools return raw API responses or errors without recovery hints. E.g., if navigate() times out, should the LLM retry, increase timeout, or try a different URL? No actionable error messages.