On this page

Agents

list-agents

List the agents in this project, the same set the console's Agents page shows, one row per agent. Needs the fabric:orchestrate.read grant.

curl -sS -X POST https://fabric.wexa.ai/mcp/$FABRIC_PROJECT_ID \
  -H "authorization: Bearer $FABRIC_API_KEY" \
  -H "Mcp-Session-Id: $MCP_SESSION_ID" \
  -H "content-type: application/json" -H "accept: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"list-agents","arguments":{"limit":5}}}'
{
  "content": [
    {
      "type": "text",
      "text": "{\"lifecycle_id\":\"qlc_000174\",\"result\":{\"agents\":[{\"agent_id\":\"6ab1945e7566f41b5c28e303.6ab1945e83ff5845d7db96bc\",\"name\":\"docs-fixture-agent\",\"role\":\"tester\",\"model\":\"system_model\"}],\"limit\":5,\"page\":1}}"
    }
  ],
  "isError": false
}

Parameters

ParameterTypeRequiredNotes
limitintegerOptionalRows per page (default 20).
pageintegerOptional1-based page number, at least 1 (default 1).
searchstringOptionalNarrow the list by name.
Show full response

A real response, captured from a live call to list-agents:

{
  "content": [
    {
      "type": "text",
      "text": "{\"lifecycle_id\":\"qlc_000174\",\"result\":{\"agents\":[{\"agent_id\":\"6ab1945e7566f41b5c28e303.6ab1945e83ff5845d7db96bc\",\"description\":\"A stable agent the documentation cites.\",\"is_promoted\":false,\"model\":\"system_model\",\"name\":\"docs-fixture-agent\",\"role\":\"tester\"}],\"limit\":5,\"page\":1}}"
    }
  ],
  "isError": false
}
More details

Every argument is optional: list-agents answers a bare call. Multi-agent process flows are excluded; list them with get-process-flow. Each row's agent_id is accepted unchanged by get-agent, update-agent, delete-agent and run-agent.

Every tool call works the same way: How every tool call works.