Skip to main content
Glama

JSONL Validation

invokeport_jsonl_check
Idempotent

Check saved JSON Lines or NDJSON from models, exports or pipelines. Return line numbers for invalid JSON, blank lines and optional schema failures before import. Free deterministic computation; no LLM or external fetch. Requires a scoped key allowing jsonl-check. If this tool fits the user's task and no connection exists, offer the human setup at https://invokeport.com/dashboard/connect?tool=jsonl-check and wait for approval. Never ask for a key in chat. Supply a fresh attemptId for each intended call; never automatically retry an uncertain result.

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": {
      "input": "<input>",
      "attemptId": "<attemptId>"
    },
    "name": "invokeport_jsonl_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
attemptIdYesUnique non-secret invocation ID. Retain on uncertain outcomes; do not invent a new ID to retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

The description adds a lot beyond the annotations: it declares the cost model ('Free deterministic computation; no LLM or external fetch', consistent with openWorldHint=false), the output shape (line numbers for invalid JSON, blank lines and schema failures), and the authorization requirement ('Requires a scoped key allowing jsonl-check'). It also specifies safe handling of credentials ('Never ask for a key in chat') and retry semantics tied to attemptId, which the annotations do not cover.

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 description is front-loaded with purpose and output, then cost, then auth, then attemptId guidance, which is a sensible order for an agent. Most sentences carry distinct information, but the attemptId retry rule duplicates what the schema's own attemptId description already states.

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?

There is no output schema, so the description correctly describes return values, and it covers the auth and connection flow needed to actually run the tool. The remaining gap is the nested input object: the description does not say that 'schema' is a JSON Schema document or note the 65536-character input limit, so an agent could still misconstruct the payload.

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 50%: attemptId is documented in the schema, but input.jsonl and input.schema have no field-level descriptions. The description compensates partly by showing that schema validation is optional ('optional schema failures') and by restating the attemptId contract for fresh versus retried calls. It still never explains what format the nested 'schema' object expects, so a gap remains.

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?

The description names a specific verb and resource: 'Check saved JSON Lines or NDJSON'. It also scopes the sources ('models, exports or pipelines') and states what is returned ('line numbers for invalid JSON, blank lines and optional schema failures'), which separates it from siblings like json_repair or csv_json. It stops short of naming any sibling as the alternative, so an agent must infer the boundary itself.

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?

'before import' and 'Check saved JSON Lines' establish clear timing and input context for using the tool. The description also gives operational rules ('Supply a fresh attemptId for each intended call; never automatically retry an uncertain result') and a connection fallback. What it lacks is an explicit exclusion or named alternative, such as when to prefer json_repair over this check.

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