# GEPA optimizes the agent's prompt, not the tools themselves
optimizer = GepaOptimizer(model="gpt-4o-mini")
result = optimizer.optimize_prompt(prompt=prompt, dataset=dataset, metric=metric)
```

<Note>
  This is **agent optimization** (optimizing prompts for agents that use tools), not **tool optimization** (optimizing
  the tools themselves).
</Note>

### 2. MCP (Model Context Protocol) Tools

**True tool optimization** is currently only available for MCP tools through the MetaPrompt Optimizer. MCP tools provide standardized interfaces for external integrations:

```python