Skip to content

Commit

Permalink
Merge pull request #13 from modelcontextprotocol/davidsp/resources
Browse files Browse the repository at this point in the history
docs: add early version of the resources spec
  • Loading branch information
dsp-ant authored Oct 3, 2024
2 parents bb9572d + bb2a11f commit 6be0e7d
Show file tree
Hide file tree
Showing 2 changed files with 426 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/spec/prompts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type: docs
weight: 3
---

The Prompts API allows clients to retrieve information about available prompts and prompt templates from the server.
The Prompts API allows clients to retrieve information about available prompts and prompt templates from the server. Prompts are templated conversations with a model that the client can retrieve. Commonly clients present available prompts to users as slash/at commands or similar approaches, e.g. by typing `/a-prompt`.

## Capabilities

Expand All @@ -24,6 +24,8 @@ sequenceDiagram
Server-->>Client: GetPromptResult
```

# Messages

## List Prompts

The client **SHOULD** send a `prompts/list` request to retrieve a list of available prompts and prompt templates from the server.
Expand Down Expand Up @@ -74,7 +76,8 @@ Argument definitions, if present, **MUST** include:
- required: An optional boolean indicating if the argument is required

The server **SHOULD** provide descriptive names and descriptions to help clients understand the purpose and usage of each prompt or template.
## Get Prompt

## Getting a prompt

To retrieve a specific prompt or instantiate a prompt template, the client **SHOULD** send a `prompts/get` request.

Expand Down
Loading

0 comments on commit 6be0e7d

Please sign in to comment.