Skip to main content
Glama

Import Script

import_script
Destructive

Import an open-source load test (JMeter .jmx, k6 .js, or Locust .py) into an existing script, converting it to Loadster commands. An import may create script assets, datasets, and a scenario; replace=true also replaces the script's existing commands and variables. Returns action items to review. For OpenAPI/Swagger or Postman, read the spec yourself and build commands with create_script instead.

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": {
      "projectId": "<projectId>",
      "scriptId": "<scriptId>",
      "source": "<source>",
      "content": "<content>"
    },
    "name": "import_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesThe source tool: jmeter, k6, or locust.
baseUrlNoOptional base URL to prefix relative requests.
contentYesThe source file content (the .jmx XML, .js, or .py text).
replaceNoReplace existing commands (true) or append to them (false). Defaults to false.
scriptIdYesThe script id to import into (create an empty script first).
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing side effects: the import may create script assets, datasets, and a scenario, and replace=true overwrites existing commands and variables. It also states the return value is action items to review. It stops short of saying whether the import is atomic or what state the script is left in on partial failure, which matters for a destructiveHint=true operation.

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?

Three sentences, front-loaded with the core action and formats, then side effects, then the alternative-tool routing. Every sentence carries distinct information with no restatement of the title or schema.

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

Completeness5/5

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

For a 6-parameter, non-idempotent, destructive import with no output schema, the description covers the accepted inputs, the mutation scope, the return shape (action items), and the alternative path. Nothing an agent needs in order to call it correctly is missing.

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 83%, so the baseline is 3; the description adds real meaning by mapping source values to concrete file types and by clarifying that replace=true replaces both commands and variables, which the schema only partially captures. It does not explain baseUrl prefixing behavior or how relative requests are resolved, leaving one parameter thin.

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 ("Import an open-source load test ... into an existing script"), enumerates the exact accepted formats (JMeter .jmx, k6 .js, Locust .py), and names the transformation outcome ("converting it to Loadster commands"). It also distinguishes itself from create_script for OpenAPI/Postman inputs, so an agent can route without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-not rule: for OpenAPI/Swagger or Postman, read the spec and use create_script instead. It also constrains the target ("into an existing script"), matching the schema note to create an empty script first, so the agent knows the prerequisite ordering.

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.