Create Tool
lyzr_create_toolTurn OpenAPI schemas into functional tools. Submit a schema and tool set name to generate a new tool with configurable defaults and optional enhanced descriptions.
Instructions
Create a new OpenAPI-based tool from an OpenAPI schema. Returns the created tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | Owning user id | |
| tool_set_name | Yes | Name for the tool set | |
| openai_api_key | No | OpenAI API key, required if enhance_descriptions is true | |
| openapi_schema | Yes | The OpenAPI schema (as a JSON object) describing the tool's endpoints | |
| default_headers | No | Default headers applied to every call | |
| endpoint_defaults | No | Per-endpoint default overrides | |
| default_body_params | No | Default body params applied to every call | |
| default_query_params | No | Default query params applied to every call | |
| enhance_descriptions | No | Whether to use an LLM to enhance endpoint descriptions (default false) |