Skip to main content
Glama
Crypsis MCP
by mtnba4

crypsis_evaluate

Run custom JavaScript in the active browser page to inspect or manipulate the DOM and extract dynamic page data.

Instructions

Evaluate custom JavaScript in the browser page context

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "script": "<script>"
    },
    "name": "crypsis_evaluate"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptYesJavaScript expression to evaluate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and adds little: 'browser page context' hints at the execution environment but nothing is said about mutation of page state, whether return values are serialized, async/promise support, error handling, or security/permission implications. For an arbitrary-code-execution tool this is a meaningful gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with zero filler. It is efficient, though the terseness borders on under-specification for a tool with this much behavioral surface.

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

Completeness2/5

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

No output schema and no annotations, yet the description says nothing about what is returned or how the evaluated result is conveyed to the agent. For an evaluate-script tool where return handling is the central question, the definition is incomplete.

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

Parameters3/5

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

Schema coverage is 100% and the single 'script' parameter is documented in the schema itself, so the baseline is 3. The description adds only a mild clarification of where the expression runs, no syntax or return-value semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Evaluate') and resource ('custom JavaScript'), and the phrase 'in the browser page context' pins down the execution environment. It is not confused with data-readers like crypsis_get_dom or crypsis_get_content, though it never explicitly contrasts itself with them.

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 on when to reach for this versus crypsis_get_dom, crypsis_get_state, or crypsis_find_elements, all of which could superficially serve similar extraction needs. No preconditions (e.g., page must be loaded) are stated either.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.