Angular Modernizer
    Preparing search index...

    MCP Tool interface as defined by the Model Context Protocol. Every tool class of this package implements it.

    interface MCPTool {
        annotations?: ToolAnnotations;
        description: string;
        inputSchema: object;
        name: string;
        outputSchema?: object;
        title?: string;
        execute(args: Record<string, unknown>, ctx?: ToolContext): Promise<unknown>;
    }

    Implemented by

    Index

    Properties

    annotations?: ToolAnnotations

    Behavior hints for clients (MCP 2025-03-26); hints, not guarantees.

    description: string

    Human-readable description of what the tool does.

    inputSchema: object

    JSON Schema for tool input validation.

    name: string

    Unique tool name.

    outputSchema?: object

    JSON Schema of the result object (MCP 2025-06-18). Every tool answers with structuredContent plus a text block with its summary; with a schema the SDK validates structuredContent against it. All tools of this package set one.

    title?: string

    Display name for clients (MCP 2025-06-18).

    Methods

    • Execute the tool with given arguments.

      Parameters

      • args: Record<string, unknown>

        Tool arguments validated against inputSchema

      • Optionalctx: ToolContext

        Cancellation and progress of the MCP request (absent in direct calls)

      Returns Promise<unknown>

      Tool execution result