evaluate_js
Execute JavaScript expressions in Chrome tabs to debug web applications using the Chrome DevTools Protocol.
Instructions
Evaluate JavaScript in the current Chrome tab
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |
Execute JavaScript expressions in Chrome tabs to debug web applications using the Chrome DevTools Protocol.
Evaluate JavaScript in the current Chrome tab
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries full burden but only states the action without disclosing behavioral traits like permissions needed, side effects (e.g., script execution in browser), error handling, or rate limits. It's vague beyond the basic operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste, clearly front-loaded and appropriately sized for the tool's scope.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations, 0% schema coverage, and no output schema, the description is incomplete. It lacks details on behavior, parameters, and return values, making it inadequate for a tool that executes JavaScript in a browser context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate but adds no meaning beyond the schema. It doesn't explain what 'expression' entails (e.g., JavaScript code, return value expectations), leaving parameters poorly defined.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('Evaluate') and resource ('JavaScript in the current Chrome tab'), making the purpose understandable. It doesn't explicitly differentiate from siblings like 'evaluate_on_call_frame' or 'search_scripts', which keeps it from a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
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 such as 'evaluate_on_call_frame' or 'send_cdp_command'. The description lacks context about prerequisites or exclusions, offering minimal usage direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/raultov/chrome-debug-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server