Skip to main content
Glama
This connector has been deprecated

This listing duplicates LexQ (io.lexq/lexq), which follows the official MCP Registry entry. Use that listing instead.

Upload Dataset

lexq_dataset_upload

Upload inline CSV or JSON content as a simulation dataset. The content is stored as a dataset, and its path is returned in the "path" field.

To use the returned path in lexq_simulation_start, set: dataset: { "type": "UPLOADED", "source": "UPLOADED_FILE", "path": "" }

The content travels inside the tool call, so this suits small datasets, and the hosted server at mcp.lexq.io limits the size of a request. For a larger file, use lexq_dataset_upload_file on the local server (lexq serve --mcp), or upload it with the CLI or the console and pass the returned path.

CSV example: userId,paymentAmount user_001,150000 user_002,50000

In CSV, a cell holding a JSON array, such as ["gold","vip"], is read as a list; quote the cell, as CSV requires for a value with commas.

JSON example: [{"userId":"user_001","paymentAmount":150000}, {"userId":"user_002","paymentAmount":50000}]

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": {
      "content": "<content>"
    },
    "name": "lexq_dataset_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesCSV or JSON content as string
filenameNoFilename with extension (.csv or .json)dataset.csv

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world write. The description adds real behavioral context beyond them: content is persisted as a dataset, a size limit applies on the hosted server, and the returned 'path' field is the handoff identifier. It does not say whether re-uploading the same filename overwrites or creates a new dataset, nor what errors occur on oversized payloads.

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?

The purpose is front-loaded, then usage guidance, then the chaining recipe, then examples. The two examples and the CSV-quoting note are dense with actionable detail rather than filler, though the block is longer than strictly necessary for a two-parameter tool.

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?

With no output schema, the description correctly explains the only return value that matters ('path') and how to embed it in lexq_simulation_start. For a write tool whose annotations cover the safety profile, the remaining gap is overwrite/dedup semantics and error behavior on size violations.

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 the schema does not: filename extension selects CSV vs JSON parsing, and CSV cells containing JSON arrays must be quoted so they are read as lists. The paired examples make the expected shapes unambiguous.

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 first sentence gives a specific verb and resource ('Upload inline CSV or JSON content as a simulation dataset') and immediately distinguishes it from file-based or template-based dataset routes. An agent can tell what this does and does not do without opening the 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?

It states when to use this tool (content travels inside the call, small datasets), when to avoid it (hosted request size limit; larger files should go through lexq_dataset_upload_file on the local server, the CLI, or the console), and how the result feeds lexq_simulation_start. That is explicit when/when-not/alternatives guidance.

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