Skip to content

Commit 1121a52

Browse files
authored
Merge pull request modelcontextprotocol#1830 from He-Pin/task
chore: fix tasks.requests.tools.call from boolean to simple words
2 parents 6a18fc7 + f29fc64 commit 1121a52

File tree

1 file changed

+2
-2
lines changed
  • docs/specification/draft/basic/utilities

1 file changed

+2
-2
lines changed

docs/specification/draft/basic/utilities/tasks.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ Tool calls are given special consideration for the purpose of task augmentation.
112112

113113
This is to be interpreted as a fine-grained layer in addition to capabilities, following these rules:
114114

115-
1. If a server's capabilities include `tasks.requests.tools.call: false`, then clients **MUST NOT** attempt to use task augmentation on that server's tools, regardless of the `taskHint` value.
116-
1. If a server's capabilities include `tasks.requests.tools.call: true`, then clients consider the value of `taskHint`, and handle it accordingly:
115+
1. If a server's capabilities do not include `tasks.requests.tools.call`, then clients **MUST NOT** attempt to use task augmentation on that server's tools, regardless of the `taskHint` value.
116+
1. If a server's capabilities include `tasks.requests.tools.call`, then clients consider the value of `taskHint`, and handle it accordingly:
117117
1. If `taskHint` is not present or `"never"`, clients **MUST NOT** attempt to invoke the tool as a task. Servers **SHOULD** return a `-32601` (Method not found) error if a client attempts to do so. This is the default behavior.
118118
1. If `taskHint` is `"optional"`, clients **MAY** invoke the tool as a task or as a normal request.
119119
1. If `taskHint` is `"always"`, clients **SHOULD** invoke the tool as a task. Servers **MAY** return a `-32601` (Method not found) error if a client does not attempt to do so.

0 commit comments

Comments
 (0)