The API tool type lets you define custom tools that make HTTP requests to external APIs. Each tool you define gets a name, a description, typed parameters, and a URL template. The agent calls these tools by name without needing to construct the HTTP request itself. This is useful for integrating agents with REST APIs that don’t have an MCP server, and for quick prototyping before building a full MCP integration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/docker/docker-agent/llms.txt
Use this file to discover all available pages before exploring further.
Configuration
Properties
Tool name. This is how the agent refers to the tool in calls.
HTTP method. Supports
GET and POST.The URL. Use
${param} to interpolate parameter values. For GET requests, parameters can be interpolated into the URL. For POST requests, parameters are sent as JSON in the request body.Description shown to the model. A clear description helps the agent choose the right tool and use it correctly.
Parameter definitions as JSON Schema properties.
List of required parameter names.
HTTP headers to include in every request. Use
${env.VAR} to reference environment variables.Optional JSON Schema describing the response structure. Useful for MCP and Code Mode consumers.
GET requests
For GET requests, parameters are interpolated into the URL:POST requests
For POST requests, parameters are sent as JSON in the request body:Multiple tools on one agent
Add multipleapi toolset entries to give the agent access to several endpoints:
api-tool.yaml
Limitations
- Only
GETandPOSTare supported. - Response body is limited to 1 MB.
- Request timeout is 30 seconds.
- Only
http://andhttps://URLs are supported. - File uploads and multipart forms are not supported.
Related
Fetch
Make arbitrary HTTP requests at runtime.
Script
Run shell scripts as named tools.
Tools overview
Compare all built-in toolsets.
Configuration
Full toolset configuration reference.