Skip to content

Commit 80d942f

Browse files
authored
Merge pull request modelcontextprotocol#415 from evalstate/fix/tool-resource-guidance
Update guidance for use of Embedded Resources in CallToolResult
2 parents 5890475 + 2d4d723 commit 80d942f

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

docs/specification/draft/server/resources.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ otherwise have a standard MIME type.
326326

327327
Git version control integration.
328328

329+
### Custom URI Schemes
330+
331+
Custom URI schemes **MUST** be in accordance with [RFC3986](https://datatracker.ietf.org/doc/html/rfc3986),
332+
taking the above guidance in to account.
333+
329334
## Error Handling
330335

331336
Servers **SHOULD** return standard JSON-RPC errors for common failure cases:

docs/specification/draft/server/tools.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ or data. In this case, the tool will return a URI that can be subscribed to or f
252252

253253
#### Embedded Resources
254254

255-
A tool **MAY** return embedded [Resource contents](/specification/draft/server/resources), to provide additional context
256-
or data, along with a URI that can be subscribed to or fetched again by the client later:
255+
[Resources](resources) **MAY** be embedded to provide additional context
256+
or data using a suitable [URI scheme](./resources#common-uri-schemes). Servers that use embedded resources **SHOULD** implement the `resources` capability:
257257

258258
```json
259259
{

schema/draft/schema.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)