Create Tool Registry
Tool Registry
Create Tool Registry
POST
Create Tool Registry
Create a new tool in the Tool Registry with an initial version. The tool definition should be in OpenAI function-calling format. Tool names must be unique within a workspace. The initial version is created with version number 1. Pass an optionalDocumentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
execution payload to attach a sandbox-executable body. PromptLayer will run it between LLM turns whenever a prompt references the tool. See Auto Tool Execution for the body model and conventions.Authorizations
Body
application/json
Tool name (unique per workspace)
Tool definition in OpenAI function-calling format
Optional human-readable description of the tool
Folder ID to place tool in
Commit message for the initial version
Identifiers from other systems.
Optional sandbox-executable body for the tool. When set, PromptLayer auto-runs the body between LLM turns. See the Auto Tool Execution feature page.

