truncate_to_tokens

shallow

io.github.JcJamet/ia-qa-toolbox · Verify this server

Truncate text to at most N tokens (cl100k_base: ~4 chars/token) to avoid exceeding an LLM context window. Optionally keeps the end of the text instead of the start (useful for keeping recent conversation history). Reports whether truncation occurred and the estimated token count.

100.0/100

1 trials · measured 8 days ago

truncate_to_tokens scores 100.0/100 on Vouch's measured behaviour index, from 1 real invocation trials against io.github.JcJamet/ia-qa-toolbox, measured 25 Aug 2026 under methodology v0.2.0. Every measured component scored 100.

Component breakdown

ComponentWeightValue
Reliability35%not applicable
Schema integrity25%100.0
Failure behaviour15%not applicable
Latency15%not applicable
Concurrency10%not applicable

Tool details

Transport
remote
Credential class
open
Input schema
not declared
Output schema
not declared
Side-effect classification
unclassified

Score history

DayScoreTierMethodology
2026-08-25100.0shallowv0.2.0

Probe evidence

ProbeOutcomes
schema_integritypass: 1

Raw request/response logs are not archived yet — the outcome counts above are drawn directly from every recorded trial.

Embed this score

Available for every tool, scored or not — not a verification perk. Always links back to this page.

Vouch score: truncate_to_tokens
[![Vouch score](https://vouch.tools/api/tools/62b102d9-519d-4ab8-a04e-df7c0eb2b3ae/badge.svg)](https://vouch.tools/tools/62b102d9-519d-4ab8-a04e-df7c0eb2b3ae)
truncate_to_tokens — Vouch