Skip to main content
Glama

transpile_ts_to_js

Transpile TypeScript into valid ES2022 JavaScript by stripping type annotations, interfaces, and enums, enabling instant evaluation.

Instructions

Fast serverless TypeScript transpiler: strips type annotations, interfaces, and enums, emitting valid ES2022 JavaScript for instant eval. (0.015 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full disclosure burden. It usefully reveals that the tool strips types, interfaces, and enums, and that output is valid ES2022 JavaScript, plus the per-call cost. However, it does not mention limitations such as unsupported TypeScript features, lack of type-checking, module resolution behavior, or exact return format.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single focused sentence that front-loads the tool's purpose, describes its transformation, states the output, and includes the cost. There is no filler or redundant restating of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema and no annotations, the description gives the core behavior and output language but not the response envelope or error behavior. It is adequate for a simple transpilation call, but an agent would still benefit from knowing what the result payload looks like and which TypeScript constructs are unsupported.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3 even though the parameter descriptions are generic ('Input parameters or JSON string payload'). The description's reference to TypeScript and JavaScript makes it clear what should be placed in payload, but it does not add detail about how the payload should be structured or how paymentSignature is used.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a clear action: it transpiles TypeScript by stripping type annotations, interfaces, and enums, and emits valid ES2022 JavaScript. It distinguishes itself from generic validation/syntax tools by describing its transformation behavior, though it does not explicitly name sibling alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'for instant eval' and 'fast serverless' imply the intended use case is quick, server-side TypeScript-to-JavaScript conversion. However, there is no explicit guidance about when not to use it, such as when full type-checking, TSX support, or module resolution is needed, nor does it name relevant siblings like validate_code_syntax or typescript_ast_type_contract_verifier.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools