Register a tenant tool (or a new version of one) on the platform's project
post/platform-agents/tools
Register a tenant tool (or a new version of one) on the platform's project: a name, a description for the model, input and output schemas (the part of JSON Schema Rivier checks), a tier (read, change, approval), what may be kept (none, session), the scope a session needs (read, act) and the https address Rivier calls, signed as webhooks are with the secret shown once. A tool that fails ten times in a row is switched off.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
agents:admin- Graphql
Mutation.agentsPlatformToolCreate- Sdk
agents.platformTool.create- Cli
agents platform tool create
Request bodyapplication/json, required
- namestringrequiredPattern: ^[a-z][a-z0-9_]{0,47}$.
- descriptionstringrequiredAt most 1000 characters.
- inputobjectrequired
- outputobjectrequired
- tierstringOne of: read, change, approval. Default: approval.
- retainstringOne of: none, session. Default: none.
- scopestringOne of: read, act. Default: act.
- urlstring (uri)requiredAt most 500 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring