Human-in-the-Loop Agent Task Management for Claude Code
Back to Glossary

MCP Tool

An MCP tool is a callable function exposed by an MCP server that an AI agent can invoke to perform actions in the world. Tools are the primary mechanism through which agents extend their capabilities beyond text generation — enabling them to interact with external systems, APIs, file systems, and services.

Anatomy of an MCP Tool

Each MCP tool has:

AgentRQ MCP Tools

AgentRQ exposes the following tools to Claude Code agents:

Tool Parameters Description
createTask title, description, status Create a task on the task board
reply chat_id, message Send a message to the human
getTaskMessages chat_id Retrieve conversation history
updateTaskStatus task_id, status Set a task to ongoing or completed
downloadAttachment attachment_id Retrieve a file attachment
getWorkspace Get workspace configuration

How the Agent Uses Tools

When a tool is available, the LLM can choose to call it by generating a structured tool call in its response. The MCP client intercepts this, executes the tool call against the server, and returns the result to the model as a new context entry.

`

  1. Model generates: { "tool": "reply", "params": { "chat_id": "...", "message": "Done!" } }
  2. MCP client calls AgentRQ's reply endpoint
  3. AgentRQ delivers the message to the human's task board
  4. MCP client returns: { "success": true } to the model
  5. Model continues reasoning with updated context

`

Related Terms

Start Free