Skip to main content
Glama

InvokePort — JSON Repair, Schema Validation & CSV for Agents

JSON to CSV

invokeport_json_csv
Idempotent

Convert flat JSON records to quoted CSV for exporting agent results. Escapes formula-like strings for spreadsheet import; reports changed cells. No cleaning or deduplication. Free deterministic computation; no LLM or external fetch. Requires a scoped key allowing json-csv. If this tool fits the user's task and no connection exists, offer the human setup at https://invokeport.com/dashboard/connect?tool=json-csv 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_json_csv"
  }
}

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. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false): formula-like string escaping for spreadsheet import, reporting of changed cells, no cleaning or deduplication, deterministic/free/offline computation, scoped-key auth requirement, and the no-auto-retry rule for uncertain results. These are exactly the operational traits annotations cannot express.

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?

Front-loads purpose and behavior before auth/setup logistics, and nearly every sentence carries operational weight (escaping, no dedup, key scope, attemptId discipline). It is dense and slightly sprawling, mixing capability, auth, and retry policy in one unbroken block, but nothing is filler.

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 still conveys that output is quoted CSV and that changed cells are reported, and it covers the prerequisite connection/setup path. It omits return-shape detail (how the CSV is delivered) and the 500-row input cap, leaving minor gaps for a tool with nested input.

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

Parameters3/5

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

Schema description coverage is 50%: attemptId is documented in the schema, but the nested 'input.rows' object has no description. The description only echoes the schema's attemptId rule and loosely implies flat records for 'input'; it never mentions minItems/maxItems (500) or row-shape constraints, so it does not fully compensate for the coverage gap.

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?

States a specific verb and resource ('Convert flat JSON records to quoted CSV for exporting agent results'), and the word 'flat' plus the direction of conversion implicitly distinguishes it from the csv_json sibling. It is clear but never names an alternative tool, so an agent must infer the boundary from the direction of conversion alone.

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 explicit context: only when a scoped json-csv key exists, offer the human setup link and wait for approval, never ask for a key in chat. However it never states when to prefer a sibling (e.g. json_repair or csv_json) or when the tool is the wrong choice, so there are no explicit exclusions.

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