Class: GetPromptRequest
Used by the client to get a prompt provided by the server.
URI: mcp:GetPromptRequest
classDiagram
class GetPromptRequest
click GetPromptRequest href "../GetPromptRequest/"
JSONRPCRequest <|-- GetPromptRequest
click JSONRPCRequest href "../JSONRPCRequest/"
GetPromptRequest : id
GetPromptRequest : jsonrpc
GetPromptRequest : method
GetPromptRequest : params
GetPromptRequest --> "1" GetPromptRequestParams : params
click GetPromptRequestParams href "../GetPromptRequestParams/"
Inheritance
- JSONRPCRequest
- GetPromptRequest
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| params | 1 GetPromptRequestParams |
JSON-RPC parameters payload | direct |
| 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
- from schema: https://w3id.org/lmodel/mcp
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | mcp:GetPromptRequest |
| native | mcp:GetPromptRequest |
LinkML Source
Direct
name: GetPromptRequest
description: Used by the client to get a prompt provided by the server.
from_schema: https://w3id.org/lmodel/mcp
is_a: JSONRPCRequest
slots:
- params
slot_usage:
params:
name: params
range: GetPromptRequestParams
required: true
inlined: true
method:
name: method
equals_string: prompts/get
Induced
name: GetPromptRequest
description: Used by the client to get a prompt provided by the server.
from_schema: https://w3id.org/lmodel/mcp
is_a: JSONRPCRequest
slot_usage:
params:
name: params
range: GetPromptRequestParams
required: true
inlined: true
method:
name: method
equals_string: prompts/get
attributes:
params:
name: params
description: JSON-RPC parameters payload.
from_schema: https://w3id.org/lmodel/mcp
rank: 1000
alias: params
owner: GetPromptRequest
domain_of:
- CancelledNotification
- ProgressNotification
- ResourceUpdatedNotification
- LoggingMessageNotification
- ElicitationCompleteNotification
- TaskStatusNotification
- InitializeRequest
- ReadResourceRequest
- SubscribeRequest
- UnsubscribeRequest
- GetPromptRequest
- CallToolRequest
- CompleteRequest
- SetLevelRequest
- CreateMessageRequest
- ElicitRequest
range: GetPromptRequestParams
required: true
inlined: true
id:
name: id
description: Uniquely identifying ID for a JSON-RPC request.
from_schema: https://w3id.org/lmodel/mcp
rank: 1000
alias: id
owner: GetPromptRequest
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: GetPromptRequest
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: GetPromptRequest
domain_of:
- JSONRPCRequest
- JSONRPCNotification
range: string
required: true
equals_string: prompts/get