Docs/Agent Tools/GET /v1/agent-schema-gen

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

ParameterTypeRequiredDescription
namestringYesTool/function name
descriptionstringYesDescription of the tool
paramsstringNoJSON 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())