diff --git a/index.bs b/index.bs index bbb561c..f629ef4 100644 --- a/index.bs +++ b/index.bs @@ -1718,7 +1718,9 @@ Prompt injection attacks in WebMCP can be categorized by three distinct attack v
| Field + | Recommended Soft Maximum + | Notes + |
|---|---|---|
| {{ModelContextTool/title}} + | 128 [=code points=] + | Matches the maximum length of {{ModelContextTool/name}}. + |
| {{ModelContextTool/description}} + | 750 [=code points=] + | Concise summary of the tool's behavior, side effects, and return value. + |
Schema identifiers (property names and $defs / definitions keys
+ in {{ModelContextTool/inputSchema}} and {{ModelContextTool/outputSchema}})
+ | 128 [=code points=] + | Matches the maximum length of {{ModelContextTool/name}}. + |
Schema title fields (root, nested schema, and anyOf /
+ oneOf option titles)
+ | 128 [=code points=] + | Matches the maximum length of {{ModelContextTool/name}}. + |
Schema description fields (root, nested schema, and parameter descriptions)
+ | 500 [=code points=] + | Focused on format, semantics, and constraints for that schema node or parameter. + |
Schema enum values
+ | 128 [=code points=] per value; 1,000 [=code points=] combined per parameter + | Keep enum lists concise, preferring standard format hints or lookup tools
+ over large enumerations.
+ |
Other schema string literals (const, string default,
+ examples entries, and pattern values)
+ | 128 [=code points=] per value + | Keep examples lists concise, and keep regex pattern values
+ simple to avoid regular expression denial of service (ReDoS).
+ |
$comment and unrecognized
+ schema keywords (such as custom x-* extensions) before exposing schemas to a model,
+ and can also enforce aggregate limits on the number of registered tools per document or
+ [=origin=], parameters or enum/anyOf options per tool, schema nesting
+ depth, and total serialized tool size. (For size and untrusted-content mitigations on runtime
+ tool return values, see [[#output-injection-attacks]] and [[#mitigation-untrusted-annotation]].)
+