Skip to main content
Glama

webmcp_invoke_tool

Invoke a WebMCP tool registered by the current page, passing parameters to trigger its defined actions and receive the tool's output.

Instructions

Invokes a WebMCP tool registered by the current web page. Side effects: depends on the tool invoked; may modify page state, trigger network requests, or perform other actions defined by the page. Prerequisites: WebMCP feature must be enabled, target frame must exist, and the tool must be registered. Returns: The output of the tool invocation. Use this to interact with page-provided tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesJSON object string with the input parameters for the page tool (must match its inputSchema). Use "{}" when the tool takes no parameters. Defaults to: "{}".
frameIdYesTarget frame ID where the tool is registered. Constraints: must match a valid frame ID returned by webmcp_list_tools.
toolNameYesName of the WebMCP tool to invoke. Constraints: must match a registered tool name.
instance_idNoChrome instance id from open_instance/list_instances. Omit for the default instance.
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly states side effects may modify page state, trigger network requests, or perform other actions, and mentions prerequisites. It also describes the return as 'the output of the tool invocation'. This is honest and useful, though it remains generic because the actual behavior depends on the specific tool invoked. A 4 reflects thorough disclosure for a generic invoker.

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 concise and well-structured, with clear sections for purpose, side effects, prerequisites, returns, and usage. Each sentence adds value, and the information is front-loaded with the core purpose. No redundancy or fluff.

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

Completeness5/5

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

For a generic tool invoker, the description is complete: it covers what the tool does, side effects, prerequisites, return value, and usage guidance. It points to where to get valid frameId and toolName via the schema (referencing webmcp_list_tools), and the absence of an output schema is acceptable because the output varies per invoked tool. Nothing essential is missing.

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 description coverage is 100%, so the baseline is 3. The description does not add extra meaning beyond what the schema provides; all parameter details (input as JSON string, frameId must match a valid ID from webmcp_list_tools, toolName must match a registered name, instance_id optional) are already in the schema. No additional semantics are added, so the baseline 3 is maintained.

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 description clearly states the tool invokes a WebMCP tool registered by the current webpage, with a specific verb ('invokes') and resource. It distinguishes itself from siblings like webmcp_list_tools (which lists) and webmcp_get_invocation (which retrieves a specific invocation) by focusing on direct invocation.

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?

The description provides clear usage context: 'Use this to interact with page-provided tools' and lists prerequisites (WebMCP enabled, target frame exists, tool registered). It does not explicitly mention alternatives or when not to use, but the prerequisites implicitly guide the agent to check registrations first. Slightly stronger than a vague 'implied usage', so a 4 is appropriate.

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

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/raultov/chrome-debug-mcp'

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