3  Giving Agents Econometric Tools: MCP, Skills and Plugins

NotePlanned for this chapter
  • Data: none
  • Functions: sp.function_schema, sp.describe_function, sp.search_functions, sp.all_schemas
  • Starting material: statspai-plugin, stata-code, Auto-Empirical-Research-Skills, docs/dev/modules/agent_mcp.md

3.1 Why an agent needs tools, not just a Python prompt

3.2 Self-describing functions: sp.function_schema and sp.describe_function

3.3 The StatsPAI MCP server

3.4 The statspai-analysis skill and the Claude Code plugin

3.5 Driving Stata from an agent with stata-code

3.6 Skill libraries for empirical research

3.7 The same setup in Claude Code and in Codex