Field Extraction Tool for MCPify

Whitelist and reshape JSON payloads into lean, AI-ready objects. Keep only the fields that matter for your task.

Precise Filtering
Extract only the fields your AI needs, nothing more
Nested Paths
Reach nested fields with dot notation in the same call
Context Optimization
Minimize token usage while maximizing data relevance

The Field Overload Problem

❌ Without Field Extraction

// Full user object with 50+ fields
{
  "id": "usr_123",
  "email": "[email protected]",
  "name": "Alice Smith",
  "created_at": "2023-01-15T...",
  "updated_at": "2025-08-01T...",
  "last_login": "2025-08-24T...",
  "preferences": {...},
  "analytics": {...},
  "permissions": {...},
  "sessions": [...],
  "audit_log": [...],
  "metadata": {...},
  // 40+ more fields...
}

AI receives 2,000+ tokens of mostly irrelevant data just to get a user's email and name.

✅ With Field Extraction

// Extracted fields only
{
  "id": "usr_123",
  "email": "[email protected]",
  "name": "Alice Smith"
}

AI receives exactly 15 tokens with precisely the information needed for the task.

Powerful Extraction Capabilities

Field Whitelisting

Specify exactly which fields to keep from complex objects, with dot notation for nested fields.

// nav___json_project_fields arguments
{
  "json": "<_ref>",
  "path": "$..users",
  "columns": ["id", "email", "profile.name", "settings.notifications"]
}

// Input: an array of complex user records
// Output: one row per user with only the specified fields

Array Field Extraction

Extract specific fields from arrays of objects, perfect for lists and collections.

// Extract only names and emails from the users array
{
  "json": "<_ref>",
  "path": "$..users",
  "columns": ["name", "email"]
}

// Input: [{id, name, email, ...50 fields}, ...]
// Output: [{name, email}, {name, email}, ...]

Real-World Use Cases

CRM Data Extraction

Extract only contact information from detailed CRM records:

// Extract from 200+ field CRM objects
columns: ["id", "email", "company", "deal_value"]

// Result: 4 fields instead of 200+

E-commerce Order Processing

Get essential order details for fulfillment:

// Extract from complex order objects
columns: ["order_id", "shipping.address", "total"]

// Skip payment, analytics, history

User Profile Summaries

Create lean user profiles for AI personalization:

// Extract key profile data
columns: ["name", "preferences.language",
          "subscription.tier", "last_active"]

// Ignore sessions, logs, metadata

API Response Filtering

Filter third-party API responses before AI processing:

// Extract from verbose API responses
path: "$.data.results",
columns: ["title", "url"]

// Skip headers, debug, metadata

MCPify Integration

Complete Working Example

Step 1: The Field Extraction Tool

// The tool as your MCP client lists it (tools/list)
{
  "name": "nav___json_project_fields",
  "description": "Project or select several fields from a cached snapshot array of objects",
  "inputSchema": {
    "type": "object",
    "properties": {
      "json": {
        "description": "JSON data, or the reference string from a previous '_ref' field"
      },
      "columns": {
        "type": "array",
        "items": { "type": "string" },
        "description": "Field names to project (dot notation for nested: 'user.email')"
      },
      "path": { "type": "string" },
      "filter_expr": { "type": "string" }
    },
    "required": ["json", "columns"]
  }
}

Step 2: Use in Your AI Agent

// 1. Call the API tool; a large response comes back as a reference (_ref)
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call",
  "params": { "name": "crm___get_customers", "arguments": { "limit": 100 } } }

// 2. Extract only what you need for the task; path is the collection
//    path nav___json_list_fields shows for the reference
{ "jsonrpc": "2.0", "id": 2, "method": "tools/call",
  "params": {
    "name": "nav___json_project_fields",
    "arguments": {
      "json": "<_ref from step 1>",
      "path": "$.items",
      "columns": ["id", "name", "email", "company.name",
                  "last_purchase.date", "lifetime_value"]
    } } }

// AI gets clean, focused data
// 6 fields instead of 150+ per customer

Step 3: Process with AI

// The model receives only the projected rows from step 2
// and works on them: "Identify high-value customers for campaign"

Why Field Extraction Matters

Fewer Tokens
The agent asks for just the fields the task needs
Focused Context
The model reasons over relevant data, not the whole response

Stop Wasting Tokens on Irrelevant Fields

Field Extraction is built into MCPify services. Start extracting smarter today.