Class ListToolsResult
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.Result<T>
org.apache.juneau.bean.mcp.v20260728.CacheableResult<ListToolsResult>
org.apache.juneau.bean.mcp.v20260728.ListToolsResult
Result payload for "tools/list".
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTools(Collection<Tool> value) Appends to the tool descriptors.Appends to the tool descriptors.Pagination cursor for the next page.getTools()Tool descriptors.setNextCursor(String value) Sets the next cursor.Sets the tool descriptors.Sets the tool descriptors.Methods inherited from class org.apache.juneau.bean.mcp.v20260728.CacheableResult
getCacheScope, getTtlMs, setCacheScope, setTtlMsMethods inherited from class org.apache.juneau.bean.mcp.v20260728.Result
getMeta, getResultType, setMeta, setResultType
-
Constructor Details
-
ListToolsResult
public ListToolsResult()
-
-
Method Details
-
getTools
Tool descriptors.- Returns:
- The tools list, or
nullif not set.
-
setTools
Sets the tool descriptors.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
setTools
Sets the tool descriptors.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
addTools
Appends to the tool descriptors.- Parameters:
value- The values to append.- Returns:
- This object (for method chaining).
-
addTools
Appends to the tool descriptors.- Parameters:
value- The values to append.- Returns:
- This object (for method chaining).
-
getNextCursor
Pagination cursor for the next page.- Returns:
- The cursor, or
nullif not set.
-
setNextCursor
Sets the next cursor.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-