MCP & integrations/GitHub/MCP

toolism

by rakeshnitb23·Last observed 2026-10-26
★ 49 stars⑂ 18 forks

toolism is a Python library and CLI for measuring and slimming tool-definition schemas in OpenAI, Anthropic, or MCP formats. Its safe rules remove redundant schema details while preserving validation behavior, and it can verify changed schemas, report token counts, and enforce a committed baseline in CI.

Useful for

  • Slim a tool schema once at agent startup, then send the resulting tool definitions with each request.

Key features

  • Measures tool-definition token counts and slims schemas from files or a live MCP server.
  • Safe rules preserve schema validation; optional verification checks changed schemas in both directions and reverts changes that fail equivalence.
  • Supports CI checks against a committed token baseline with configurable growth or absolute limits.

Requirements & limitations

  • The default tokenizer downloads its vocabulary file on first use; heuristic mode is available for offline or restricted environments.
  • Before 1.0, minor releases may change the public API after a deprecation warning for at least one minor release.

Project information

CategoryMCP & integrations
TypeMCP
Author / organizationrakeshnitb23
LicenseMIT
Last observed2026-10-26

Discussion

No comments yet.

Sign in with Google to comment. Browsing is open to everyone.

Community vote