Skip to content

Commit 6835f7a

Browse files
authored
Codify MCP tool name requirements and add title
1 parent ebfccbe commit 6835f7a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

index.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ A <dfn>tool definition</dfn> is a [=struct=] with the following [=struct/items=]
118118
:: a [=string=] uniquely identifying a tool registered within a [=model context=]'s [=model
119119
context/tool map=]; it is the same as the [=map/key=] identifying this object.
120120

121+
The [=tool definition/name=] SHOULD:
122+
* Be between 1 and 128 characters in length (inclusive).
123+
* Be considered case-sensitive.
124+
* Only consist of uppercase and lowercase ASCII letters (A-Z, a-z), digits (0-9), underscore (_), hyphen (-), and dot (.).
125+
126+
: <dfn>title</dfn>
127+
:: A [=string=] representing a human-readable title of the tool to be used in the user interface to represent the tool.
128+
121129
: <dfn>description</dfn>
122130
:: a [=string=].
123131

0 commit comments

Comments
 (0)