Skip to content

feat(tools): add infer tools list to print the enabled tools - #1816

Merged
edenreich merged 1 commit into
mainfrom
feat/tools-list
Nov 12, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/tools-list

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

The tool registry is the source of truth for the tools the agent can call, but no command exposed it. Clients kept their own copy of the list and it drifted. The desktop status bar showed Tools: 13 while the agent had 41.

infer tools list prints the enabled tools sorted by name. --format json prints {"tools": [...], "total": n} so clients can count from the registry instead of copying it.

Changes

  • cmd/tools: new list subcommand over ToolService.ListAvailableTools, with text and JSON output. It shuts the service container down before exiting, so no MCP server or agent container it started is left running.
  • MCP server tools are not listed - they register once their servers connect, and infer mcp status counts them.
  • Table test for the sorted text, JSON and empty-list output.
  • docs/commands-reference.md: documents infer tools list.

The desktop reads this list in a follow-up PR, which needs a CLI release with this command.

The registry is the source of truth for the tools the agent can call, but
no command exposed it, so clients kept their own copy of the list and it
drifted. infer tools list prints the enabled tools sorted by name, and
--format json prints {"tools": [...], "total": n} for clients like the
desktop status bar. MCP server tools are left to infer mcp status.
@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 12, 2026
@edenreich
edenreich marked this pull request as ready for review November 12, 2026 13:49
@edenreich
edenreich requested a review from a team as a code owner November 12, 2026 13:49
@edenreich
edenreich merged commit 9eaa8de into main Nov 12, 2026
13 checks passed
@edenreich
edenreich deleted the feat/tools-list branch November 12, 2026 14:11
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.258.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 12, 2026
@edenreich edenreich moved this from Todo to Done in 2026 Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant