logoalt Hacker News

vessenesyesterday at 8:12 PM1 replyview on HN

I'm confused about these tools - is this a decorator that you can add to your MCP server tools so that they don't pollute the context? How else would I add a "tool" for claude to use?


Replies

cube2222yesterday at 8:19 PM

When you make API calls to generate chat completions, you specify a list of tools. They can be MCP tools, or just arbitrary tool metadata.

The API will then respond when it needs the client code to compute a tool output.

show 1 reply