Skip to main content
Glama

Run a Demofy program

execute_typescript

Run a short TypeScript program that calls Demofy tools (found with search_tools) in an isolated sandbox.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "execute_typescript"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesA TypeScript program body. Call the external_* functions search_tools declared, and `return` the result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare openWorldHint=true, readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the safety profile is largely covered by structured data. The description adds genuinely useful context with "isolated sandbox," telling the agent side effects are contained. It does not disclose timeouts, execution cost, whether state persists between runs, or how failures surface — material gaps for arbitrary code execution.

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?

One sentence, front-loaded with the verb and resource, with the discovery hint and sandbox guarantee packed in efficiently. Nothing is redundant or buried.

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

Completeness4/5

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

For a single-parameter tool with no output schema, the definition covers what to run, where it runs, and how to find callable tools, and annotations carry the open-world/non-idempotent profile. It leaves execution limits and failure behavior unexplained, which keeps it from being fully complete for a code-execution tool.

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?

With a single parameter at 100% schema description coverage, the schema already explains that the value is a TypeScript program body that calls the external_* functions and returns a result. The description adds no syntax, size, or structural guidance beyond that, so the baseline of 3 applies.

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?

States a specific verb and resource ("Run a short TypeScript program") plus the execution context (isolated sandbox), which clearly separates it from search_tools, the discovery tool. It stops short of naming the boundary explicitly ("this does not search for tools"), so it is clear but not maximally differentiated.

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?

Usage is only implied: an agent learns it should call search_tools first to find available tools, and that programs should be "short." There is no explicit when-not guidance, no mention of what to do instead for simple single-tool calls, and no stated limits on program size or runtime.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources