IsReadOnly returns true if this tool is marked as read-only via annotations.
()
| 87 | |
| 88 | // IsReadOnly returns true if this tool is marked as read-only via annotations. |
| 89 | func (st *ServerTool) IsReadOnly() bool { |
| 90 | return st.Tool.Annotations != nil && st.Tool.Annotations.ReadOnlyHint |
| 91 | } |
| 92 | |
| 93 | // HasHandler returns true if this tool has a handler function. |
| 94 | func (st *ServerTool) HasHandler() bool { |
no outgoing calls