# MCP Cookbook: 10 recipes to supercharge agent tool-use
A pragmatic set of MCP patterns you can copy‑paste into your stack.
## 1) Read config securely
- Server: `secrets` → `get(key)` with scopes per env.
## 2) Fetch docs and summarize
- Chain: `search_docs` → `get_page` → `summarize_chunked`.
## 3) Safe Git commit pipeline
- `open_file` → `apply_patch` → `commit` → `push` with confirmations.
## 4) Ticket lifecycle
- `create_ticket` → `update_ticket` → `add_comment` with idempotence keys.
## 5) SQL with guardrails
- `run_sql` with approved schemas and readonly by default.
## 6) Batch export with streaming
- Emit progress events; support resume with cursors.
## 7) Content generation workflow
- `generate_draft` → `lint` → `insert_assets` → `publish`.
## 8) Incident macros
- `page_oncall` → `fetch_logs` → `open_problem_ticket`.
## 9) Policy gates
- Enforce budgets, timeouts, and approvals per tool.
## 10) Telemetry everywhere
- Correlate requests; classify errors (retryable/auth/validation).
---
These recipes favor explicit capabilities, small blast radius, and strong visibility—so you can move fast without breaking prod.
MCP Cookbook: 10 recipes to supercharge agent tool-use
Ten practical MCP recipes to ship agent tools faster with safety and observability.