Skip to main content
Glama
customaise

customaise

Official

call_webmcp_tool

Destructive

Executes a registered WebMCP tool on a target browser tab, prompting the user to approve interactive actions and returning results or a saved output file for large responses.

Instructions

Execute a registered WebMCP tool directly on the target browser tab. If the tool is interactive (trust level), the user will be natively prompted by CustomAIse to approve the execution before it returns. Approval can take minutes when the user is away from the browser (remote approvals on a phone). This server sends progress notifications while it waits, so a client that resets its timeout on progress will wait with it. A client that caps tool calls at a fixed 60 seconds regardless will report this call as failed while the user can still approve it and the tool can still run; if that happens, do not blindly re-issue a call with side effects. Check the outcome first with a read-only tool or the page itself. A result over 64 KB WRITES A FILE by default: the whole result goes to .customaise/tool-results/ in your workspace, which keeps the newest 20, and this call returns the path with the result's small values. If you have no filesystem tool, pass output: "inline" to get it in the response with long lists shortened instead.

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": {
      "toolName": "<toolName>"
    },
    "name": "call_webmcp_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab ID to execute on. Defaults to active tab.
outputNoWhere a result over the inline budget (64 KB by default) goes; a smaller result always comes back in this response as the tool returned it. "file" (default) writes it whole to .customaise/tool-results/ in your workspace and returns its path, its small values and the size of the rest. "inline" writes nothing and returns it in this response, with long lists shortened to fit. Use it when you have no filesystem tool to read the file with, such as a chat client. "auto" follows the CUSTOMAISE_MCP_OUTPUT environment variable, falling back to "file".
toolArgsNoJSON object of arguments for the tool
toolNameYesThe EXACT name of the WebMCP tool to invoke

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.2.9
    • addedInput schema / properties / output
      Added value: +{
      +  "description": "Where a result over the inline budget (64 KB by default) goes; a smaller result always comes back in this response as the tool returned it. \"file\" (default) writes it whole to .customaise/tool-results/ in your workspace and returns its path, its small values and the size of the rest. \"inline\" writes nothing and returns it in this response, with long lists shortened to fit. Use it when you have no filesystem tool to read the file with, such as a chat client. \"auto\" follows the CUSTOMAISE_MCP_OUTPUT environment variable, falling back to \"file\".",
      +  "enum": [
      +    "auto",
      +    "file",
      +    "inline"
      +  ],
      +  "type": "string"
      +}
  2. First observedv3.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive=true, openWorld=true and non-idempotent, but the description adds substantial context they cannot express: a native approval prompt can block for minutes, progress notifications keep a well-behaved client waiting, and a fixed 60-second cap produces a false failure. It also discloses the 64 KB spill-to-file behaviour, the .customaise/tool-results/ location, and the newest-20 retention policy.

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 primary action and target are front-loaded, then approval behaviour, then the timeout hazard, then the output-size behaviour — a sensible escalation of risk. Sentences are dense but each one carries non-redundant operational information; the capitalization on 'WRITES A FILE' is justified emphasis for a surprising side effect.

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

Completeness4/5

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

For a wrapper tool with no output schema, a free-form toolArgs object, and destructive annotations, the description covers the risky surfaces: approval latency, false timeouts, and large-result handling. The only real gap is discovery — how to learn a valid toolName and its expected arguments before calling.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds decision-level meaning for output — the file default, why a chat client without filesystem access should pass "inline", and that inline results are truncated. tabId and toolArgs are left entirely to the schema, and toolArgs semantics are inherently opaque since they depend on the target tool.

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

Purpose5/5

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

The first sentence gives a specific verb and resource: 'Execute a registered WebMCP tool directly on the target browser tab.' That cleanly separates it from discovery-oriented siblings like list_webmcp_tools and from tab-management tools like open_tab or focus_tab.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states when the user will be prompted, when to prefer output: "inline" (no filesystem tool), and what to do after a false timeout failure — check the outcome with a read-only tool rather than blindly re-issuing a call with side effects. It never routes the agent to list_webmcp_tools to obtain the exact toolName, which is the one prerequisite an agent could get wrong.

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