Table of Contents

Class McpServerToolAttribute

Namespace
nanoFramework.WebServer.Mcp
Assembly
nanoFramework.WebServer.Mcp.dll

Attribute to mark a method as an MCP server tool and provide metadata for discovery and documentation.

[AttributeUsage(AttributeTargets.Method)]
public class McpServerToolAttribute : Attribute
Inheritance
McpServerToolAttribute
Inherited Members
Extension Methods

Constructors

McpServerToolAttribute(string, string, string)

Initializes a new instance of the McpServerToolAttribute class with the specified name, description, and output description.

public McpServerToolAttribute(string name, string description = "", string outputDescription = "")

Parameters

name string

The unique name of the tool.

description string

The description of the tool.

outputDescription string

The description of the tool's output.

Properties

Description

Gets the description of the tool.

public string Description { get; }

Property Value

string

Name

Gets the unique name of the tool.

public string Name { get; }

Property Value

string

OutputDescription

Gets the description of the tool's output.

public string OutputDescription { get; }

Property Value

string