GET /v1/agent-schema-genGenerate tool schema from description
Agent Tools lf-agent-tools
Turns a plain description of a tool into the structured form an AI assistant needs before it can call it. Generates an OpenAI-compatible function/tool call schema from a name, description, and JSON parameter definition.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Tool/function name |
description | string | Yes | Description of the tool |
params | string | No | JSON object defining parameters |
Response Schema
schema (object): OpenAI-compatible tool schema
format (string): Schema format identifier
cURL Example
curl 'https://lf-agent-tools.laminarforge.dev/v1/agent-schema-gen?name=<name>&description=<desc>' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-agent-tools.laminarforge.dev/v1/agent-schema-gen'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'name': '<name>', 'description': '<desc>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())