---
title: "Get MCP tool suggestions for a custom agent."
method: GET
path: "/agents/custom_agents/{agent_id}/suggestions"
tags: ["Agents"]
---

# Get MCP tool suggestions for a custom agent.

`GET /agents/custom_agents/{agent_id}/suggestions`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/agents/custom_agents/{agent_id}/suggestions`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/agents/custom_agents/:agent_id/suggestions/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns suggested MCP tool configurations for a custom agent based on its metadata. Helps users identify and configure required tools.

## Path parameters

- `agent_id` string, required

## Response `200`

Successful operation

- CustomAgentSuggestion[]
  - `mcp_servers` CustomAgentSuggestionMcpServer[]: List of MCP server suggestions with tool configurations
    - `tool_name` string, required: MCP server name from agent metadata
    - `tool_args` string, required: JSON string containing tool configuration (empty if unresolved)

## Other responses

- `400`: Bad request
- `401`: Unauthorized - Invalid or missing API key
- `404`: Not found
- `500`: Internal server error
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
