Overview

The Server Tools API lets organization admins register custom tools that execute inside the Allternit platform sandbox rather than on the caller’s machine. Registered tools are invoked through the same /tools/execute surface as native tools and are also reachable from the MCP server tool list. Management routes are gated to organization owners and admins.

Base URL

For local development:

Authentication

Organization admins only. All requests require a valid bearer token and an active organization membership with owner or admin role. See Authentication.

Tool object

Endpoints

Create a server tool

Request body

Example request

Example response

List server tools

Example response

Update a server tool

Replaces the tool fields. The same validation rules apply as for creation.

Delete a server tool

Example response

Execution environment

When a server tool is invoked, the sandbox receives:
  • ALLTERNIT_TOOL_ARGS: JSON-stringified arguments passed to the tool call.
  • Any custom env entries defined on the tool.
The tool output is best-effort parsed as JSON; otherwise the raw stdout, stderr, and exit_code are returned.

Error codes