Class: MCP::Client::ListToolsResult
- Inherits:
-
Struct
- Object
- Struct
- MCP::Client::ListToolsResult
- Defined in:
- lib/mcp/client/paginated_result.rb
Overview
Result objects returned by list_tools, list_prompts, list_resources, and list_resource_templates.
Each carries the page items, an optional opaque next_cursor string for continuing pagination,
an optional meta hash mirroring the MCP _meta response field, and the optional SEP-2549
cache hints ttl_ms (freshness lifetime in milliseconds; 0 means do not cache) and
cache_scope ("public" or "private") mirroring the ttlMs/cacheScope response fields.
Instance Attribute Summary collapse
-
#cache_scope ⇒ Object
Returns the value of attribute cache_scope.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#next_cursor ⇒ Object
Returns the value of attribute next_cursor.
-
#tools ⇒ Object
Returns the value of attribute tools.
-
#ttl_ms ⇒ Object
Returns the value of attribute ttl_ms.
Instance Attribute Details
#cache_scope ⇒ Object
Returns the value of attribute cache_scope
10 11 12 |
# File 'lib/mcp/client/paginated_result.rb', line 10 def cache_scope @cache_scope end |
#meta ⇒ Object
Returns the value of attribute meta
10 11 12 |
# File 'lib/mcp/client/paginated_result.rb', line 10 def @meta end |
#next_cursor ⇒ Object
Returns the value of attribute next_cursor
10 11 12 |
# File 'lib/mcp/client/paginated_result.rb', line 10 def next_cursor @next_cursor end |
#tools ⇒ Object
Returns the value of attribute tools
10 11 12 |
# File 'lib/mcp/client/paginated_result.rb', line 10 def tools @tools end |
#ttl_ms ⇒ Object
Returns the value of attribute ttl_ms
10 11 12 |
# File 'lib/mcp/client/paginated_result.rb', line 10 def ttl_ms @ttl_ms end |