-
Notifications
You must be signed in to change notification settings - Fork 9
docs(resources): document static properties as a first-class MCP/OpenAPI schema source #605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
7fea797
6cfe041
556106b
10bc616
5f06e2b
cfdbab6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,7 +72,7 @@ The Resource's path is sanitized into a valid tool name: `/` and `.` become `_`. | |
|
|
||
| ### Input schema derivation | ||
|
|
||
| Input schemas come from `Table.attributes`: | ||
| Input schemas come from `Table.attributes` — or, for a programmatic Resource that declares no attributes, from its [`static properties`](/reference/v5/resources/resource-api#static-properties-recordstring-jsonschemafragment) <VersionBadge type="changed" version="v5.2.0" />, whose JSON Schema types pass through unchanged: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The bullets immediately below still say |
||
|
|
||
| - Harper types map to JSON Schema primitive types (`Int`/`Long`/`BigInt` → `integer`, `Float` → `number`, `String`/`ID` → `string`, `Boolean` → `boolean`, `Date` → `[string, number]`, `Bytes`/`Blob` → `string` with `contentEncoding: base64`). | ||
| - Nested `Object` and `Array` attributes recurse into their `properties` / `elements`. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static outputSchemascannot currently describe a customsearch_*result: the search registration path deliberately omitsoutputSchemaand never readsoutputSchemas.search. An author following this advice will add an override that has no effect intools/list. Please limit this recommendation to supported verbs (such asget/create), or explicitly state thatsearch_*output schemas are not supported yet.