lean-mcp-tools

lean-mcp-tools is a skill for Claude Code, Codex from certinia/debug-log-analyzer-mcp. It costs 65 tokens per session (797 once invoked), scanned A, original, BSD-3-Clause.

A guide for designing MCP tools, the interfaces that let agents call external functions and services.

In plain words
What is it for?
Use it when creating or reviewing tool names, descriptions, input schemas, annotations, and the context cost of a tool server.
Why use it?
It helps keep tool definitions and server instructions concise, clear, and placed where the agent can use them most effectively.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/certinia/debug-log-analyzer-mcp/lean-mcp-tools
Any agent
npx skills add certinia/debug-log-analyzer-mcp --skill lean-mcp-tools
Clone the repo
git clone --depth 1 https://github.com/certinia/debug-log-analyzer-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lean-mcp-tools

README.md
[![agentmods](https://agentmods.dev/badge/skills/certinia/debug-log-analyzer-mcp/lean-mcp-tools.svg)](https://agentmods.dev/skills/certinia/debug-log-analyzer-mcp/lean-mcp-tools)
Your own site
<a href="https://agentmods.dev/skills/certinia/debug-log-analyzer-mcp/lean-mcp-tools"><img src="https://agentmods.dev/badge/skills/certinia/debug-log-analyzer-mcp/lean-mcp-tools.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 797 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00065 $0.00797
Opus 5 $0.00032 $0.00398
Sonnet 5 $0.00013 $0.00159
Haiku 4.5 $0.00006 $0.00080

Measured 5d ago against content hash 76361fa1b198, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lean-mcp-tools scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/lean-mcp-tools/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lean MCP tools

A response is paid for when a tool is called. A definition is paid for on every request, called or not, because the client sends all of them with each one. Server instructions sit between: once per session. Put each fact where its audience reads it.

Fact Goes in
True of every tool ("all durations are in milliseconds") instructions
Why a caller picks this tool over its neighbour that tool's description
A value the response

What a definition holds

  • name, title — the display field. annotations.title is a second copy; drop it.
  • description — the selection prompt: what it returns, when to pick it, nothing the schema below already says.
  • inputSchema — a describe only for what the property name and its type cannot say.
  • annotations — only spec hints that differ from the default and carry meaning. destructiveHint and idempotentHint are defined as meaningful only when readOnlyHint is false, so a read-only tool declares readOnlyHint: true and openWorldHint: false and stops. There is no priority hint.

Restructure before you delete

Deleting a fact costs the answer and saves less than reshaping it.

  • Ten per-category properties, each inlining the same enum, became z.partialRecord(z.enum(CATEGORIES), z.enum(LEVELS)) — each enum emitted once. ~844 tokens to ~428, wire form unchanged, unknown keys now rejected. (Plain z.record is cheaper still, but marks every key required.)
  • Hold the values as an as const tuple and build the schema from it, so no description restates them.

Measure the whole wire object

estimateTokens(JSON.stringify(tool)); // per tool, from a live tools/list over stdio

A budget over {name, description, inputSchema} guards a subset of the cost: it let title, annotations and the SDK's own fields grow ~215 tokens unwatched.

A definition is not finished until a check covers it. Three assertions, in the gate that already runs the server:

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 69 lines · 65 tokens per session scan A 76361fa1b198

Subscribe to this mod's changes

lean-mcp-tools is a skill published in the GitHub repository certinia/debug-log-analyzer-mcp (17 stars, last pushed today), licensed BSD-3-Clause. It adds 65 tokens to every session and 797 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

release

Release new npm + SF 2GP package versions for salesforce-mcp-lib. TRIGGER when: user says "release", "publish", "new version", "bump version", "npm publish", "package version create", or asks to tag and push a release. DO NOT TRIGGER when: writing code (use sf-apex/sf-lwc), deploying metadata to an org (use…

Damecek/salesforce-mcp-lib · 96 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

specflow-use

To connect Rosetta with Grid Dynamics SpecFlow MCP; only when SpecFlow is mentioned and the MCP is installed.

griddynamics/rosetta · 27 tokens

opik-diagnose

Surface the Opik traces worth a developer's attention, ranked by signal — errors, failed tool calls, latency, regressions, and low online-eval scores — plus Diagnostics issues. Reads live/production traces via the SDK (searchtraces and agentinsights) and works with no MCP; uses the MCP issue entity when connected.…

comet-ml/opik-mcp · 147 tokens

planning-and-task-breakdown

Breaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.

shashankswe2020-ux/whoop-mcp · 56 tokens