Skip to main content
Use the Tools API to manage organization tool drafts and published versions. All requests use https://api.agents.slng.ai and a bearer API key.
Authorization

Endpoints

GET /v1/agents/tools accepts limit from 1 to 200, offset up to 10,000, and repeatable exact name filters.

Tool types

Names are 1 to 200 characters and can contain letters, numbers, underscores, and dashes. Descriptions are limited to 2,000 characters.

API Request config

The executor manages authentication, signatures, and hop-by-hop headers.

Test request

RunRequest
The response reports status as succeeded, failed, or timed_out and includes latency_ms, output_json, logs, validation, error, and the current gate_status.

Publish response

Publishing returns published, version_number, and checks. If one or more checks fail, the endpoint returns HTTP 409 with published: false and the failed gate details. Published versions are immutable. Updating the draft does not modify a version or an existing agent attachment.

Upgrade an attachment

The preview endpoint returns the current and target version hashes, any added, removed, renamed, or type-changed parameters, a reconciled attachment, blocking issues, and can_accept. A code dependency preparation can return HTTP 202; use its Retry-After header before requesting the preview again. To accept the preview, send its version and proof fields unchanged:
Upgrade request
If the agent, attachment, or target version changes after the preview, request a new preview instead of reusing the old proof.

Attachment contract

Organization and global tools use tool_refs; MCP tools use mcp_refs. Both arrays belong to the agent update contract. A PATCH that includes an array replaces that entire array. PUT /v1/agents/{agent_id} replaces the complete agent configuration. See Attach a tool to an agent for a safe read, edit, and partial-update example.