Diagram - WebMcpTool

30 Sep 20261 minute to read

Defines the structure of a WebMCP tool, including its name, description,
and input/output JSON schemas used for tool registration and execution.

Properties

annotations object

The behavioural hints an MCP client uses to decide how to present the tool, such as
readOnlyHint, destructiveHint and idempotentHint.

description string

A description of the tool’s functionality and purpose.

execute Function

A function that executes the tool’s logic when invoked.

inputSchema object

The JSON schema object that defines the expected input parameters for the tool.

name string

The unique identifier name of the WebMCP tool (e.g., ‘createDiagramNode’, ‘deleteFromDiagram’).

outputSchema object

The JSON schema object that defines the structure of the tool’s output response.