Skip to main content
Glama

tm_change_variables_set_mode

DestructiveIdempotent

Switch sampling mode (ROW, COLUMN, SEQUENTIAL) on an existing variables set without re-uploading the CSV. Returns updated metadata.

Instructions

Switch sampling mode on an existing set without re-uploading the CSV. Accepts any of the three modes: ROW, COLUMN, SEQUENTIAL.

Common use cases:

  • A capture-import-created set lands in ROW mode by default; flip to SEQUENTIAL for ordered replay that reproduces the original traffic order.

  • A set originally created with ROW (correlated per-row sampling) can be flipped to COLUMN if you want uncorrelated combinations across columns instead.

The server re-parses the stored CSV with the target mode and 400s if the CSV is incompatible — e.g. switching to ROW when the CSV has no weight column. The error message names the actual cause so the AI host can either:

  • Fix the underlying CSV (delete + re-upload with the right shape).

  • Stay in the current mode.

Returns the updated metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variables_set_idYes
modeYes
Behavior5/5

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

Adds significant context beyond annotations: explains server re-parses CSV and returns 400 on incompatibility, and that it returns updated metadata. No contradiction with annotations.

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

Conciseness4/5

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

Well-structured with a clear main sentence followed by bullet-pointed use cases. Slightly verbose but each sentence adds value; could tighten bullet phrasing.

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?

Given low schema coverage and no output schema, the description fully explains behavior, error conditions, and return value, making it complete for an agent to use correctly.

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?

With 0% schema description coverage, the description compensates by listing allowed modes (ROW, COLUMN, SEQUENTIAL) and explaining their semantics with examples. Does not detail variables_set_id format but provides enough context.

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?

The description clearly states the verb 'Switch' and the resource 'sampling mode on an existing set', distinguishing it from sibling tools which all have different purposes (e.g., create, delete, list).

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?

Provides concrete use cases (flipping modes for ordered replay or uncorrelated combinations) and mentions error recovery, but does not compare to alternatives like creating a new set or staying in current mode.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/trafficmorph-gif/tm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server