Skip to content

Class: ListToolsRequest

Sent from the client to request a list of tools the server has.

URI: mcp:ListToolsRequest

 classDiagram
    class ListToolsRequest
    click ListToolsRequest href "../ListToolsRequest/"
      JSONRPCRequest <|-- ListToolsRequest
        click JSONRPCRequest href "../JSONRPCRequest/"

      ListToolsRequest : id

      ListToolsRequest : jsonrpc

      ListToolsRequest : method

Inheritance

Slots

Name Cardinality and Range Description Inheritance
id 1
RequestId
Uniquely identifying ID for a JSON-RPC request JSONRPCRequest
jsonrpc 1
String
JSON-RPC version string JSONRPCRequest
method 1
String
The JSON-RPC method name JSONRPCRequest

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self mcp:ListToolsRequest
native mcp:ListToolsRequest

LinkML Source

Direct

name: ListToolsRequest
description: Sent from the client to request a list of tools the server has.
from_schema: https://w3id.org/lmodel/mcp
is_a: JSONRPCRequest
slot_usage:
  method:
    name: method
    equals_string: tools/list

Induced

name: ListToolsRequest
description: Sent from the client to request a list of tools the server has.
from_schema: https://w3id.org/lmodel/mcp
is_a: JSONRPCRequest
slot_usage:
  method:
    name: method
    equals_string: tools/list
attributes:
  id:
    name: id
    description: Uniquely identifying ID for a JSON-RPC request.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: id
    owner: ListToolsRequest
    domain_of:
    - ToolUseContent
    - JSONRPCRequest
    - JSONRPCResultResponse
    - JSONRPCErrorResponse
    range: RequestId
    required: true
  jsonrpc:
    name: jsonrpc
    description: JSON-RPC version string.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: jsonrpc
    owner: ListToolsRequest
    domain_of:
    - JSONRPCRequest
    - JSONRPCNotification
    - JSONRPCResultResponse
    - JSONRPCErrorResponse
    range: string
    required: true
  method:
    name: method
    description: The JSON-RPC method name.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: method
    owner: ListToolsRequest
    domain_of:
    - JSONRPCRequest
    - JSONRPCNotification
    range: string
    required: true
    equals_string: tools/list