# tooltrim

> tooltrim — nac7-tooltrim. Use this tool when you need to optimize AI agent performance by reducing unnecessary token spending on bloated tool results. Tooltrim solves the problem of excessive output by compressing HTML, JSON, logs, and tables, preserving only relevant content. It can be used as a server or gateway, taking in upstream tool outputs and producing streamlined results for more efficient model processing.

Canonical page: https://skillsregistry.net/skills/nac7-tooltrim  
JSON: https://api.skillsregistry.net/v1/skills/nac7-tooltrim

## Description

tooltrim reduces the tokens agents spend re-reading bloated tool results. Run it as an MCP server exposing compress and expand_tool_output, or as a gateway in front of any upstream MCP server: it re-exposes the upstream tools unchanged and shrinks each result (HTML/JSON/logs/tables) before it reaches the model, keeping the relevant content only.

## Trust

- **Trust score (0–1):** 0.65
- **Verification tier:** scanned
- **Last scanned:** 2026-08-29

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** other
- **Updated:** 2026-08-29

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/ni04yq5f0i)
- **Repository:** <https://github.com/nac7/tooltrim>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "nac7-tooltrim"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/nac7-tooltrim` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/nac7-tooltrim/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
