Skip to main content
Glama

Run Polarion script

execute
Destructive

Run JavaScript in an isolated sandbox to call Polarion API operations and preview write actions with dry_run before applying them.

Instructions

Run JavaScript in an isolated sandbox. The only API is polarion.<operation>(args) (see search) and console.log. The code is the body of an async function: use await, return a JSON value. Limits: 30 s, 20 write calls. With dry_run: true every write is previewed, not performed.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesBody of an async function, e.g. const r = await polarion.getProjects({}); return r.data.length;
dry_runNoPreview all writes without performing them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive and open-world, and the description adds real substance on top: sandbox isolation, a 30 s execution cap, a 20-write-call cap, and the guarantee that dry_run previews every write without performing it. These are exactly the operational limits an agent needs before invoking a destructive, open-ended tool.

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?

Four short sentences, front-loaded with the core action, then API surface, then execution contract, then limits and the dry_run escape hatch. No filler; every clause carries an operational constraint.

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 destructive, open-world execution tool with no output schema, the definition covers the API surface, return contract, and hard limits well. It leaves error behavior (what a failed script returns, whether partial writes persist after a mid-run failure) unaddressed, which matters given the 20-write cap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it clarifies that `code` must use await and return a JSON value, and that dry_run applies to every write rather than a single call. Minor overlap with the schema's own parameter descriptions keeps it from a 5.

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

Purpose5/5

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

States a specific verb and resource: 'Run JavaScript in an isolated sandbox.' It also names the sole API surface (`polarion.<operation>`) and points to the `search` sibling for operation details, so an agent can distinguish this escape-hatch execution tool from the discovery tool without opening a schema.

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

Usage Guidelines4/5

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

Gives clear operating context: the code is an async function body, must use await and return JSON, and dry_run previews writes. The pointer to `search` implies where to find operations, but it never explicitly states when to prefer `search` over writing a script, nor when this tool should be avoided.

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