agloop_get_agent_info
Retrieve the full agent prompt and definition from .agent.md files to understand agent capabilities and configurations within the AgLoop framework.
Instructions
Read the definition file (.agent.md) for a specific agent. Returns the full agent prompt including frontmatter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_name | Yes |
Implementation Reference
- src/agloop_mcp/server.py:107-113 (handler)The handler function for agloop_get_agent_info, which reads agent information using the _sm() state manager.
@mcp.tool() def agloop_get_agent_info(agent_name: str) -> str: """Read the definition file (.agent.md) for a specific agent. Returns the full agent prompt including frontmatter.""" info = _sm().get_agent_info(agent_name) if not info: return json.dumps({"error": f"Agent '{agent_name}' not found"}) return info