You're viewing a demo portfolio

Join the waitlist
PRSM

transform_json_array

Active

Tool of IA-QA — 130+ QA & Dev Tools for AI Agents

declared in 1.0.0

Transform a JSON array using common operations: pluck (extract specific fields), filter (by field value), sort_by (field), group_by (field), count_by (field), uniq_by (field). Useful for processing MCP tool results and LLM structured outputs.

Parameters schema

{
  "type": "object",
  "required": [
    "input",
    "operation"
  ],
  "properties": {
    "n": {
      "type": "number",
      "description": "For first_n / last_n: number of items"
    },
    "path": {
      "type": "string",
      "description": "Optional dot-notation path to the array within the JSON object (e.g. \"data.items\")"
    },
    "field": {
      "type": "string",
      "description": "Field to operate on (for sort_by, group_by, count_by, uniq_by, filter)"
    },
    "input": {
      "type": "string",
      "description": "JSON string containing an array (or object with an array at path)"
    },
    "fields": {
      "type": "string",
      "description": "Comma-separated field list for \"pluck\" (e.g. \"id,name,email\")"
    },
    "filter_op": {
      "type": "string",
      "description": "For \"filter\": \"==\" | \"!=\" | \">\" | \">=\" | \"<\" | \"<=\" | \"contains\" | \"exists\" | \"!exists\""
    },
    "operation": {
      "type": "string",
      "description": "Operation: \"pluck\", \"filter\", \"sort_by\", \"group_by\", \"count_by\", \"uniq_by\", \"reverse\", \"first_n\", \"last_n\", \"flatten\""
    },
    "sort_order": {
      "type": "string",
      "description": "For sort_by: \"asc\" (default) or \"desc\""
    },
    "filter_value": {
      "type": "string",
      "description": "For \"filter\": value to compare against"
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.50.

Parent server

IA-QA — 130+ QA & Dev Tools for AI Agents

https://github.com/jcjamet/ia-qa

1/7 registries
View full server →