Enum ToolTaskSupport
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents the level of task augmentation support for a tool.
[Experimental("MCPEXP001", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp001")]
[JsonConverter(typeof(JsonStringEnumConverter<ToolTaskSupport>))]
public enum ToolTaskSupport
Fields
[JsonStringEnumMemberName("forbidden")] Forbidden = 0Clients must not attempt to invoke the tool as a task.
This is the default behavior. Servers should return a -32601 (Method not found) error if a client attempts to invoke the tool as a task when this is set.
[JsonStringEnumMemberName("optional")] Optional = 1Clients may invoke the tool as a task or as a normal request.
When this is set, clients can choose whether to use task augmentation based on their needs.
[JsonStringEnumMemberName("required")] Required = 2Clients must invoke the tool as a task.
Servers must return a -32601 (Method not found) error if a client does not attempt to invoke the tool as a task when this is set.