Skip to main content
Section ID: DOC-API-MODEL-schema-1gomaj79cc#overview

ToolDefinition

A tool or function the model can request during generation.

serverId is required on every tool definition. Use "client" as the conventional value for tools you execute — client tools are matched by name, not by server.

parametersJsonSchema is what the model reads to work out how to call your tool. Describe the fields accurately. It is not a validation contract — the platform never checks the model's arguments against it, so treat what arrives as untrusted.

Type-reference view: API Schema 9frhv4euve, API Schema 9ftjkkjhfa. Request and response views describe this type; they do not declare an endpoint.

Meaning and usage​

Section ID: DOC-API-MODEL-schema-1gomaj79cc#meaning

See the definition above.

Usage profiles​

Section ID: DOC-API-MODEL-schema-1gomaj79cc#fields

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

Section ID: DOC-API-MODEL-schema-1gomaj79cc#request

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1gomaj79cc#request-field-namenamestringRequired in requestsName used to select and invoke the tool. Minimum length: 1.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#request-field-descriptiondescriptionstringRequired in requestsExplanation of the tool’s purpose supplied to the model and callers. Minimum length: 1.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#request-field-parametersjsonschemaparametersJsonSchemaMap from string to JSON valueOptionalJSON Schema object.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#request-field-metadatametadataMap from string to stringOptionalAdditional tool metadata (version, category, etc.).
Section ID: DOC-API-MODEL-schema-1gomaj79cc#request-field-serveridserverIdstringRequired in requestsRequired server identifier. Use client as the conventional value for client-side tools; those tools are matched by name, not by server. Minimum length: 1.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#request-field-tagstagsArray of stringOptionalTool categorization tags.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#request-field-documentationurldocumentationUrlstringOptionalLink to detailed documentation.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#request-field-outputjsonschemaoutputJsonSchemaMap from string to JSON valueOptionalOptional output schema (JSON Schema serialized as string) describing structured results

Request validation​

Section ID: DOC-API-MODEL-schema-1gomaj79cc#request-validation

These rules apply when this value is supplied in a request. Request validation does not guarantee that response fields are present or satisfy the same rules.

Applies toRuleRequirement
nameMinimum length1
descriptionMinimum length1
serverIdMinimum length1

In responses​

Section ID: DOC-API-MODEL-schema-1gomaj79cc#response

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1gomaj79cc#field-nameSection ID: DOC-API-MODEL-schema-1gomaj79cc#response-field-namenamestringRequired in requestsName used to select and invoke the tool.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#field-descriptionSection ID: DOC-API-MODEL-schema-1gomaj79cc#response-field-descriptiondescriptionstringRequired in requestsExplanation of the tool’s purpose supplied to the model and callers.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#field-parametersjsonschemaSection ID: DOC-API-MODEL-schema-1gomaj79cc#response-field-parametersjsonschemaparametersJsonSchemaMap from string to JSON valueOptionalJSON Schema object.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#field-metadataSection ID: DOC-API-MODEL-schema-1gomaj79cc#response-field-metadatametadataMap from string to stringOptionalAdditional tool metadata (version, category, etc.).
Section ID: DOC-API-MODEL-schema-1gomaj79cc#field-serveridSection ID: DOC-API-MODEL-schema-1gomaj79cc#response-field-serveridserverIdstringRequired in requestsRequired server identifier. Use client as the conventional value for client-side tools; those tools are matched by name, not by server.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#field-tagsSection ID: DOC-API-MODEL-schema-1gomaj79cc#response-field-tagstagsArray of stringOptionalTool categorization tags.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#field-documentationurlSection ID: DOC-API-MODEL-schema-1gomaj79cc#response-field-documentationurldocumentationUrlstringOptionalLink to detailed documentation.
Section ID: DOC-API-MODEL-schema-1gomaj79cc#field-outputjsonschemaSection ID: DOC-API-MODEL-schema-1gomaj79cc#response-field-outputjsonschemaoutputJsonSchemaMap from string to JSON valueOptionalOptional output schema (JSON Schema serialized as string) describing structured results
Section ID: DOC-API-MODEL-schema-1gomaj79cc#validation

Request validation​

Section ID: DOC-API-MODEL-schema-1gomaj79cc#response-validation

These rules apply when this value is supplied in a request. Request validation does not guarantee that response fields are present or satisfy the same rules.

Applies toRuleRequirement
nameMinimum length1
descriptionMinimum length1
serverIdMinimum length1

Where used​

Section ID: DOC-API-MODEL-schema-1gomaj79cc#where-used

ReferenceRelationship
Create an agent profilePOST /api/v1/agent-profiles/create
Get an agent profilePOST /api/v1/agent-profiles/get
Import a prompt libraryPOST /api/v1/agent-profiles/import
List agent profilesPOST /api/v1/agent-profiles/list
Update an agent profilePOST /api/v1/agent-profiles/update
Withdraw your rating on a messagePOST /api/v1/llm/delete-message-rating
Get full conversation statePOST /api/v1/llm/conversation-state
Get detailed MCP server infoPOST /api/v1/llm/mcp-get-server-info
List available MCP toolsPOST /api/v1/llm/mcp-list-tools
Rate an assistant messagePOST /api/v1/llm/rate-message
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
Update context management settingsPOST /api/v1/llm/update-context-management-settings
Update default generation configPOST /api/v1/llm/update-default-generation-config
Get the caller's end-user profilePOST /api/v1/enduser/get
Append a message without generatingPOST /api/v1/llm/append-message
Create a new conversation threadPOST /api/v1/llm/create-thread
Send a message to a conversationPOST /api/v1/llm/send-message
Update the caller's default generation configPOST /api/v1/enduser/update-generation-config
ReceiveMessageRequestAPI JSON uses JSON field names (camelCase).
ClientToolDispatchAPI JSON uses JSON field names (camelCase).
Models containing this value
ModelRelationship
GenerationConfigNested in model
GenerationConfigNested in model
MCPServerInfoNested in model

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-1gomaj79cc