Table of Contents

Class McpToolAttribute

Namespace
AnyProtocol.Abstraction
Assembly
AnyProtocol.Abstraction.dll

Marks a declaration with mcp tool metadata.

[AttributeUsage(AttributeTargets.Method)]
public sealed class McpToolAttribute : Attribute
Inheritance
McpToolAttribute
Inherited Members

Constructors

McpToolAttribute()

public McpToolAttribute()

Properties

Description

Gets or initializes the description.

public string? Description { get; init; }

Property Value

string

The description.

Destructive

Gets or initializes a value indicating whether destructive applies.

public bool Destructive { get; init; }

Property Value

bool

true when destructive applies; otherwise, false.

Idempotent

Gets or initializes a value indicating whether idempotent applies.

public bool Idempotent { get; init; }

Property Value

bool

true when idempotent applies; otherwise, false.

Name

Gets or initializes the name.

public string? Name { get; init; }

Property Value

string

The name.

OpenWorld

Gets or initializes a value indicating whether open world applies.

public bool OpenWorld { get; init; }

Property Value

bool

true when open world applies; otherwise, false.

ReadOnly

Gets or initializes a value indicating whether read only applies.

public bool ReadOnly { get; init; }

Property Value

bool

true when read only applies; otherwise, false.