invoke_tool
Execute tools from the invok.it marketplace by providing a slug and JSON arguments. Returns the tool's output, metadata, and actionable error codes for automatic recovery.
Instructions
Invoke a tool on the invok.it marketplace via transparent proxy.
Requires an API key (INVOKIT_API_KEY environment variable).
Check the tool's input_schema first (via get_tool) to know what arguments to pass. The response includes the tool's output along with platform metadata (latency, tool version, invocation ID if available).
After receiving the result, use submit_outcome to provide quality feedback on the tool. This helps improve tool rankings for all agents.
On failure, error responses include an error code (e.g. CIRCUIT_OPEN, RATE_LIMIT_EXCEEDED, TOOL_NOT_FOUND), a suggestion for resolution, and alternative tools when available (on 503). Use this information to automatically recover — switch to an alternative tool or retry after the suggested delay.
Args: slug: The tool's slug identifier (e.g. "send-email-via-sendgrid"). arguments: JSON arguments matching the tool's input_schema (use get_tool to see the schema). version: Specific tool version to invoke (e.g. "1.0.0"). Uses latest if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| version | No | ||
| arguments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |