Claud Tool Use to Get Data and Run Code in Your App
Claude can't query your database or run your code, but it can ask your Rails app to do it. This post shows how tool use (function calling) works at the API level with plain Ruby, and how a simple loop around it becomes an AI agent. It also explains where MCP fits in.