Skip to content

Commit e676062

Browse files
Phil Whittakerclaude
andcommitted
Add cost and sustainability section to MCP best practices
Enhanced the best practices documentation to include considerations about: - Cost efficiency through context optimization - Environmental impact of token usage - Trade-offs between context size, cost, and compute usage This addition emphasizes that minimizing context isn't just a technical best practice but also reduces monetary costs and carbon footprint. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a24b3a0 commit e676062

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

16/umbraco-cms/reference/developer-mcp/best-practice.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,25 @@ The Developer MCP Server gives you powerful fine-grained control over what the L
1414
**Do not enable** all tools at once. This will make requests inefficient and may cause the LLM to fail or hallucinate.
1515
{% endhint %}
1616

17-
Each tool you add increases the amount of information (context) that gets sent to the model. This competes for limited space and can cause the model to lose focus or produce unreliable results.
17+
Each tool you add increases the amount of information (context) that gets sent to the model. This competes for limited space and can cause the model to lose focus, hallucinate or produce unreliable results.
1818

1919
Always enable only the tools (or tool collection) needed for the current task.
2020

21+
### Keep It Lean: Cost and Sustainability
22+
23+
Every time you interact with the LLM, the entire context — including the system prompt, tools, instruction files, and chat history — is sent to the model to generate a response. The smaller and more focused your context, the better.
24+
25+
Large prompts and bloated toolsets not only lead to slower and less accurate results — they also increase cost and environmental impact. The more tokens you send and receive, the higher the:
26+
27+
- Monetary cost (especially on usage-based APIs)
28+
- Compute usage, which has a direct carbon footprint
29+
30+
Being intentional with your prompts and tool selection isn’t just a technical best practice — it’s a sustainable one.
31+
32+
{% hint style="info" %}
33+
Optimising your context makes your work faster, cheaper, and greener.
34+
{% endhint %}
35+
2136
## Recommended Workflow
2237

2338
1. Start with a clean session

0 commit comments

Comments
 (0)