---
title: "Resolve Tools"
method: POST
path: "/tools/resolve"
tags: ["Tools"]
---

# Resolve Tools

`POST /tools/resolve`

Resolve an agent's tool references into model-ready specs.

Validates Composio connections up front and enriches each action from the
catalog, so a running agent (e.g. Pi) gets ``customTools`` whose ``execute``
routes back through ``POST /tools/call`` — provider keys stay server-side.

## Request body

- ToolResolveRequest
  - `tools` union[]
    - union
      - BuiltinToolConfig — Legacy entry, accepted so revisions written before the rework still parse. Built-in tools are always active and are no longer configured here; the resolver drops every entry with a warning. Keep this arm until the dual-read window closes.
        - `render` object, nullable
        - `permission` 'allow' | 'ask' | 'deny', nullable
        - `type` 'builtin'
        - `name` string, required
      - GatewayToolConfig
        - `render` object, nullable
        - `permission` 'allow' | 'ask' | 'deny', nullable
        - `type` 'gateway'
        - `provider` string
        - `integration` string, required
        - `action` string, required
        - `connection` string, required
        - `name` string, nullable

## Response `200`

Successful Response

- ToolResolveResponse
  - `count` integer
  - `builtins` string[]
  - `custom` ResolvedTool[]
    - `name` string, required
    - `description` string, nullable
    - `input_schema` object, nullable
    - `call_ref` string, required
    - `read_only` boolean, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.net/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/versions/ea6421d829f1/schema)
