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, and an optional `meta` hash mirroring the MCP `_meta` response field.

Instance Attribute Summary collapse

Instance Attribute Details

#metaObject

Returns the value of attribute meta

Returns:

  • (Object)

    the current value of meta



8
9
10
# File 'lib/mcp/client/paginated_result.rb', line 8

def meta
  @meta
end

#next_cursorObject

Returns the value of attribute next_cursor

Returns:

  • (Object)

    the current value of next_cursor



8
9
10
# File 'lib/mcp/client/paginated_result.rb', line 8

def next_cursor
  @next_cursor
end

#toolsObject

Returns the value of attribute tools

Returns:

  • (Object)

    the current value of tools



8
9
10
# File 'lib/mcp/client/paginated_result.rb', line 8

def tools
  @tools
end