ToolAnnotationUtils class

Utility functions for working with tool annotations

Constructors

ToolAnnotationUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

builder() ToolAnnotationBuilder
Create a tool annotation builder
getCategory(Map<String, dynamic>? annotations) String?
Get tool category
getDeprecationInfo(Map<String, dynamic>? annotations) DeprecationInfo?
Get deprecation information
getEstimatedDuration(Map<String, dynamic>? annotations) int?
Get estimated duration in seconds
getExamples(Map<String, dynamic>? annotations) List<String>?
Get usage examples
getMinApiVersion(Map<String, dynamic>? annotations) String?
Get minimum API version
getPriority(Map<String, dynamic>? annotations) ToolPriority?
Get tool priority
getRequiredPermissions(Map<String, dynamic>? annotations) List<String>?
Get required permissions
getResourceUsage(Map<String, dynamic>? annotations) ResourceUsage?
Get resource usage information
isDeprecated(Map<String, dynamic>? annotations) bool
Check if a tool is deprecated
isDestructive(Map<String, dynamic>? annotations) bool
Check if a tool is destructive
isExperimental(Map<String, dynamic>? annotations) bool
Check if a tool is experimental
isReadOnly(Map<String, dynamic>? annotations) bool
Check if a tool is read-only
requiresConfirmation(Map<String, dynamic>? annotations) bool
Check if a tool requires confirmation
supportsCancellation(Map<String, dynamic>? annotations) bool
Check if a tool supports cancellation
supportsProgress(Map<String, dynamic>? annotations) bool
Check if a tool supports progress
validateAnnotations(Map<String, dynamic> annotations) List<String>
Validate annotations against MCP 2025-03-26 standards