Skip to main content
Glama
JustasMonkev

MCP Accessibility Scanner

browser_console_messages

Read-only

Extracts all console messages generated during web accessibility scans, enabling developers to identify and resolve JavaScript errors or warnings for improved WCAG compliance.

Instructions

Returns all console messages

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the browser_console_messages tool logic by retrieving console messages from the browser tab and streaming them as results.
    handle: async (tab, params, response) => {
      tab.consoleMessages().map(message => response.addResult(message.toString()));
    },
  • Schema definition including name, title, description, input schema, and type for the browser_console_messages tool.
    schema: {
      name: 'browser_console_messages',
      title: 'Get console messages',
      description: 'Returns all console messages',
      inputSchema: z.object({}),
      type: 'readOnly',
    },
  • Exports the defined browser_console_messages tool for use in higher-level tool collections.
    export default [
      console,
    ];
  • src/tools.ts:38-56 (registration)
    Registers the browser_console_messages tool (via ...console) in the global allTools array used by the MCP backend.
    export const allTools: Tool<any>[] = [
      ...common,
      ...console,
      ...dialogs,
      ...evaluate,
      ...files,
      ...form,
      ...install,
      ...keyboard,
      ...navigate,
      ...network,
      ...mouse,
      ...pdf,
      ...screenshot,
      ...snapshot,
      ...tabs,
      ...wait,
      ...verify,
    ];
Behavior4/5

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

Annotations provide readOnlyHint=true, openWorldHint=true, and destructiveHint=false, indicating a safe, read-only operation with potentially open-ended data. The description adds value by specifying 'all console messages,' implying comprehensive retrieval, which complements the annotations without contradiction. However, it doesn't detail aspects like real-time vs. historical messages or format.

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 no wasted words, clearly front-loaded with the core purpose. It's appropriately sized for a simple tool with no parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, annotations covering safety), the description is minimally adequate. However, without an output schema, it doesn't explain what 'returns' entails (e.g., format, structure, or examples of console messages), leaving gaps for an agent to understand the response fully.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0 parameters and 100% schema description coverage, the schema fully documents the lack of inputs. The description doesn't need to add parameter details, so a baseline of 4 is appropriate as it doesn't introduce confusion or redundancy.

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 'Returns all console messages' clearly states the action (returns) and resource (console messages), but it's vague about scope and doesn't differentiate from siblings like 'browser_network_requests' or 'scan_page' that might also return browser data. It's functional but lacks specificity about what 'all' encompasses.

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. With siblings like 'browser_network_requests' for network data or 'scan_page' for page analysis, the description doesn't help an agent decide when console messages are the appropriate target versus other browser monitoring tools.

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

Related 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/JustasMonkev/mcp-accessibility-scanner'

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