Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
Crucible is a browser automation server with 26 tools covering navigation, interaction, extraction, cookies, sessions, and downloads. While tool names follow verb_noun conventions well and input schemas are present for most tools, the definitions suffer from significant gaps: (1) descriptions are uniformly brief (7-15 words), well below the 50-200 char LLM-optimized baseline; (2) parameter descriptions are minimal and lack constraint documentation (e.g., 'timeout in seconds' with no min/max bounds, 'selector' with no guidance on valid CSS syntax); (3) output schemas are completely absent, no documentation of what tools return, what fields agents should expect, or how to chain results; (4) error handling is not visible in the definitions, no guidance for recovery, retryable vs. fatal errors, or actionable error messages; (5) security concerns are not addressed (e.g., evaluate() allows arbitrary JavaScript execution with no sandboxing notes). Tool naming is strong (navigate, click, type, get_content), but the definitions lack the richness needed for LLM reasoning. Example: 'screenshot' has description 'Take a screenshot of the current page or element' (52 chars) and parameters full_page, selector, format, session, but the definition does not explain: What format does the output use (base64 PNG, JPEG bytes, URL)? Does base64 vs png vs jpeg affect subsequent tool behavior? How large can a screenshot be? This forces the LLM to guess. Similar gaps affect all 26 tools.
Output schemas completely undocumented. No tool specifies what it returns, what fields agents should extract, or how to chain results. e.g., screenshot() returns what, base64 PNG, raw bytes, a data URI? get_content() returns HTML or text, but what structure? Are line breaks preserved? Is it wrapped in a container object?
Parameter descriptions lack constraint documentation. 'timeout' is described as 'Timeout in seconds' with no min/max bounds, can it be 0? 1000000? 'selector' is 'CSS selector' with no examples or validation guidance. 'format' for screenshot/pdf lists options ('png, jpeg, base64') inline rather than as enums, forcing LLMs to parse free-form strings.
Expand all tool descriptions to 50-200 characters. Current descriptions (7-15 words) lack context. Example for navigate: 'Navigate to a URL and wait for the page to fully load. Returns the final URL after redirects. Fails if the URL is invalid or the domain is unreachable.' This explains WHAT, WHEN, and what it returns.
Document output schemas for all tools. For screenshot, specify: 'Returns {data: string, format: string, width: int, height: int}' (base64 for base64 format, raw bytes for png/jpeg). For get_content, specify: 'Returns {content: string, format: string, selector: string|null}'. For list_sessions, return: '{sessions: [{name: string, url: string, cookies_count: int}], total: int}'.
Convert free-form parameter descriptions to formal constraints. Replace 'Timeout in seconds' with 'Timeout in seconds (1 - 300, default 30)'. Replace 'CSS selector' with 'CSS selector (e.g. #id, .class, button[type=submit])'. Replace inline format options with enums: 'format: {type: "string", enum: ["png", "jpeg", "base64"]}'.
Add error handling notes to every tool. Example for navigate: 'If the URL is invalid, returns {error: "invalid_url", suggestion: "Did you mean https://..."}. If the page does not load within timeout, returns {error: "load_timeout", retryable: true}. Retry with a longer timeout or call wait_for() to wait for specific content.'
Document the evaluate() tool's constraints and output format. Specify: 'Executes a JavaScript expression in the page context. Expression must return JSON-serializable data (strings, numbers, booleans, objects, arrays). If the expression throws, returns {error: string, stack: string}. Timeout: 10 seconds. Result size limit: 1 MB. Must not modify the DOM or trigger side effects (use click/type/etc. instead).'
Spec posture evidence
Inferred effective spec: <=2025-11-25.
Relies on Logging (deprecated) - log to stderr or use OpenTelemetry
Score history
Overall score trend
↓ 4 points across a rubric change (v1 → v2)
49/100
Scored
Grade
Overall
Spec posture
Rubric
2026-09-21
F
49
<=2025-11-25
v2
2026-03-09
D
53
-
v1
get_cookies
read only50/100
Get all cookies from the current session
get_titleread only50/100
Get the current page title
get_urlread only50/100
Get the current page URL
hoverread only50/100
Hover over an element
list_downloadsread only50/100
List all downloads in the session
list_sessionsread only43/100
List all active browser sessions
navigateread only50/100
Navigate to a URL
pdfread onlysource verified62/100
Generate a PDF of the current page
refreshread onlysource verified62/100
Refresh the current page
screenshotread only50/100
Take a screenshot of the current page or element
scrollwrite50/100
Scroll the page or element
select_optionwrite50/100
Select an option from a dropdown
set_cookieswrite50/100
Set cookies for the current session
set_download_pathwrite50/100
Set the download directory for the session
typewritesource verified60/100
Type text into an element
wait_forread only50/100
Wait for a selector to appear or a condition to be met
Descriptions are uniformly terse (7-15 words, ~25-40 chars), far below the LLM-optimized baseline of 50-200 chars. 'Navigate to a URL' (17 chars) does not explain: Can the agent navigate to data: URIs or file:// URLs? Does it block until page load completes? Does it return a status code? Terse descriptions force LLMs to infer behavior, increasing errors.
No error handling guidance in tool definitions. If navigate() times out, or evaluate() throws a JS error, what does the tool return? Is the error retryable? Should the agent call wait_for() first? Without classification (retryable, user-fixable, fatal), agents cannot recover gracefully.
evaluate() tool allows arbitrary JavaScript execution without documented sandboxing, timeouts, or result size limits. LLMs could pass deeply recursive code, infinite loops, or enormous string concatenations. No guidance on what 'expression' must/must not do.
fill_form() accepts a free-form object 'fields' with no structure definition. The schema says 'type:object, description:Map of selector to value', but is value a string, number, boolean? Can it be null? What if a selector does not exist on the page? No validation constraints or error guidance.
Session management is implicit. Every tool accepts an optional 'session' param (defaulting to 'default'), but there is no documented pattern for multi-session workflows. Can sessions persist across server restarts? Are they thread-safe? If an agent creates 100 sessions, does memory grow unbounded? No documented limits or lifecycle.
Composition risk: set_cookies, clear_cookies, get_cookies exist, but no guidance on when to use each or what happens if cookies are cleared mid-session. Does clearing cookies also clear localStorage/sessionStorage? Do downstream tools fail silently if auth cookies are cleared? No documented side effects.
set_cookiesclear_cookiesget_cookies
Define the structure of fill_form's fields parameter using a schema example: 'fields: {"#email": "[email protected]", "#password": "secret", "select[name=country]": "US"}. Each key is a CSS selector; each value is a string. Returns {success: bool, failed_selectors: [string]}.'
Add pagination guidance to list_* tools. list_sessions and list_downloads should accept limit (default 20, max 100) and offset/cursor parameters. Return {items: [...], total: int, next_cursor: string|null} to enable streaming large result sets without exhausting context.
Document session lifecycle and limits. Add to tool descriptions: 'Sessions persist until explicitly closed via close_session(). Each session spawns a separate browser instance. Server limits: max 50 concurrent sessions. Sessions do not persist across server restarts. Clearing cookies clears only HTTP cookies, not localStorage or sessionStorage.'
Separate read-only and write tools more clearly in names or annotations. Tools like click, type, fill_form, evaluate modify page state; get_content, screenshot, get_url only read. Consider adding idempotentHint/readOnlyHint annotations (MCP 2026-07-28 pattern) to help agents understand which calls are safe to retry.
Provide recovery alternatives in error responses. When wait_for(selector, timeout=10) fails, include: 'Element not found. Available elements matching similar selectors: [".content", ".main", "#body"]. Try navigate() to reload, or increase timeout to allow dynamic content to load.'
Cap result sizes and add warnings. For screenshot with full_page=true on a long document, cap result at 5 MB and warn: 'Full-page screenshot is large (5.2 MB). Consider using selector to capture a specific region, or increase page.max_wait_time if content is still loading.'
Document default session behavior and name collisions. If the agent calls navigate(url, session='default') without explicitly creating a session, the server silently creates it. Clarify: 'If session does not exist, it is created automatically. Session names are case-sensitive and must be unique.'
Add tool annotations for MCP 2026-07-28 compatibility. Tag read-only tools (get_content, screenshot) with readOnlyHint=true. Tag destructive tools (clear_cookies, clear_downloads, close_session) with destructiveHint=true. Tag idempotent tools (navigate, get_url) with idempotentHint=true. This helps agent planners reason about side effects.