Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Software . 2026
Data sources: ZENODO
ZENODO
Software . 2026
Data sources: Datacite
ZENODO
Software . 2026
Data sources: Datacite
versions View all 2 versions
addClaim

TSCG - Token-Context Semantic Grammar Compiler for LLM Tool Schemas

Authors: Sakizli, Furkan;

TSCG - Token-Context Semantic Grammar Compiler for LLM Tool Schemas

Abstract

Reference implementation of TSCG (Token-Context Semantic Grammar), a deterministic compiler for transforming JSON tool schemas into compressed, model-readable formats for use in agentic AI systems. This bundle contains the source code of 4 npm packages: @tscg/core (1.4.3): Core compiler with 8 operators (SDM, TAS, DRO, CFL, CFO, CAS, SAD, CCP). Sub-millisecond execution. Zero dependencies. @tscg/mcp-proxy (1.4.3): Model Context Protocol-aware proxy with adaptive profile resolution and per-model cache reader. @tscg/tool-optimizer (1.4.3): Framework integrations for LangChain, MCP, Vercel AI SDK. @tscg/openclaw (1.4.3): OpenClaw plugin with adaptive sweep CLI for per-model empirical profile detection. Validated across 20,000+ API calls on 15+ models (4B-32B parameters + frontier models GPT-4o, GPT-5.2/5.4/5.5, Claude Sonnet 4, Claude Opus 4.7). Sub-millisecond execution. Zero dependencies. MIT licensed. Companion findings library: github.com/SKZL-AI/tscg/tree/main/findings

Keywords

LLM, tool-calling, JSON, npm, model-context-protocol, prompt-engineering, format-translation, NLP, function-calling, schema-compression, MCP, language-models, agentic-AI, TypeScript

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average