Class: MCP::Client::ListToolsResult

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#cache_scopeObject

Returns the value of attribute cache_scope

Returns:

  • (Object)

    the current value of cache_scope



10
11
12
# File 'lib/mcp/client/paginated_result.rb', line 10

def cache_scope
  @cache_scope
end

#metaObject

Returns the value of attribute meta

Returns:

  • (Object)

    the current value of meta



10
11
12
# File 'lib/mcp/client/paginated_result.rb', line 10

def meta
  @meta
end

#next_cursorObject

Returns the value of attribute next_cursor

Returns:

  • (Object)

    the current value of next_cursor



10
11
12
# File 'lib/mcp/client/paginated_result.rb', line 10

def next_cursor
  @next_cursor
end

#toolsObject

Returns the value of attribute tools

Returns:

  • (Object)

    the current value of tools



10
11
12
# File 'lib/mcp/client/paginated_result.rb', line 10

def tools
  @tools
end

#ttl_msObject

Returns the value of attribute ttl_ms

Returns:

  • (Object)

    the current value of ttl_ms



10
11
12
# File 'lib/mcp/client/paginated_result.rb', line 10

def ttl_ms
  @ttl_ms
end