{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "www.fluxgraph.app",
    "site": "fluxgraph.app",
    "addresses": [
      {
        "address": "216.150.1.65",
        "endpoints": 250,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.1.0/24",
          "country": "US"
        }
      },
      {
        "address": "216.150.16.193",
        "endpoints": 666,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.16.0/24",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "216.150.1.65",
          "216.150.16.193"
        ],
        "first_seen": "2026-11-22T07:00:02.426Z",
        "last_seen": "2026-11-22T07:00:02.426Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Vercel",
        "evidence": "Server header \"Vercel\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "flux",
      "version": "0.1.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Vercel",
      "strict-transport-security": "max-age=63072000"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 873,
      "sample": [
        {
          "id": "26",
          "url": "https://mrk.ae/api/mcp",
          "server_name": "ae.mrk/dubai-property",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:31:08.438Z"
        },
        {
          "id": "38",
          "url": "https://www.hood.ag/api/mcp",
          "server_name": "ag.hood/name-service",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:32:01.495Z"
        },
        {
          "id": "39",
          "url": "https://www.almostimpossible.agency/mcp",
          "server_name": "agency.almostimpossible/site",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:32:01.495Z"
        },
        {
          "id": "182",
          "url": "https://www.ai-portal.ai/mcp",
          "server_name": "ai.ai-portal/ai-portal",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:34:01.210Z"
        },
        {
          "id": "248",
          "url": "https://app.aqta.ai/api/mcp",
          "server_name": "ai.aqta/seal",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:35:03.039Z"
        },
        {
          "id": "278",
          "url": "https://asrm.ai/mcp",
          "server_name": "ai.asrm/asrm",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:37:01.449Z"
        },
        {
          "id": "368",
          "url": "https://beexcellent.ai/api/mcp/public",
          "server_name": "ai.beexcellent/reference",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:39:02.648Z"
        },
        {
          "id": "395",
          "url": "https://property.bluebed.ai/mcp",
          "server_name": "ai.bluebed.property/new-launches",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:40:02.123Z"
        },
        {
          "id": "416",
          "url": "https://www.bordet.ai/api/mcp/mcp",
          "server_name": "ai.bordet/bordet",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:39:02.482Z"
        },
        {
          "id": "430",
          "url": "https://www.budgetseo.ai/api/mcp",
          "server_name": "ai.budgetseo/budget-seo-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:41:00.965Z"
        },
        {
          "id": "461",
          "url": "https://callmcp.ai/mcp",
          "server_name": "ai.callmcp/server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:41:01.824Z"
        },
        {
          "id": "670",
          "url": "https://www.decisionlog.ai/api/mcp",
          "server_name": "ai.decisionlog/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:45:03.762Z"
        },
        {
          "id": "754",
          "url": "https://www.edgechat.ai/mcp",
          "server_name": "ai.edgechat/edgepedia",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:48:01.794Z"
        },
        {
          "id": "787",
          "url": "https://mcp.tenda.eshmere.ai/mcp",
          "server_name": "ai.eshmere/tenda",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:50:01.774Z"
        },
        {
          "id": "868",
          "url": "https://www.flamel.ai/mcp",
          "server_name": "ai.flamel/public-content",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:51:02.819Z"
        },
        {
          "id": "908",
          "url": "https://mcp.fudge.ai/mcp",
          "server_name": "ai.fudge/fudge",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:52:01.102Z"
        },
        {
          "id": "1083",
          "url": "https://govrelations.ai/mcp",
          "server_name": "ai.govrelations/govrelations",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:54:00.852Z"
        },
        {
          "id": "1134",
          "url": "https://www.heycai.ai/mcp",
          "server_name": "ai.heycai/clinic-tools",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:55:02.831Z"
        },
        {
          "id": "1300",
          "url": "https://kifly.ai/api/mcp",
          "server_name": "ai.kifly/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:59:02.560Z"
        },
        {
          "id": "1374",
          "url": "https://api.last-price.ai/api/mcp/rpc?profile=lean",
          "server_name": "ai.last-price/pricing",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T05:00:04.106Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "app.fluxgraph",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/elegant-atomics/linkedin-mcp",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "3309",
    "server_name": "app.fluxgraph/linkedin",
    "url": "https://www.fluxgraph.app/mcp",
    "host": "www.fluxgraph.app",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T07:00:02.426Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "ca66fbad2c8a6ee77fa7717840a4c6c1f19776424f6fffcb272f200db1f81b78",
    "first_listed_at": "2026-11-21T05:45:00.411Z",
    "created_at": "2026-11-21T04:45:11.981Z",
    "resolved_addresses": [
      "216.150.1.65",
      "216.150.16.193"
    ]
  },
  "server": {
    "name": "app.fluxgraph/linkedin",
    "title": "Flux LinkedIn MCP",
    "description": "LinkedIn intelligence: post analytics and research for public profiles and company pages.",
    "version": "1.0.1",
    "registry_status": "active",
    "repository_url": "https://github.com/elegant-atomics/linkedin-mcp",
    "website_url": "https://www.fluxgraph.app/features/mcp",
    "published_at": "2026-11-07T04:07:30.864Z",
    "updated_at": "2026-11-07T04:07:30.864Z",
    "first_seen": "2026-11-21T04:45:11.326Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T14:56:12.310Z"
  },
  "operator": {
    "key": "fluxgraph.app",
    "name": "fluxgraph.app",
    "platform": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 518,
    "first_check_in_window": "2026-11-21T05:45:00.411Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "ca66fbad2c8a6ee77fa7717840a4c6c1f19776424f6fffcb272f200db1f81b78",
    "tools": 72,
    "resources": 0,
    "prompts": 8,
    "first_seen": "2026-11-21T05:45:00.921Z",
    "tool_names": [
      "list_profiles",
      "preview_profile",
      "preview_posting_insights",
      "preview_search_posts",
      "claim_preview",
      "get_posts",
      "get_profile_summary",
      "get_posting_insights",
      "get_topic_insights",
      "get_engagement_trends",
      "search_posts",
      "get_credit_balance",
      "get_usage_history",
      "get_cost_estimate",
      "create_stream",
      "list_streams",
      "get_stream_feed",
      "pause_stream",
      "resume_stream",
      "delete_stream",
      "run_stream_now",
      "linkedin_profile_info",
      "linkedin_profile_posts",
      "linkedin_company_posts",
      "linkedin_post_search",
      "linkedin_profile_reactions",
      "linkedin_profile_comments",
      "linkedin_job_search",
      "linkedin_ad_search",
      "linkedin_people_search",
      "linkedin_company_search",
      "linkedin_company_info",
      "linkedin_post_reactions",
      "linkedin_post_comments",
      "find_similar_posts",
      "score_draft",
      "suggest_angles",
      "list_segments",
      "create_segment",
      "add_to_segment",
      "remove_from_segment",
      "resolve_segment",
      "list_segment_templates",
      "get_alerts",
      "create_collection",
      "add_to_collection",
      "remove_from_collection",
      "list_collections",
      "resolve_collection",
      "create_campaign",
      "add_campaign_accounts",
      "map_constellation",
      "score_connections",
      "get_outreach_queue",
      "get_engagement_brief",
      "log_outcome",
      "get_campaign_stats",
      "get_inbound_attribution",
      "save_post",
      "get_post_engagers_by_company",
      "get_engagement_industry_breakdown",
      "get_alumni_engagers",
      "get_engager_position_history",
      "get_target_warmth_brief",
      "traverse_graph_help",
      "traverse_graph",
      "get_company_engagement_overlap",
      "get_outreach_path",
      "get_post_set_engagers",
      "enrich_people",
      "resolve_people",
      "resolve_company"
    ],
    "declared": {
      "tools": [
        {
          "name": "list_profiles",
          "title": "List Profiles",
          "description": "[Read · free] List all tracked LinkedIn profiles for the authenticated user. Returns profile IDs needed by other tools.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "List Profiles",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "preview_profile",
          "title": "Preview a LinkedIn profile",
          "description": "[Acquire · free] Analyze a public LinkedIn profile or company page without a Flux account: pulls the latest ~50 posts (once per profile) and returns a teaser: post count, average engagement, the format that beats the baseline, the top post and the recent trend, plus a preview_id. The full breakdown (best day and hour, top and bottom posts with reasons, trends by format) and keyword search need a free Flux account: call preview_posting_insights or preview_search_posts with the preview_id, which asks the person to sign in where the client supports it, or give the person the continue_url if that call fails. Call claim_preview after sign-in only when the person says the profile is theirs.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "linkedin_url"
            ],
            "properties": {
              "linkedin_url": {
                "type": "string",
                "description": "Public LinkedIn profile or company URL, e.g. https://www.linkedin.com/in/janedoe"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Preview a LinkedIn profile",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "preview_posting_insights",
          "title": "Preview posting insights",
          "description": "[Read · free] Full breakdown for a previewed profile (from preview_profile): best day, hour, format and length, the top and bottom 5 posts with measured reasons, and engagement trend by format. Requires a free Flux account; calling it asks the person to sign in where the client supports it, otherwise use continue_url from preview_profile.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "preview_id"
            ],
            "properties": {
              "preview_id": {
                "type": "string",
                "description": "preview_id returned by preview_profile"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Preview posting insights",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "preview_search_posts",
          "title": "Search previewed posts",
          "description": "[Read · free] Keyword search over the latest 50 posts of a previewed profile (from preview_profile). Case-insensitive substring match; returns matching posts ordered by engagement. Requires a free Flux account; calling it asks the person to sign in where the client supports it, otherwise use continue_url from preview_profile.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "preview_id",
              "query"
            ],
            "properties": {
              "query": {
                "type": "string",
                "maxLength": 100,
                "description": "Text to look for in the posts, 2 to 100 characters"
              },
              "preview_id": {
                "type": "string",
                "description": "preview_id returned by preview_profile"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Search previewed posts",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "claim_preview",
          "title": "Claim a previewed profile",
          "description": "[Act · writes · irreversible] Make a profile from preview_profile your own Flux dashboard. Call this only when the person says the profile is theirs: the person cannot undo a claim. Requires sign-in; creates a free dashboard showing the latest 50 posts, one per account. Refuses if the account already has a dashboard; the breakdown tools still work then.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "preview_id"
            ],
            "properties": {
              "preview_id": {
                "type": "string",
                "description": "preview_id returned by preview_profile"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Claim a previewed profile",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_posts",
          "title": "Get Posts",
          "description": "[Read · free] List a tracked profile's persisted posts with full metrics and text — query against the local post library, no LinkedIn pull, free. Use this when the caller already has a profile_id and wants to read its posts. Filter by date range, post type, minimum engagement, or text. Pass `scope` (a post_collections.id) to restrict to a specific collection (e.g. an external profile, topic stream, or hand-curated set). Paginated. For keyword/semantic search across posts, use `search_posts`. For fresh LinkedIn pulls, use `linkedin_profile_posts`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "profile_id"
            ],
            "properties": {
              "page": {
                "type": "number",
                "default": 1,
                "description": "Page number (1-based)"
              },
              "scope": {
                "type": "string",
                "description": "Optional post_collections.id to filter posts to a specific collection"
              },
              "search": {
                "type": "string",
                "description": "Text search across post content (case-insensitive)"
              },
              "date_to": {
                "type": "string",
                "description": "End date (ISO 8601)"
              },
              "sort_by": {
                "enum": [
                  "total_engagement",
                  "likes",
                  "comments",
                  "shares",
                  "published_at",
                  "character_count"
                ],
                "type": "string",
                "default": "published_at",
                "description": "Sort field"
              },
              "sort_dir": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "default": "desc",
                "description": "Sort direction"
              },
              "date_from": {
                "type": "string",
                "description": "Start date (ISO 8601, e.g. 2025-01-01)"
              },
              "page_size": {
                "type": "number",
                "default": 25,
                "maximum": 50,
                "minimum": 1,
                "description": "Results per page (max 50)"
              },
              "post_type": {
                "enum": [
                  "text",
                  "image",
                  "video",
                  "document",
                  "article",
                  "poll"
                ],
                "type": "string",
                "description": "Filter by post type"
              },
              "profile_id": {
                "type": "string",
                "description": "Tracked profile ID from list_profiles"
              },
              "min_engagement": {
                "type": "number",
                "description": "Minimum total engagement"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Posts",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_profile_summary",
          "title": "Get Profile Summary",
          "description": "[Read · free] Get KPI summary for a tracked profile: total posts, average engagement (broken down by likes/comments/shares/conversation rate), posts per week, engagement trend, top format, and posting goal status.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "profile_id"
            ],
            "properties": {
              "profile_id": {
                "type": "string",
                "description": "Tracked profile ID from list_profiles"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Profile Summary",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_posting_insights",
          "title": "Get Posting Insights",
          "description": "[Read · free] Get optimal posting patterns for a profile: best day of week, best hour, format performance breakdown, and character length sweet spot. Includes full metric breakdown (likes, comments, shares, conversation rate) for every bucket. All metrics relative to the user's own baseline. Pass `scope` (a post_collections.id) to recompute the patterns against a specific collection.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "profile_id"
            ],
            "properties": {
              "scope": {
                "type": "string",
                "description": "Optional post_collections.id to scope the analysis"
              },
              "date_to": {
                "type": "string",
                "description": "End date (ISO 8601)"
              },
              "date_from": {
                "type": "string",
                "description": "Start date (ISO 8601)"
              },
              "profile_id": {
                "type": "string",
                "description": "Tracked profile ID from list_profiles"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Posting Insights",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_topic_insights",
          "title": "Get Topic Insights",
          "description": "[Read · free] Surface the most-frequent topics in a profile's posts, with engagement context. Returns top N unigrams and (optionally) top N bigrams ranked by post count, each with avg_engagement, vs_baseline, and a sample_post_url. Mirrors the dashboard topics chart, server-side. Pass `scope` (a post_collections.id) to scope the analysis to a collection.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "profile_id"
            ],
            "properties": {
              "n": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max terms per list (default 15)"
              },
              "scope": {
                "type": "string",
                "description": "Optional post_collections.id to scope the analysis"
              },
              "bigrams": {
                "type": "boolean",
                "description": "Also compute and return top bigrams (default true)"
              },
              "date_to": {
                "type": "string",
                "description": "End date (ISO 8601)"
              },
              "date_from": {
                "type": "string",
                "description": "Start date (ISO 8601)"
              },
              "profile_id": {
                "type": "string",
                "description": "Tracked profile ID from list_profiles"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Topic Insights",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_engagement_trends",
          "title": "Get Engagement Trends",
          "description": "[Read · free] Get engagement time series for a profile with gap-filled buckets, rolling averages, and trend direction. Each bucket includes avg engagement, likes, comments, shares, and conversation rate. Useful for understanding whether engagement is growing or declining. Pass `scope` (a post_collections.id) to plot trends for a specific collection.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "profile_id"
            ],
            "properties": {
              "scope": {
                "type": "string",
                "description": "Optional post_collections.id to scope the time series"
              },
              "date_to": {
                "type": "string",
                "description": "End date (ISO 8601)"
              },
              "date_from": {
                "type": "string",
                "description": "Start date (ISO 8601)"
              },
              "profile_id": {
                "type": "string",
                "description": "Tracked profile ID from list_profiles"
              },
              "granularity": {
                "enum": [
                  "daily",
                  "weekly",
                  "monthly"
                ],
                "type": "string",
                "default": "weekly",
                "description": "Time bucket granularity"
              },
              "rolling_window": {
                "type": "number",
                "maximum": 30,
                "minimum": 2,
                "description": "Rolling average window size in buckets (default: 4 for weekly, 7 for daily, 3 for monthly)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Engagement Trends",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "search_posts",
          "title": "Search Posts",
          "description": "[Read · free] Keyword + semantic search over persisted posts in the local library — full-text + pgvector cosine, no LinkedIn pull, free. Use this when the caller has a query string and wants ranked persisted-post results. Pass `scope` (a post_collections.id) to limit to a specific collection. For fresh LinkedIn keyword pulls, use `linkedin_post_search` instead (5 credits).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "profile_id",
              "query"
            ],
            "properties": {
              "mode": {
                "enum": [
                  "hybrid",
                  "keyword",
                  "semantic"
                ],
                "type": "string",
                "default": "hybrid",
                "description": "Search mode: hybrid (keyword + semantic), keyword (FTS only), or semantic (embedding similarity only)"
              },
              "limit": {
                "type": "number",
                "default": 20,
                "maximum": 50,
                "minimum": 1,
                "description": "Max results to return"
              },
              "query": {
                "type": "string",
                "description": "Search query (e.g. 'cybersecurity tips', 'leadership')"
              },
              "scope": {
                "type": "string",
                "description": "Optional post_collections.id to restrict results to a collection"
              },
              "profile_id": {
                "type": "string",
                "description": "Tracked profile ID from list_profiles"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Search Posts",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_credit_balance",
          "title": "Get Credit Balance",
          "description": "[Meta · free] Return the authenticated user's current credit balance, the current calendar month's credit period (UTC), that month's allocation if one was granted (null otherwise), credits used since the period started, and the most recent allocation. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "Get Credit Balance",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_usage_history",
          "title": "Get Usage History",
          "description": "[Meta · free] Return recent credit_ledger transactions for the authenticated user. Filter by tool name, reason, or date range. Paginated. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "number",
                "default": 50,
                "maximum": 200,
                "minimum": 1,
                "description": "Max rows to return"
              },
              "reason": {
                "enum": [
                  "monthly_grant",
                  "pack_purchase",
                  "tool_usage",
                  "refund",
                  "adjustment"
                ],
                "type": "string",
                "description": "Filter by ledger reason"
              },
              "date_to": {
                "type": "string",
                "description": "End date (ISO 8601)"
              },
              "date_from": {
                "type": "string",
                "description": "Start date (ISO 8601)"
              },
              "tool_name": {
                "type": "string",
                "description": "Filter to a specific MCP tool"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Usage History",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_cost_estimate",
          "title": "Get Cost Estimate",
          "description": "[Meta · free] Preview what a tool call will cost before running it. Pass tool_name plus the params you intend to call it with: variable-cost tools (get_post_set_engagers, map_constellation, enrich_people, linkedin_profile_posts, linkedin_company_posts, linkedin_post_reactions, linkedin_post_comments, run_stream_now) are priced from those params with the same formula the tool's balance pre-check uses. Returns { tool_name, cost_max, cost_typical?, unit, explanation, cost (= cost_max), balance, sufficient, known_tool }. cost_max is the worst case the balance must cover; cost_typical is what such a call usually costs (you are charged only for what is actually fetched). Also accepts a stream type (external_profile, company, topic, person_interests, hiring_signals, ad_watch) to preview its per-page run price (stream_cost). Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tool_name"
            ],
            "properties": {
              "params": {
                "type": "object",
                "description": "The params you plan to call the tool with. Examples: get_post_set_engagers { profile_id | collection_id | post_ids / post_urls, max_posts, max_pages_per_post, max_enrich, freshness_days } (with a scope it counts the posts that actually need a sync); map_constellation { max_targets }; enrich_people { person_ids, linkedin_urls, max_credits }; linkedin_profile_posts / linkedin_company_posts { max_posts }; linkedin_post_reactions / linkedin_post_comments { max_pages }; run_stream_now { stream_id, max_pages }.",
                "additionalProperties": {}
              },
              "tool_name": {
                "type": "string",
                "description": "MCP tool name (e.g. 'get_post_set_engagers') or stream type (e.g. 'external_profile')"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Cost Estimate",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_stream",
          "title": "Create Stream",
          "description": "[Act · writes · schedules paid runs] Create a new research stream (external profile, company, topic, person interests, hiring signals, or ad watch). Running the stream on its schedule costs credits (see get_cost_estimate for the per-type cost). own_profile streams are not created here — they come from subscription checkout.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "type",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "User-facing label for this stream"
              },
              "type": {
                "enum": [
                  "external_profile",
                  "company",
                  "topic",
                  "person_interests",
                  "hiring_signals",
                  "ad_watch"
                ],
                "type": "string",
                "description": "Stream type"
              },
              "params": {
                "type": "object",
                "description": "Type-specific config: topic uses {query, authorsIndustryId?, contentType?, postedLimit?, sortBy?}; hiring_signals/ad_watch use {company?, keywords?, ...}",
                "additionalProperties": {}
              },
              "schedule": {
                "enum": [
                  "once",
                  "daily",
                  "weekly",
                  "monthly",
                  "manual"
                ],
                "type": "string",
                "description": "Run schedule. Defaults to 'weekly'. 'monthly' runs every 30 days — the cheapest recurring cadence, and the usual choice for client profiles reported on monthly."
              },
              "source_url": {
                "type": "string",
                "description": "LinkedIn URL for external_profile / company / person_interests streams"
              },
              "history_days": {
                "type": "integer",
                "maximum": 366,
                "minimum": 1,
                "description": "How far back the first run should reach, in days. Bounds the walk by TIME where initial_max_pages bounds it by COST — the run stops at whichever limit it hits first, so pair a window with enough pages to reach it. Honoured for external_profile, company and person_interests; the search types ignore it. Applies to this pull alone and is never saved on the stream, so scheduled runs keep topping up from where the last one stopped rather than re-fetching the window."
              },
              "initial_max_pages": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "Opt-in deep first-run for external_profile, company and person_interests streams (1-5, default 1). A budget, not a price — you are billed for pages actually walked. A page is ~50 posts for profile/company feeds and ~100 engagement events for person_interests. Other stream types ignore this. Later scheduled runs pull one page in the steady state; a person_interests stream may walk further to close a gap after a missed tick, and is billed only for what it walks."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Create Stream",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "list_streams",
          "title": "List Streams",
          "description": "[Read · free] List all research streams for the authenticated user (external profiles, companies, topics, person interests, hiring signals, ad watches, and own_profile). Pass `type` to filter. Replaces list_profiles for the streams-first world, but list_profiles continues to work for V1-compatible callers.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "type": {
                "enum": [
                  "own_profile",
                  "external_profile",
                  "company",
                  "topic",
                  "person_interests",
                  "hiring_signals",
                  "ad_watch"
                ],
                "type": "string",
                "description": "Filter by stream type"
              },
              "include_inactive": {
                "type": "boolean",
                "default": false,
                "description": "Include paused streams (active = false)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List Streams",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_stream_feed",
          "title": "Get Stream Feed",
          "description": "[Read · free] Return the most recent posts a stream has collected into the library, newest first by published_at. Use this to browse what a topic / external profile / person_interests / company stream has surfaced on its schedule.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "stream_id"
            ],
            "properties": {
              "limit": {
                "type": "number",
                "default": 20,
                "maximum": 50,
                "minimum": 1,
                "description": "Max posts to return"
              },
              "stream_id": {
                "type": "string",
                "description": "Stream ID from list_streams"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Stream Feed",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "pause_stream",
          "title": "Pause Stream",
          "description": "[Act · writes] Pause a stream so it stops running on its cron schedule. Existing posts remain in the library. Use resume_stream to re-enable it. own_profile streams are billing-managed and cannot be paused here.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "stream_id"
            ],
            "properties": {
              "stream_id": {
                "type": "string",
                "description": "Stream ID from list_streams"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Pause Stream",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "resume_stream",
          "title": "Resume Stream",
          "description": "[Act · writes] Resume a paused stream. Sets active=true and queues it to run on the next cron tick by clearing next_run_at. own_profile streams are billing-managed and cannot be resumed here.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "stream_id"
            ],
            "properties": {
              "stream_id": {
                "type": "string",
                "description": "Stream ID from list_streams"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Resume Stream",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_stream",
          "title": "Delete Stream",
          "description": "[Act · writes · destructive] Delete a stream and its stream_runs. Posts collected by the stream stay in your library (stream_id is set to NULL via ON DELETE SET NULL) so historical data isn't lost. Auto-collection is deleted with the stream. own_profile streams cannot be deleted through this tool; the own profile is managed from Settings and billing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "stream_id"
            ],
            "properties": {
              "stream_id": {
                "type": "string",
                "description": "Stream ID from list_streams"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Delete Stream",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "run_stream_now",
          "title": "Run Stream Now",
          "description": "[Acquire · stream price/page] Trigger an immediate run of an active stream, bypassing its schedule. The run is fire-and-forget — the response confirms the dispatch but post collection happens asynchronously. Credits are charged for pages actually walked, not pages requested: one page is taken upfront and the rest settled when the run finishes, so a run that stops early (or fails) costs less than max_pages implies. Paused streams must be resumed first. Use list_streams or get_stream_feed to see results once the run completes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "stream_id"
            ],
            "properties": {
              "resume": {
                "type": "boolean",
                "description": "Continue a person_interests backfill from where the deepest previous run stopped, instead of re-walking the newest pages. Use this for 'pull more history' — without it you re-fetch and re-pay for content you already have. No effect on a stream that has never been walked."
              },
              "max_pages": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "Upper bound on pages for this run (1-5, default 1) — a budget, not a price. Honoured for external_profile, company and person_interests. You are billed only for pages actually walked; a person_interests stream stops as soon as it reaches engagement it already has, so a deep budget usually costs one page. A page is ~50 posts for profile/company feeds and ~100 engagement events for person_interests, where one page means one reactions call plus one comments call. Other stream types ignore this — their sources aren't paginated."
              },
              "stream_id": {
                "type": "string",
                "description": "Stream ID from list_streams"
              },
              "history_days": {
                "type": "integer",
                "maximum": 366,
                "minimum": 1,
                "description": "How far back this run should reach, in days. Bounds the walk by TIME where max_pages bounds it by COST — it stops at whichever limit it hits first, so pair a deep window with enough pages to reach it. Honoured for external_profile, company and person_interests; the search types ignore it. Applies to this run alone; it is never saved on the stream. Combines with resume: 'go further back, but only as far as this'."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Run Stream Now",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_profile_info",
          "title": "LinkedIn Profile Info",
          "description": "[Acquire · 5 credits] Fetch a LinkedIn person profile (headline, current role, work history, education, location). Costs 5 credits per call. Results are upserted into `people` (structured fields) and `linkedin_profiles` (so profile-brief renders) — same enrichment side-effect as the other linkedin_profile_* tools.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "linkedin_url"
            ],
            "properties": {
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and fetch a fresh copy from LinkedIn (costs 5 credits). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "linkedin_url": {
                "type": "string",
                "description": "LinkedIn profile URL (e.g. https://www.linkedin.com/in/username)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Profile Info",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_profile_posts",
          "title": "LinkedIn Profile Posts",
          "description": "[Acquire · 5 credits/page] Fetch recent posts from a LinkedIn person profile. 5 credits per page of 50, up to 250 posts, charged only for pages actually fetched. Results are stored in the post library (source_type='external') and linked to a linkedin_profiles row so profile-brief can render research-only prospects.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "linkedin_url"
            ],
            "properties": {
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-fetch from LinkedIn (5 credits per page of 50, charged only for pages actually fetched). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "max_posts": {
                "type": "number",
                "default": 50,
                "maximum": 250,
                "minimum": 1,
                "description": "Maximum posts to return (1-250). 5 credits per page of 50, charged only for pages actually fetched."
              },
              "linkedin_url": {
                "type": "string",
                "description": "LinkedIn profile URL (e.g. https://www.linkedin.com/in/username)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Profile Posts",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_company_posts",
          "title": "LinkedIn Company Posts",
          "description": "[Acquire · 5 credits/page] Fetch recent posts from a LinkedIn company page. 5 credits per page of 50, up to 250 posts, charged only for pages actually fetched. Results are stored in the post library (source_type='external') and linked to a linkedin_profiles row (profile_type='company').",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "linkedin_url"
            ],
            "properties": {
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-fetch from LinkedIn (5 credits per page of 50, charged only for pages actually fetched). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "max_posts": {
                "type": "number",
                "default": 50,
                "maximum": 250,
                "minimum": 1,
                "description": "Maximum posts to return (1-250). 5 credits per page of 50, charged only for pages actually fetched."
              },
              "linkedin_url": {
                "type": "string",
                "description": "LinkedIn company URL (e.g. https://www.linkedin.com/company/acme)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Company Posts",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_post_search",
          "title": "LinkedIn Post Search",
          "description": "[Acquire · 5 credits] Search LinkedIn posts by keyword. Costs 5 credits per call. Returns a single page of matching posts, each with a post_id (stored as a stub, no extra credit) you can pass to get_post_set_engagers to pull who engaged; _meta.next_step has that call ready.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "query"
            ],
            "properties": {
              "query": {
                "type": "string",
                "description": "Search query / keywords"
              },
              "filters": {
                "type": "object",
                "properties": {
                  "sortBy": {
                    "type": "string",
                    "description": "Sort order (e.g. relevance, date)"
                  },
                  "contentType": {
                    "type": "string",
                    "description": "Content type filter (e.g. video, article)"
                  },
                  "postedLimit": {
                    "type": "string",
                    "description": "Recency filter. Supported values: '24h', 'week', 'month'"
                  },
                  "authorsIndustryId": {
                    "type": "string",
                    "description": "LinkedIn industry ID to filter authors"
                  }
                },
                "description": "Optional filters",
                "additionalProperties": false
              },
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-run the search live (costs 5 credits). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Post Search",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_profile_reactions",
          "title": "LinkedIn Profile Reactions",
          "description": "[Acquire · 5 credits] Fetch the recent posts a LinkedIn person has reacted to. Useful for inferring interests. Costs 5 credits per call.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "linkedin_url"
            ],
            "properties": {
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-fetch from LinkedIn (costs 5 credits). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "linkedin_url": {
                "type": "string",
                "description": "LinkedIn profile URL of the person whose reactions you want"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Profile Reactions",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_profile_comments",
          "title": "LinkedIn Profile Comments",
          "description": "[Acquire · 5 credits] Fetch the recent posts a LinkedIn person has commented on. Useful for inferring interests and conversation partners. Costs 5 credits per call.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "linkedin_url"
            ],
            "properties": {
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-fetch from LinkedIn (costs 5 credits). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "linkedin_url": {
                "type": "string",
                "description": "LinkedIn profile URL of the person whose comments you want"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Profile Comments",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_job_search",
          "title": "LinkedIn Job Search",
          "description": "[Acquire · 5 credits] Search LinkedIn job postings. Useful for tracking hiring signals at target companies. Costs 5 credits per call.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "keywords"
            ],
            "properties": {
              "sortBy": {
                "enum": [
                  "relevance",
                  "date"
                ],
                "type": "string",
                "description": "Sort order. 'date' is the useful one for hiring signal. Default: relevance."
              },
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-run the search live (costs 5 credits). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "keywords": {
                "type": "string",
                "description": "Job title keywords (e.g. 'staff engineer python')"
              },
              "location": {
                "type": "string",
                "description": "Location filter (e.g. 'San Francisco, CA')"
              },
              "companyId": {
                "type": "string",
                "description": "Restrict to a LinkedIn company ID (numeric, e.g. '1441'). Not a name or slug — resolve one first with linkedin_company_info (1 credit) or linkedin_company_search, both of which return the company's id."
              },
              "postedLimit": {
                "enum": [
                  "24h",
                  "week",
                  "month"
                ],
                "type": "string",
                "description": "Only jobs posted within this window."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Job Search",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_ad_search",
          "title": "LinkedIn Ad Search",
          "description": "[Acquire · 10 credits] Search the LinkedIn ad library. Useful for tracking competitor ad creative and messaging. Costs 10 credits per call.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "company": {
                "type": "string",
                "description": "Company name or LinkedIn slug to filter ads"
              },
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-run the search live (costs 10 credits). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "keywords": {
                "type": "string",
                "description": "Keyword filter applied to ad creative"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Ad Search",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_people_search",
          "title": "LinkedIn People Search",
          "description": "[Acquire · 5 credits] Search LinkedIn people. Filter by company, title, location, or free-text keywords. Costs 5 credits per page of 25 (map_constellation's built-in lead search is billed at a bundled 1 credit instead, a deliberate discount). Each person comes back with current title, company, company id, start date and location. To list the people at one company, pass its LinkedIn company URL or numeric id as `company` and walk `page` while `truncated` is true. Results are saved to `people` with their current position, so get_outreach_path can route to them (pass a result's `person_id` as `target_person_id`).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Results page, 25 people per page (default 1). 5 credits per page not already cached."
              },
              "title": {
                "type": "string",
                "description": "Current title filter (e.g. 'Director'). Comma-separate several (e.g. 'SDR,Account Executive')."
              },
              "company": {
                "type": "string",
                "description": "Current company. Pass a LinkedIn company URL (https://www.linkedin.com/company/acme) or a numeric LinkedIn company ID (e.g. '1441', the `id` linkedin_company_info and linkedin_company_search return) for an exact match; comma-separate several. A plain name is matched loosely and can return people from other companies, so prefer the URL or ID."
              },
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-run the search live (costs 5 credits). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "keywords": {
                "type": "string",
                "description": "Free-text search (e.g. 'data engineer fintech')"
              },
              "location": {
                "type": "string",
                "description": "Location filter (e.g. 'New York')"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn People Search",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_company_search",
          "title": "LinkedIn Company Search",
          "description": "[Acquire · 5 credits] Search LinkedIn companies. Filter by keywords, industryId, or location. Costs 5 credits per page of 50. Each company comes back with its numeric LinkedIn `id`, which is what linkedin_people_search (`company`) and linkedin_job_search (`companyId`) take for an exact company match.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Results page, 50 companies per page (default 1). 5 credits per page not already cached."
              },
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-run the search live (costs 5 credits). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "keywords": {
                "type": "string",
                "description": "Free-text search (e.g. 'b2b saas analytics')"
              },
              "location": {
                "type": "string",
                "description": "Location filter (e.g. 'San Francisco Bay Area')"
              },
              "industryId": {
                "type": "string",
                "description": "LinkedIn industry ID (numeric, comma-separated for several). Not an industry name — IDs are LinkedIn's industry codes (V2), listed at https://learn.microsoft.com/en-us/linkedin/shared/references/reference-tables/industry-codes-v2"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Company Search",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_company_info",
          "title": "LinkedIn Company Info",
          "description": "[Acquire · 1 credit] Fetch one LinkedIn company (numeric id, name, industry, size, location, website, description). Costs 1 credit per call. Use it to resolve a company to its numeric LinkedIn `id`, which linkedin_people_search (`company`) and linkedin_job_search (`companyId`) take for an exact company match. Look up by `linkedin_url` when you have it: a lookup by `name` returns the best match, which can be a different company with a similar name. The company is saved to `companies`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "name": {
                "type": "string",
                "description": "Company name (e.g. 'Acme Analytics'). Returns the best match; check the returned name and URL."
              },
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and fetch a fresh copy from LinkedIn (costs 1 credit). Default false: a previously-fetched result is returned free, with how long ago it was retrieved."
              },
              "linkedin_url": {
                "type": "string",
                "description": "LinkedIn company URL (e.g. https://www.linkedin.com/company/acme). Most reliable."
              },
              "universal_name": {
                "type": "string",
                "description": "The slug from the company URL (e.g. 'acme' for linkedin.com/company/acme)."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Company Info",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_post_reactions",
          "title": "LinkedIn Post Reactions",
          "description": "[Acquire · 1 credit/page] Fetch the people who reacted to a single LinkedIn post. Costs 1 credit per page of up to 100 reactions, walking up to max_pages pages (default 10), so at most max_pages credits; cached pages are free. The output's fetched / total_available / truncated fields say when the post had more reactions than were fetched. Engagers (with reaction kind) are persisted to the post_engagements graph so subsequent queries about who-engages-with-whom are SQL, not API calls.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "post_url"
            ],
            "properties": {
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-fetch from LinkedIn (costs 1 credit per page). Default false: previously-fetched pages are returned free, with how long ago they were retrieved."
              },
              "post_url": {
                "type": "string",
                "description": "Public LinkedIn post URL (e.g. https://www.linkedin.com/feed/update/urn:li:activity:1234)"
              },
              "max_pages": {
                "type": "integer",
                "maximum": 20,
                "minimum": 1,
                "description": "Max pages of up to 100 reactions to fetch (1-20, default 10). Each page costs 1 credit."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Post Reactions",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "linkedin_post_comments",
          "title": "LinkedIn Post Comments",
          "description": "[Acquire · 1 credit/page] Fetch the people who commented on a single LinkedIn post (and their comment text), including replies to comments. Costs 1 credit per page of up to 100 comments, walking up to max_pages pages (default 10), so at most max_pages credits; cached pages are free. The output's fetched / total_available / truncated fields say when the post had more comments than were fetched. Each comment and reply is persisted to post_engagements with the commenter and full comment text.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "post_url"
            ],
            "properties": {
              "refresh": {
                "type": "boolean",
                "description": "Bypass the cache and re-fetch from LinkedIn (costs 1 credit per page). Default false: previously-fetched pages are returned free, with how long ago they were retrieved."
              },
              "post_url": {
                "type": "string",
                "description": "Public LinkedIn post URL (e.g. https://www.linkedin.com/feed/update/urn:li:activity:1234)"
              },
              "max_pages": {
                "type": "integer",
                "maximum": 20,
                "minimum": 1,
                "description": "Max pages of up to 100 comments to fetch (1-20, default 10). Each page costs 1 credit."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "LinkedIn Post Comments",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "find_similar_posts",
          "title": "Find Similar Posts",
          "description": "[Read · free] Find persisted posts whose embeddings are nearest to a free-text query — pgvector cosine over the local post library, no LinkedIn pull, free. Use when you have a *block of text* (a draft, a paragraph, a competitor's post) and want similar posts you've already collected. For keyword search prefer `search_posts`; for fresh LinkedIn keyword pulls use `linkedin_post_search`. Pass `profile_id` to scope to a tracked profile, `collection_id` to scope to a collection, or neither to search the entire library.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "text"
            ],
            "properties": {
              "text": {
                "type": "string",
                "minLength": 1,
                "description": "Text to find similar posts for"
              },
              "limit": {
                "type": "number",
                "default": 5,
                "maximum": 50,
                "minimum": 1,
                "description": "Max results to return (1-50, default 5)"
              },
              "profile_id": {
                "type": "string",
                "description": "Optional tracked profile ID from list_profiles (scopes search to this profile's posts)"
              },
              "collection_id": {
                "type": "string",
                "description": "Optional post_collections.id (scopes search to this collection's members)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Find Similar Posts",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "score_draft",
          "title": "Score Draft",
          "description": "[Read · free] Predict how a draft post will perform against the user's historical data. Uses an OLS regression model with detrending, ridge regularization, and recency weighting — the same model used on the /score page. Returns a predicted engagement percentile, projected engagement range, factor breakdown, similar past posts, and improvement suggestions. Free. Pass `profile_id` to scope to a tracked profile, `collection_id` to scope to a collection, or neither to score against the user's full library.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "text",
              "day_of_week",
              "hour"
            ],
            "properties": {
              "hour": {
                "type": "number",
                "maximum": 23,
                "minimum": 0,
                "description": "Planned hour (0-23, UTC)"
              },
              "text": {
                "type": "string",
                "minLength": 1,
                "description": "Draft post text"
              },
              "format": {
                "enum": [
                  "text",
                  "image",
                  "video",
                  "document",
                  "article",
                  "poll"
                ],
                "type": "string",
                "default": "text",
                "description": "Post format: text, image, video, document, article, or poll"
              },
              "profile_id": {
                "type": "string",
                "description": "Optional tracked profile ID (scopes the model to this profile's posts)"
              },
              "day_of_week": {
                "type": "number",
                "maximum": 6,
                "minimum": 0,
                "description": "Planned day of week (0=Sunday, 6=Saturday, UTC)"
              },
              "collection_id": {
                "type": "string",
                "description": "Optional post_collections.id (scopes the model to this collection)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Score Draft",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "suggest_angles",
          "title": "Suggest Angles",
          "description": "[Read · 5 credits] Given a topic, suggest distinct content angles informed by what performs well in the user's scoped data. Pulls top-performing historical posts as context and calls OpenAI to generate 5 concrete angles. Costs 5 credits per call. Pass `profile_id` to scope to a tracked profile, `collection_id` to scope to a collection, or neither to use the user's full library.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "topic"
            ],
            "properties": {
              "topic": {
                "type": "string",
                "minLength": 2,
                "description": "Topic or theme to generate angles for (e.g. 'onboarding new hires', 'pricing strategy')"
              },
              "profile_id": {
                "type": "string",
                "description": "Optional tracked profile ID (scopes to this profile's posts)"
              },
              "collection_id": {
                "type": "string",
                "description": "Optional post_collections.id (scopes to this collection's members)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Suggest Angles",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "list_segments",
          "title": "List Audience Segments",
          "description": "[Read · free] List all audience segments for the authenticated user, with member counts. Audience segments are named groups of people (e.g. 'ICP — VPs of Marketing', 'Champions'). Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "type": {
                "enum": [
                  "manual",
                  "smart",
                  "auto_stream"
                ],
                "type": "string",
                "description": "Optional filter by segment type ('manual', 'smart', or 'auto_stream')"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List Audience Segments",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_segment",
          "title": "Create Audience Segment",
          "description": "[Act · writes] Create a new audience segment (named group of people) for the authenticated user. Set type='manual' for a hand-curated list (use add_to_segment to populate it), type='smart' with a `config` predicate (e.g. {title_contains:['VP','Chief']}) to define a dynamic segment resolved on-demand by resolve_segment, or pass `template` to pre-fill `config` from a built-in template (type defaults to 'smart'). Smart segments only match people connected to you: people who engaged with posts you can see in Flux (your own profile, tracked/monitored profiles, and posts you collected) and people in your campaigns' constellations. Smart segment membership is computed, so add_to_segment / remove_from_segment do not apply to it. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "User-facing segment name. Optional when `template` is supplied — the template's default name is used."
              },
              "type": {
                "enum": [
                  "manual",
                  "smart",
                  "auto_stream"
                ],
                "type": "string",
                "description": "Segment type. 'manual' = hand-curated person list. 'smart' = dynamic predicate (requires `config`). 'auto_stream' = system-managed from a stream. Defaults to 'smart' when `template` is provided."
              },
              "config": {
                "type": "object",
                "description": "Predicate object for smart segments. Supported keys: title_contains, company_contains. Each takes a non-empty string or an array of 1-20 non-empty strings (case-insensitive substring match; an array matches if ANY term matches, e.g. {title_contains:['procurement','logistics','supply chain']}). Different keys are AND-combined. Any other key is rejected. Required when type='smart' and no template is supplied.",
                "additionalProperties": {}
              },
              "template": {
                "enum": [
                  "vp_plus",
                  "c_suite",
                  "heads_of",
                  "founders",
                  "fintech_leaders",
                  "agency_owners"
                ],
                "type": "string",
                "description": "Optional pre-built template id. Available: 'vp_plus' (VP+ decision-makers), 'c_suite' (C-suite executives), 'heads_of' ('Head of' leaders), 'founders' (Founders & co-founders), 'fintech_leaders' (Fintech leaders), 'agency_owners' (Agency owners). Pre-fills `config` and defaults `type` to 'smart'. Explicit `config` overrides template values on collision."
              },
              "description": {
                "type": "string",
                "maxLength": 2000,
                "description": "Optional longer description"
              },
              "source_stream_id": {
                "type": "string",
                "format": "uuid",
                "description": "Optional stream that produced this segment (for traceability)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Create Audience Segment",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "add_to_segment",
          "title": "Add People to Audience Segment",
          "description": "[Act · writes] Add one or more people (by person_id) to a manual audience segment. Existing members are silently ignored. Smart segments are rejected: their membership is computed from `config` by resolve_segment. Unknown person_ids are rejected as a whole (nothing is added). Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "segment_id",
              "person_ids"
            ],
            "properties": {
              "person_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "maxItems": 1000,
                "minItems": 1,
                "description": "person_ids to add (1-1000 per call)"
              },
              "segment_id": {
                "type": "string",
                "format": "uuid",
                "description": "Target segment id from list_segments"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Add People to Audience Segment",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "remove_from_segment",
          "title": "Remove People from Audience Segment",
          "description": "[Act · writes · destructive] Remove one or more people (by person_id) from a manual audience segment. Missing members are silently ignored. Smart segments are rejected: their membership is computed from `config` by resolve_segment. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "segment_id",
              "person_ids"
            ],
            "properties": {
              "person_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "maxItems": 1000,
                "minItems": 1,
                "description": "person_ids to remove (1-1000 per call)"
              },
              "segment_id": {
                "type": "string",
                "format": "uuid",
                "description": "Target segment id from list_segments"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Remove People from Audience Segment",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "resolve_segment",
          "title": "Resolve Audience Segment",
          "description": "[Read · free] Resolve an audience segment into a concrete list of person_ids. For manual / auto_stream segments, returns stored members. For smart segments, evaluates the segment's `config` predicate (title_contains / company_contains) and returns matches ordered by engagement with your posts. Smart segments only match people connected to you: people who engaged with posts you can see in Flux (your own profile, tracked/monitored profiles, and posts you collected) and people in your campaigns' constellations. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "segment_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 1000,
                "maximum": 5000,
                "minimum": 1,
                "description": "Max person_ids to return (default 1000)"
              },
              "segment_id": {
                "type": "string",
                "format": "uuid",
                "description": "Segment id (from list_segments / create_segment)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Resolve Audience Segment",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_segment_templates",
          "title": "List Segment Templates",
          "description": "[Meta · free] List available smart-segment templates. Pass a template id to create_segment to pre-fill its `config` predicate without crafting one from scratch. Each template's description states exactly what its config matches; like every smart segment, it only matches people connected to you (engagers on your visible posts and people in your campaigns). Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "List Segment Templates",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_alerts",
          "title": "Get Stream Alerts",
          "description": "[Read · free] Return recent alerts for the authenticated user's streams. An alert is emitted whenever a scheduled stream run surfaces new items. Pass `unread_only=true` to skip alerts the user has already marked read. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 200,
                "minimum": 1,
                "description": "Max alerts to return (default 50)"
              },
              "unread_only": {
                "type": "boolean",
                "default": true,
                "description": "Return only alerts that have not been marked read"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Stream Alerts",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_collection",
          "title": "Create Post Collection",
          "description": "[Act · writes] Create a new post collection for the authenticated user. Set type='manual' to hand-curate posts with add_to_collection, or type='smart' with a `config` predicate (e.g. {format:'video',min_likes:50}) to define a dynamic collection resolved on-demand by resolve_collection. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name",
              "type"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "User-facing collection name"
              },
              "type": {
                "enum": [
                  "manual",
                  "smart"
                ],
                "type": "string",
                "description": "'manual' = hand-curated post list. 'smart' = dynamic predicate (requires `config`)."
              },
              "config": {
                "type": "object",
                "description": "Predicate for smart collections. Supported keys: format, min_likes, min_comments, date_after, date_before, topic_contains, author_profile_id, profile_ids (array — posts whose profile_id is in the set; use to group several tracked profiles/streams into one live collection), source_type. Required when type='smart'.",
                "additionalProperties": {}
              },
              "description": {
                "type": "string",
                "maxLength": 2000,
                "description": "Optional longer description"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Create Post Collection",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "add_to_collection",
          "title": "Add Posts to Collection",
          "description": "[Act · writes] Pin one or more posts (by post_id) into a collection you own — works on any collection type. On a 'manual' collection this is the only membership mechanism; on a 'smart' collection it adds the posts as extras alongside whatever the rule already matches (resolve_collection returns the union). Existing members are silently ignored. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "collection_id",
              "post_ids"
            ],
            "properties": {
              "post_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "maxItems": 1000,
                "minItems": 1,
                "description": "post_ids to add (1-1000 per call)"
              },
              "collection_id": {
                "type": "string",
                "format": "uuid",
                "description": "Target collection id from list_collections"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Add Posts to Collection",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "remove_from_collection",
          "title": "Remove Posts from Collection",
          "description": "[Act · writes · destructive] Remove one or more posts (by post_id) from a collection. Missing members are silently ignored. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "collection_id",
              "post_ids"
            ],
            "properties": {
              "post_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "maxItems": 1000,
                "minItems": 1,
                "description": "post_ids to remove (1-1000 per call)"
              },
              "collection_id": {
                "type": "string",
                "format": "uuid",
                "description": "Target collection id from list_collections"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Remove Posts from Collection",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_collections",
          "title": "List Post Collections",
          "description": "[Read · free] List all post collections for the authenticated user, with member counts. Includes manual collections, smart collections (predicate-based), and auto_stream collections (system-managed). Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "type": {
                "enum": [
                  "manual",
                  "smart",
                  "auto_stream"
                ],
                "type": "string",
                "description": "Optional filter by collection type"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "List Post Collections",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "resolve_collection",
          "title": "Resolve Post Collection",
          "description": "[Read · free] Resolve a post collection into a concrete list of post_ids. For manual / auto_stream collections, returns stored members. For smart collections, evaluates the collection's `config` predicate against the user's posts and returns matches. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "collection_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 1000,
                "maximum": 5000,
                "minimum": 1,
                "description": "Max post_ids to return (default 1000)"
              },
              "collection_id": {
                "type": "string",
                "format": "uuid",
                "description": "Collection id (from list_collections / create_collection)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Resolve Post Collection",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_campaign",
          "title": "Create Campaign",
          "description": "[Act · writes] Create a Constellation outreach campaign. A campaign groups target accounts, the people you care about at those accounts, and the warm connections you could approach to reach them. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "User-facing campaign name"
              },
              "description": {
                "type": "string",
                "maxLength": 2000,
                "description": "Optional longer description"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Create Campaign",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "add_campaign_accounts",
          "title": "Add Campaign Accounts",
          "description": "[Act · writes] Add one or more target companies to a Constellation campaign. Each account is a company you want to reach; map_constellation is then run per-account. Accounts already in the campaign (same linkedin_company_id, or same case-insensitive trimmed company_name) and repeats within the same call are not re-added; they are returned under `skipped`. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "campaign_id",
              "accounts"
            ],
            "properties": {
              "accounts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "company_name"
                  ],
                  "properties": {
                    "tier": {
                      "type": "integer",
                      "maximum": 3,
                      "minimum": 1
                    },
                    "company_name": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1
                    },
                    "employee_count": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "linkedin_company_id": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 500,
                "minItems": 1,
                "description": "Array of companies to add (1-500 per call)"
              },
              "campaign_id": {
                "type": "string",
                "format": "uuid",
                "description": "Target campaign id"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Add Campaign Accounts",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "map_constellation",
          "title": "Map Constellation",
          "description": "[Acquire · 1 + 3×targets credits] Map the professional graph around a target company. Finds senior decision-makers at the account, pulls each target's recent posts/reactions/comments to identify engagers, then scores every connection and produces a prioritized outreach queue. The response lists the selected `targets` (target_id, person_id, full_name, current_title, linkedin_url) and `_meta.next_step(s)`: get_outreach_queue for the scored queue, then get_outreach_path (free) to check warm paths to the top targets. Pools: coworker = other senior people at the same account from the lead search (no relationship with you is implied); engager = someone a target engages with; mutual = someone several targets engage with. Costs at most 1 + 3 × max_targets credits (7 at max_targets=2, 16 at the default 5, 61 at 20): the lead search is a bundled 1 credit, a deliberate discount on linkedin_people_search's 5 credits per page; the balance must cover that worst case, and only what is actually spent is charged and reported in the response.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "campaign_account_id"
            ],
            "properties": {
              "max_targets": {
                "type": "integer",
                "default": 5,
                "maximum": 20,
                "minimum": 1,
                "description": "Max targets to deep-map per account (1-20, default 5). Each target adds up to 3 credits."
              },
              "title_keywords": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "description": "Title keywords to filter targets. Default: ['VP','Director','Head of','Chief']"
              },
              "campaign_account_id": {
                "type": "string",
                "format": "uuid",
                "description": "campaign_accounts.id — the company to map"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Map Constellation",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "score_connections",
          "title": "Score Connections",
          "description": "[Act · writes] Re-score all constellation entries in a campaign and rewrite queue positions from highest to lowest composite score. Use after new engagers or targets are added. Free — costs 0 credits.\n\nNote: this tool requires a `campaign_id` because it writes back to the `constellation_entries` table. Segment- and url-list-scoped scoring is not yet supported — use `get_outreach_queue({segment_id})` or `get_outreach_queue({linkedin_urls})` for engagement-count ordering on those scopes; full composite scoring will land alongside the unified person-positions schema in a later phase.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "campaign_id"
            ],
            "properties": {
              "campaign_id": {
                "type": "string",
                "format": "uuid",
                "description": "Campaign id to re-score"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Score Connections",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_outreach_queue",
          "title": "Get Outreach Queue",
          "description": "[Read · free] Return a prioritized outreach queue. Provide *exactly one* of three scopes:\n• `campaign_id` — full Constellation queue, one row per person (their best entry's composite_score, pool, recommended_action), with `targets[]` listing every target they connect to ({target_id, entry_id, composite_score, pool, recommended_action, target_person: {person_id, full_name, current_title}}) and prior outreach_log entries. Pools: coworker = same company as the target (no relationship implied), engager = someone the target engages with, mutual = someone several targets engage with. Pass a target_person.person_id to get_outreach_path to check warm paths.\n• `segment_id` — people in a saved audience segment, ranked by their engagement count against your tracked profiles' posts. No composite_score.\n• `linkedin_urls` — an ad-hoc list of LinkedIn URLs, same engagement-count ranking as segments.\nFree — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "pool": {
                "enum": [
                  "coworker",
                  "engager",
                  "mutual"
                ],
                "type": "string",
                "description": "Optional filter: only return entries in this pool. Only meaningful for `campaign_id` scope; ignored for segment / urls."
              },
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 200,
                "minimum": 1,
                "description": "Max entries to return (1-200, default 50)"
              },
              "segment_id": {
                "type": "string",
                "format": "uuid",
                "description": "Audience segment id (engagement-count scoring)"
              },
              "campaign_id": {
                "type": "string",
                "format": "uuid",
                "description": "Campaign id (full Constellation scoring)"
              },
              "linkedin_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 200,
                "description": "Ad-hoc LinkedIn URL list (engagement-count scoring); max 200"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Outreach Queue",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_engagement_brief",
          "title": "Get Engagement Brief",
          "description": "[Read · free] For one person, return their recent posts most relevant to what you post about — plus suggested talking points. Use before a warm comment or DM. Free — costs 0 credits.\n\nIdentify the person via *exactly one* of: `target_id` (a Constellation target — original input), `person_id` (a row in `people`), or `linkedin_url` (any form). The non-campaign forms work even when no Constellation campaign exists.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "person_id": {
                "type": "string",
                "format": "uuid",
                "description": "people.id — when you already have the canonical person row"
              },
              "target_id": {
                "type": "string",
                "format": "uuid",
                "description": "Constellation targets.id — for the original campaign-scoped flow"
              },
              "linkedin_url": {
                "type": "string",
                "description": "LinkedIn profile URL (vanity or encoded form) — auto-resolved to a people row"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Engagement Brief",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "log_outcome",
          "title": "Log Outcome",
          "description": "[Act · writes] Record an outcome by hand. Two kinds.\n• Outbound (campaign outreach): action sent_request | accepted | replied | no_response with campaign_id and exactly one of person_id or linkedin_url (any profile URL form). The person must be connected to you (in one of your campaigns or segments, engaged with posts you can see in Flux, or pulled by you); anyone else returns not-found with a next_step to pull their profile via linkedin_profile_info. A person outside this campaign's mapped constellation is still logged (with a `warning`) and get_campaign_stats counts it under `unattributed`.\n• Inbound (results your own posting brought in): action inbound_dm | lead | client with profile_id (your tracked profile from list_profiles, whose posts it counts against). No campaign. When the user pastes a LinkedIn DM conversation, pass the whole paste as message_text and set occurred_at to the date of its first message (ISO 8601; omit only if the paste has no date). The sender's linkedin_url is optional and never triggers a paid lookup. Flux matches the outcome to the post that most likely prompted it: post_url if given, else for a lead or client the post already credited for this person's earlier inbound outcome, else the conversation's opening text and timing against your posts from the 30 days before. The result says the method (explicit | inherited | matched | recency | none) and lists up to three candidate posts. When nothing was matched and candidates exist, show them to the user and ask which post it was; then call again with outcome_id and that post_url to correct it. get_inbound_attribution reports which posts bring in DMs, leads and clients.\nFree — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "action"
            ],
            "properties": {
              "note": {
                "type": "string",
                "maxLength": 4000,
                "description": "Optional free-text note"
              },
              "action": {
                "enum": [
                  "sent_request",
                  "accepted",
                  "replied",
                  "no_response",
                  "inbound_dm",
                  "lead",
                  "client"
                ],
                "type": "string",
                "description": "Outbound: sent_request | accepted | replied | no_response. Inbound: inbound_dm | lead | client"
              },
              "post_url": {
                "type": "string",
                "description": "Inbound: URL of your post that prompted it, when the user knows. With outcome_id, corrects an earlier inbound outcome"
              },
              "person_id": {
                "type": "string",
                "format": "uuid",
                "description": "people.id of the person. Outbound: provide this or linkedin_url. Inbound: optional"
              },
              "outcome_id": {
                "type": "string",
                "format": "uuid",
                "description": "Inbound correction: the id of an inbound outcome you logged, with post_url"
              },
              "profile_id": {
                "type": "string",
                "description": "Inbound only, required there: your tracked profile id from list_profiles"
              },
              "campaign_id": {
                "type": "string",
                "format": "uuid",
                "description": "Outbound only, required there: campaign id"
              },
              "occurred_at": {
                "type": "string",
                "description": "Inbound: when it happened, ISO 8601 (for a pasted DM, the first message's date). Defaults to now"
              },
              "linkedin_url": {
                "type": "string",
                "description": "LinkedIn profile URL of the person. Outbound: provide this or person_id. Inbound: optional (the sender)"
              },
              "message_text": {
                "type": "string",
                "maxLength": 20000,
                "description": "Inbound: the DM or message text; paste the whole conversation if you have it"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Log Outcome",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_campaign_stats",
          "title": "Get Campaign Stats",
          "description": "[Read · free] Summary stats for a Constellation campaign: target count, entry count, outreach volume, and acceptance / reply rates broken down by pool (coworker / engager / mutual) and composite-score tier. Outcomes logged for people who are not campaign entries are counted under an `unattributed` bucket in both by_pool and by_tier, so breakdowns always sum to the totals. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "campaign_id"
            ],
            "properties": {
              "campaign_id": {
                "type": "string",
                "format": "uuid",
                "description": "Campaign id"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Campaign Stats",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_inbound_attribution",
          "title": "Get Inbound Attribution",
          "description": "[Read · free] Which of your posts bring in DMs, leads and clients, next to which get engagement. Reads the inbound outcomes logged with log_outcome (inbound_dm | lead | client) for one of your tracked profiles over the last `days` (default 90). Returns totals, top_by_outcomes (posts credited with at least one outcome), top_by_engagement (your most-engaged posts in the window, with their outcome counts, so the two rankings can be compared), by_format, and the unattributed outcomes still waiting for a post (fix with log_outcome outcome_id + post_url). Engagement is not used to attribute: outcomes are matched by post_url, message text and timing. Free — costs 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "profile_id"
            ],
            "properties": {
              "days": {
                "type": "integer",
                "maximum": 365,
                "minimum": 1,
                "description": "Look-back window in days (default 90)"
              },
              "profile_id": {
                "type": "string",
                "description": "Your tracked profile id from list_profiles"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Inbound Attribution",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "save_post",
          "title": "Save LinkedIn Post",
          "description": "[Acquire · 1 credit · writes] Save a LinkedIn post to your library by its URL. Resolves the post and stores it with source_type='saved'. Optionally pins the post into any collection you own (manual or smart — pinning into a smart collection adds it as an extra alongside the rule's matches). Costs 1 credit per call. Failed lookups don't charge.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "description": "Public LinkedIn post URL. Accepts linkedin.com/posts/... permalinks and linkedin.com/feed/update/urn:li:activity:... feed URLs."
              },
              "collection_id": {
                "type": "string",
                "format": "uuid",
                "description": "Optional collection UUID to pin the post into. Must be a collection you own — any type."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Save LinkedIn Post",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_post_engagers_by_company",
          "title": "Engagers Grouped by Company",
          "description": "[Read · free] Given a LinkedIn post URL or id, return the companies whose people engaged (reacted/commented), ranked by engager count. Joins through person_positions(is_current=true). Pure DB read — no LinkedIn pull, no credits charged. Engagers without a known current company are bucketed as `_unknown_company`. Optional industry_urn filter narrows to one industry.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Max companies to return (1-100, default 20)"
              },
              "post_id": {
                "type": "string",
                "format": "uuid",
                "description": "posts.id UUID (use when you already know the local id)"
              },
              "post_url": {
                "type": "string",
                "description": "Public LinkedIn post URL (e.g. https://www.linkedin.com/feed/update/urn:li:activity:1234)"
              },
              "industry_urn": {
                "type": "string",
                "description": "Optional urn:li:fsd_industry:<id> filter (from companies.industry_urn)"
              },
              "top_engagers_per_company": {
                "type": "integer",
                "default": 3,
                "maximum": 10,
                "minimum": 0,
                "description": "How many sample engager names to attach per company row (0-10, default 3)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Engagers Grouped by Company",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_engagement_industry_breakdown",
          "title": "Engagement Industry Breakdown",
          "description": "[Read · free] Histogram of engagers' companies grouped by industry. Pivots on companies.industry_hierarchy (e.g. 'Tech > Software Development'). Depth=1 buckets by top-level, =2 by top+mid, =3 by full hierarchy. Engagers with no current company / no industry hierarchy bucket as `_unknown`. Pure DB read — no LinkedIn pull, no credits charged. Needs engagers synced first: if the post(s) have no recorded engagements, run `get_post_set_engagers` (1 credit per page, works on a collection or profile) as the usual first step; `linkedin_post_reactions` / `linkedin_post_comments` (1 credit per page of up to 100 people, so usually 1 credit each) pull a single post.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "depth": {
                "type": "integer",
                "default": 1,
                "maximum": 3,
                "minimum": 1,
                "description": "1=top-level industry, 2=mid, 3=leaf (full hierarchy)"
              },
              "post_id": {
                "type": "string",
                "format": "uuid",
                "description": "posts.id UUID"
              },
              "post_url": {
                "type": "string",
                "description": "Public LinkedIn post URL"
              },
              "sample_companies_per_bucket": {
                "type": "integer",
                "default": 3,
                "maximum": 10,
                "minimum": 0,
                "description": "How many sample company names to attach per industry row (0-10, default 3)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Engagement Industry Breakdown",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_alumni_engagers",
          "title": "Alumni / Coworker Engagers for a Company",
          "description": "[Read · free] Given a company (company_url, LinkedIn's numeric linkedin_company_id as linkedin_company_info returns it, an exact company_name, or a companies.id UUID), return engagers (across your collected posts) who have a position at that company. Relation filter: 'coworker' = current employees, 'alumni' = any past or current position (most useful for page_type='SCHOOL' companies), 'any' = both. Matches need job history on file, and engagers collected from reactions/comments usually have none: `coverage` counts candidates (engagers whose headline or current company names the company) with and without job history, and when missing data may hide matches `_meta.next_step` names enrich_people with the exact person_ids to pass and its credit cost. The company must be saved in Flux: if it is not, the error's `_meta.next_step` names linkedin_company_info (1 credit) with the arguments that save it; a company_name that matches several saved companies returns `candidates` to pick from instead of guessing. Pure DB read — no LinkedIn pull, no credits charged.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Max engagers to return (1-100, default 20)"
              },
              "relation": {
                "enum": [
                  "coworker",
                  "alumni",
                  "any"
                ],
                "type": "string",
                "default": "any",
                "description": "coworker = current employees only; alumni = any position (past or current); any = both"
              },
              "company_id": {
                "type": "string",
                "format": "uuid",
                "description": "companies.id UUID"
              },
              "company_url": {
                "type": "string",
                "description": "Public LinkedIn company URL"
              },
              "company_name": {
                "type": "string",
                "description": "Exact company name, case-insensitive. Several matches return candidates."
              },
              "linkedin_company_id": {
                "type": [
                  "string",
                  "number"
                ],
                "description": "LinkedIn's numeric company id (the `id` linkedin_company_info returns)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Alumni / Coworker Engagers for a Company",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_engager_position_history",
          "title": "Engager Position History",
          "description": "[Read · free] Return a person's full employment timeline from the position graph. Only for people connected to you: they engaged with posts you can see in Flux, are in one of your campaigns or segments, or you pulled them (an engagement pull, or their profile via linkedin_profile_info / linkedin_profile_posts). Anyone else returns not-found with a next_step to pull their profile via linkedin_profile_info. Sorted current-first, then most-recent past by started_at desc. Pure DB read — no LinkedIn pull, no credits charged.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "person_id": {
                "type": "string",
                "format": "uuid",
                "description": "people.id UUID"
              },
              "linkedin_url": {
                "type": "string",
                "description": "Person's LinkedIn profile URL"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Engager Position History",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_target_warmth_brief",
          "title": "Target Warmth Brief",
          "description": "[Read · free] For a target person, summarize all engagement evidence between them and your collected posts: posts they reacted to, posts they commented on, frequency, recency, reaction kinds, comment text snippets. Computes a v0 warmth score from engagement count, comment signal, and recency. Pure DB read — no LinkedIn pull, no credits charged.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "days_back": {
                "type": "integer",
                "default": 90,
                "maximum": 365,
                "minimum": 1,
                "description": "How far back to look at engagements (default 90)"
              },
              "person_id": {
                "type": "string",
                "format": "uuid",
                "description": "people.id UUID"
              },
              "linkedin_url": {
                "type": "string",
                "description": "Target's LinkedIn profile URL"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Target Warmth Brief",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "traverse_graph_help",
          "title": "Engagement Graph Schema + Examples (for traverse_graph)",
          "description": "[Meta · free] Returns the schema, FK edges, and 5 canonical SQL examples needed to write your own SELECT against the engagement graph via traverse_graph. Also returns YOUR resolvable identities (caller_user_ids, caller_tracked_lp_ids) — substitute these into example SQL when you write your query. Pure DB read — 0 credits. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "annotations": {
            "title": "Engagement Graph Schema + Examples (for traverse_graph)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "traverse_graph",
          "title": "Execute a SELECT against the Engagement Graph",
          "description": "[Read · free] Executes a TS-validated SELECT-only SQL query against the engagement graph and returns rows. Needs the schema and the caller_user_ids / caller_tracked_lp_ids that traverse_graph_help returns (it also has canonical examples). Required: SQL must start with SELECT or WITH, contain no DML/DDL keywords, and reference one of your caller_user_ids or caller_tracked_lp_ids verbatim. Cap: 1000 rows, 5s statement timeout. Pure DB read — 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "sql"
            ],
            "properties": {
              "sql": {
                "type": "string",
                "minLength": 10,
                "description": "The SELECT/WITH SQL to execute"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Execute a SELECT against the Engagement Graph",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_company_engagement_overlap",
          "title": "Company Engagement Overlap",
          "description": "[Read · free] Given two companies, return the people who engaged (reacted or commented) with posts published by BOTH companies' own LinkedIn pages, counting only company-page posts and engagers already collected in your library. Use it to find people interested in two target accounts at once. It does NOT compare which employees of each company engage with you (for that, use get_post_engagers_by_company). It needs data collected first: each company's page posts (a company stream, or linkedin_company_posts) and their engagers (get_post_set_engagers on those posts, or linkedin_post_reactions / linkedin_post_comments); when a company has no page posts in your library the response says so. Identify each company by company_x_url, company_x_linkedin_id (LinkedIn's numeric id, as linkedin_company_info returns it), company_x_name (exact, case-insensitive; several matches return candidates instead of a guess) or company_x_id (companies.id UUID). A company not saved in Flux returns `_meta.next_step` naming linkedin_company_info (1 credit). Pure DB read — no LinkedIn pull, no credits charged.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Max overlapping engagers to return (1-100, default 20)"
              },
              "company_a_id": {
                "type": "string",
                "format": "uuid",
                "description": "Company A — companies.id UUID"
              },
              "company_b_id": {
                "type": "string",
                "format": "uuid",
                "description": "Company B — companies.id UUID"
              },
              "company_a_url": {
                "type": "string",
                "description": "Company A — LinkedIn URL"
              },
              "company_b_url": {
                "type": "string",
                "description": "Company B — LinkedIn URL"
              },
              "company_a_name": {
                "type": "string",
                "description": "Company A — exact company name, case-insensitive"
              },
              "company_b_name": {
                "type": "string",
                "description": "Company B — exact company name, case-insensitive"
              },
              "company_a_linkedin_id": {
                "type": [
                  "string",
                  "number"
                ],
                "description": "Company A — LinkedIn's numeric company id (from linkedin_company_info)"
              },
              "company_b_linkedin_id": {
                "type": [
                  "string",
                  "number"
                ],
                "description": "Company B — LinkedIn's numeric company id (from linkedin_company_info)"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Company Engagement Overlap",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_outreach_path",
          "title": "Outreach Path to Target",
          "description": "[Read · free] Given a target person, find the shortest warm-intro path through your engager network. Walks coworker (shared current company) + alumni (shared past company / school) edges. Up to 3 hops. Paths only exist where job history is on file, and engagers collected from reactions/comments usually have none: the response's `coverage` says how many candidates (the target, and engagers tied to the target's companies) have job history, and when missing data may hide paths `_meta.next_step` names enrich_people with the exact person_ids to pass and its credit cost. Pure DB read — no LinkedIn pull, no credits charged.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 10,
                "maximum": 100,
                "minimum": 1,
                "description": "Max paths to return (default 10)"
              },
              "max_hops": {
                "type": "integer",
                "default": 2,
                "maximum": 3,
                "minimum": 1,
                "description": "Max path length (1=direct, 2=one intermediate, 3=two intermediates). Default 2."
              },
              "target_person_id": {
                "type": "string",
                "format": "uuid",
                "description": "Target — people.id UUID"
              },
              "target_linkedin_url": {
                "type": "string",
                "description": "Target — LinkedIn URL"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Outreach Path to Target",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_post_set_engagers",
          "title": "Get Post-Set Engagers",
          "description": "[Acquire · 1 credit/page + 3/person enriched] Pull from LinkedIn (costs credits) and return the consolidated, deduped people who reacted to or commented on a SET of posts — one tracked profile's posts (profile_id), a post collection (collection_id), or an explicit list of up to 50 posts (post_ids and/or post_urls, e.g. the post_ids linkedin_post_search returns; a URL not yet in Flux is stubbed for free, no save_post needed). Fetches only posts not synced within freshness_days, walks up to max_pages_per_post pages (100 people/page) of reactions and of comments per post, includes comment replies, and enriches (title/company via a profile lookup) only never-seen people, up to max_enrich. Costs 1 credit per page fetched (a page is up to 100 people; a post with under 100 reactions and under 100 comments = 2 credits; the most a post can cost is 2 × max_pages_per_post) + 3 per person enriched; cached posts and cached pages are free. The balance must cover the worst case (posts × 2 × max_pages_per_post + max_enrich × 3) before anything runs (get_cost_estimate with these params returns the same number); you are charged only for pages actually fetched. When the balance is short, the insufficient_credits error spells out what the worst case assumed and lists `suggestions` (smaller max_pages_per_post / max_posts / max_enrich, each with its resulting max) that fit the balance. Per-post reactions_fetched / reactions_total / comments_total / truncated tell you when a post had more engagers than were fetched.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "force": {
                "type": "boolean",
                "default": false,
                "description": "Re-sync posts even if within the freshness window"
              },
              "post_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "maxItems": 50,
                "description": "posts.id values (e.g. from linkedin_post_search results) — engagers across exactly these posts. Combine with post_urls; 50 total max. Each must be a post you can read."
              },
              "max_posts": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max posts to sync this call (1-100). Default 25; with post_ids/post_urls the default is the list length."
              },
              "post_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 50,
                "description": "LinkedIn post URLs — engagers across exactly these posts. URLs not yet in Flux get a stub row (no extra credit). Combine with post_ids; 50 total max."
              },
              "max_enrich": {
                "type": "integer",
                "default": 0,
                "maximum": 100,
                "minimum": 0,
                "description": "Max never-seen engagers to enrich via /linkedin/profile (0-100, default 0)"
              },
              "profile_id": {
                "type": "string",
                "description": "Tracked profile id — engagers across this profile's stored posts"
              },
              "collection_id": {
                "type": "string",
                "description": "post_collections.id — engagers across this collection's posts"
              },
              "freshness_days": {
                "type": "integer",
                "default": 30,
                "maximum": 365,
                "minimum": 0,
                "description": "Skip posts whose engagers were synced within this many days"
              },
              "max_pages_per_post": {
                "type": "integer",
                "default": 10,
                "maximum": 20,
                "minimum": 1,
                "description": "Max pages (100 people each) to walk per endpoint per post (1-20, default 10). Each page costs 1 credit."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get Post-Set Engagers",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "enrich_people",
          "title": "Enrich People (job history)",
          "description": "[Acquire · 3 credits/person enriched] Look up full LinkedIn profiles for up to 100 people and store their current title, company, headline and job history (every position). Job history is what get_outreach_path (coworker / alumni paths) and get_alumni_engagers search, and engagers collected from reactions/comments have none until enriched — when those tools report missing coverage they return a _meta.next_step with the exact person_ids to pass here. Pass person_ids (people.id from any engager / path tool) and/or linkedin_urls. Costs 3 credits per person successfully enriched. People you already have (connected to you: they engaged with your posts, are in your campaigns or segments, or you pulled or enriched them) who were enriched in the last 90 days are skipped for free unless refresh=true; anyone else is looked up and charged normally; failed or not-found lookups are free. The balance must cover 3 × the people to be looked up (after skips and max_credits) before anything runs; you are charged only for successes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "refresh": {
                "type": "boolean",
                "default": false,
                "description": "Re-enrich people enriched within the last 90 days (bypasses the cache)"
              },
              "person_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "people.id UUIDs to enrich (1-100)"
              },
              "max_credits": {
                "type": "integer",
                "minimum": 0,
                "description": "Spend cap. At most floor(max_credits / 3) people are looked up; the rest come back skipped_budget."
              },
              "linkedin_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "LinkedIn profile URLs to enrich; people not yet in the graph are added"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Enrich People (job history)",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "resolve_people",
          "title": "Resolve People",
          "description": "[Read · free] Resolve up to 200 LinkedIn profile URLs and/or person_ids to people in your Flux graph, free. Each result has person_id, the stored LinkedIn URL, matched_via (exact / canonical / member_id / public_identifier / none), name, current title and company, and coverage: has_positions (job history on file), enriched_at, engaged_with_you (engagements on your posts), in_campaigns (how many of your campaigns include them) and connected_via (engaged / campaign / segment / pulled). Only people connected to you resolve: someone who engaged with posts you can see, is in your campaigns or segments, or whom you pulled or enriched. Anyone else comes back as matched_via \"none\", the same as an unknown URL. _meta.next_step is the enrich_people call (with its credit cost) that saves the unmatched URLs and fills job history for matched people who lack it. Use it to triage a list of URLs before spending credits. Pure DB read, no LinkedIn pull, 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "person_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "maxItems": 200,
                "minItems": 1,
                "description": "people.id UUIDs. 1-200."
              },
              "linkedin_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 200,
                "minItems": 1,
                "description": "LinkedIn profile URLs, any form (vanity, /in/ACo…, trailing slash, utm params). 1-200."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Resolve People",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "resolve_company",
          "title": "Resolve Company",
          "description": "[Read · free] Look up a company saved in Flux by exactly one of name (case-insensitive exact match), linkedin_url, linkedin_company_id (LinkedIn's numeric id) or company_id, free. Returns company_id, linkedin_company_id, name, linkedin_url, page_type and coverage for you: connected_people_current (people connected to you, meaning they engaged with posts you can see, are in your campaigns or segments, or you pulled or enriched them, who hold a current position there) and engagers_current (those of them who engaged with your posts, with their engagement total). A name shared by several saved companies returns `candidates` to pick from. A company that is not saved returns _meta.next_step = linkedin_company_info (1 credit), which saves it. Generic placeholders (Self-employed, Freelance, Stealth...) are refused. Pure DB read, no LinkedIn pull, 0 credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 300,
                "minLength": 1,
                "description": "Company name, exact and case-insensitive"
              },
              "company_id": {
                "type": "string",
                "format": "uuid",
                "description": "companies.id UUID"
              },
              "linkedin_url": {
                "type": "string",
                "description": "Company LinkedIn URL (linkedin.com/company/…)"
              },
              "linkedin_company_id": {
                "type": [
                  "string",
                  "number"
                ],
                "description": "LinkedIn's numeric company id, as linkedin_company_info returns it"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Resolve Company",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": [
        {
          "name": "monthly-client-report",
          "description": "A month of LinkedIn performance for one profile: headline numbers against its own baseline, top posts, what worked, and three things to do next month. Free; runs on Pulse.",
          "arguments": [
            {
              "name": "profile",
              "required": false,
              "description": "Whose report: a name, LinkedIn URL or profile_id from list_profiles. Default: the only tracked profile, or ask."
            },
            {
              "name": "period",
              "required": false,
              "description": "The month to report on, e.g. 'October 2026' or 'last month'. Default: the last full calendar month."
            }
          ]
        },
        {
          "name": "research-a-prospect",
          "description": "A one-page brief before a call or message: how warm the person is toward you, their career, their recent posts that overlap with yours, and three talking points. Edge; usually 0 to 8 credits.",
          "arguments": [
            {
              "name": "linkedin_url",
              "required": true,
              "description": "The person's LinkedIn profile URL (any form)."
            },
            {
              "name": "context",
              "required": false,
              "description": "Optional: what the call or message is about, to aim the talking points."
            }
          ]
        },
        {
          "name": "triage-linkedin-urls",
          "description": "Paste up to 200 LinkedIn profile URLs. Flux ranks them by how much each person engages with your posts, briefs the warm ones, finds warm paths to the best cold fits and saves a shortlist. Edge; ranking and briefs are free, filling in job history is 3 credits per person.",
          "arguments": [
            {
              "name": "linkedin_urls",
              "required": true,
              "description": "The LinkedIn profile URLs to triage, separated by commas, spaces or new lines (up to 200)."
            },
            {
              "name": "max_credits",
              "required": false,
              "description": "Optional ceiling for filling in job history, e.g. '15'. Default: ask before spending."
            },
            {
              "name": "list_name",
              "required": false,
              "description": "Optional name for the saved shortlist segment."
            }
          ]
        },
        {
          "name": "warm-path-to",
          "description": "Is there someone in your audience who can introduce you to this person? Returns a named introducer, a 'not enough data' answer with the cost of filling the gap, or a real 'no connection'. Edge; free, or 3 credits per person enriched.",
          "arguments": [
            {
              "name": "linkedin_url",
              "required": true,
              "description": "The person you want to reach: a LinkedIn profile URL. Several URLs separated by commas or new lines also work."
            },
            {
              "name": "max_credits",
              "required": false,
              "description": "Optional ceiling for filling in job history, e.g. '10'. Default: ask before spending."
            }
          ]
        },
        {
          "name": "warm-way-into-account",
          "description": "Name a target company. Flux maps its senior decision-makers and the people around them into a ranked queue, then checks whether anyone in your audience can introduce you. Edge; 1 credit for the company lookup plus at most 1 + 3 credits per decision-maker mapped (at most 10 at the default of 3), and 3 per person if job history needs filling in; priced before anything runs.",
          "arguments": [
            {
              "name": "company",
              "required": true,
              "description": "The target company: a name, LinkedIn company URL or numeric LinkedIn company id."
            },
            {
              "name": "campaign",
              "required": false,
              "description": "Optional campaign name. Default: a new campaign named after the company."
            },
            {
              "name": "max_targets",
              "required": false,
              "description": "How many decision-makers to map, 1 to 20. Default: 3 (10 credits at most)."
            },
            {
              "name": "titles",
              "required": false,
              "description": "Optional title keywords, comma-separated, e.g. 'CIO, CMIO, digital health'. Default: VP, Director, Head of, Chief."
            }
          ]
        },
        {
          "name": "what-to-post-more-of",
          "description": "The formats, topics, lengths and posting times that beat a profile's own baseline, the posts that prove it, and (on Edge) fresh angles and a scored draft. Free on Pulse; angles cost 5 credits.",
          "arguments": [
            {
              "name": "profile",
              "required": false,
              "description": "Whose content: a name, LinkedIn URL or profile_id from list_profiles. Default: the only tracked profile, or ask."
            },
            {
              "name": "period",
              "required": false,
              "description": "How far back to look, e.g. 'last 90 days' or 'this year'. Default: all posts."
            },
            {
              "name": "topic",
              "required": false,
              "description": "Optional topic to generate new angles for (Edge, 5 credits)."
            }
          ]
        },
        {
          "name": "who-at-company-engages",
          "description": "Current and former employees of a company who react to or comment on your posts, with a coverage count that says whether the list is complete, plus the audience overlap between two company pages. Edge; free, or 1 credit per company lookup and 3 per person enriched.",
          "arguments": [
            {
              "name": "company",
              "required": true,
              "description": "The company: its name (exact, as Flux has it), numeric LinkedIn company id, or LinkedIn company URL."
            },
            {
              "name": "compare_with",
              "required": false,
              "description": "Optional second company, to see who engages with both companies' posts."
            },
            {
              "name": "max_credits",
              "required": false,
              "description": "Optional ceiling for filling in job history, e.g. '24'. Default: ask before spending."
            }
          ]
        },
        {
          "name": "who-engaged",
          "description": "Who reacted to and commented on a profile's posts (one post or a period), deduped and ranked, grouped by company and industry, with the warmest people called out. Edge; syncing a post's engagers usually costs 2 credits (1 per page of 100 reactions or comments), at most 2 × max_pages_per_post (20 at the default of 10); recently synced posts are free.",
          "arguments": [
            {
              "name": "profile",
              "required": false,
              "description": "Whose posts: a name, LinkedIn URL or profile_id from list_profiles. Default: the only tracked profile, or ask."
            },
            {
              "name": "period",
              "required": false,
              "description": "Which posts, e.g. 'last 30 days' or 'October 2026'. Default: the 25 most recent posts."
            },
            {
              "name": "post_url",
              "required": false,
              "description": "One LinkedIn post URL, to look at a single post instead of a period."
            }
          ]
        }
      ]
    },
    "instructions": "Flux is LinkedIn intelligence: your own posts and audience, plus live LinkedIn research.\n\nEvery tool description starts with a layer tag:\n- [Acquire · <cost>] pulls LinkedIn (or another paid upstream) and spends credits; results are saved to your library.\n- [Read · free] queries what is already in your library. No LinkedIn call. ([Read · 5 credits] = suggest_angles, which calls OpenAI.)\n- [Act · writes] changes your state (segments, collections, campaigns, streams); \"destructive\" marks removals.\n- [Meta · free] account, credits and self-description.\n\nTerms and data:\n- An \"engager\" is someone who reacted to or commented on a post in your library: your own posts, or posts you pulled (tracked/external profiles, collections, post searches). Warmth toward YOU means engagement with your own posts; engaging with a competitor's post is not warmth. In map_constellation, the engager pool means people who engage with the TARGET's posts.\n- Position-based tools (get_outreach_path, get_alumni_engagers, get_company_engagement_overlap, smart segments) need job history. Engagers from reaction/comment pulls usually lack it (stored only when LinkedIn's payload includes it, which is rare). Check the result's coverage (and empty_reason or _meta.interpretation where present) before buying enrich_people; don't enrich blindly.\n- When a result carries _meta.next_step or _meta.next_steps, follow it: it names the exact tool and arguments for the next call.\n\nCredits:\n- Before any run that could exceed 25 credits, call get_cost_estimate with the planned arguments and confirm with the user.\n- map_constellation's lead search is billed at a bundled 1 credit (a deliberate discount); linkedin_people_search costs 5 credits per page.\n\nRecipes:\n- Own-content analytics: list_profiles → get_profile_summary → get_posting_insights.\n- Budget: get_credit_balance, then get_cost_estimate before paid calls.\n- Monthly client report (prompt monthly-client-report, Pulse and Edge): list_profiles → get_profile_summary → get_engagement_trends → get_posts → get_posting_insights → get_topic_insights.\n- Research a prospect (prompt research-a-prospect, Edge): get_target_warmth_brief → enrich_people (3 credits) → linkedin_profile_posts (5 credits/page) → get_engagement_brief; optional get_outreach_path.\n- Triage LinkedIn URLs (prompt triage-linkedin-urls, Edge): get_outreach_queue(linkedin_urls) → get_target_warmth_brief for the warm ones → get_outreach_path for the best cold fits → enrich_people where data is missing (3 credits each, confirm) → create_segment + add_to_segment.\n- Warm path to a person (prompt warm-path-to, Edge): get_outreach_path → enrich_people for the people it names (3 credits each, confirm) → get_outreach_path again → get_target_warmth_brief.\n- Warm way into an account (prompt warm-way-into-account, Edge): linkedin_company_info → create_campaign → add_campaign_accounts → get_cost_estimate → map_constellation (1 + 3 credits/target, confirm) → get_outreach_queue → get_outreach_path for the top targets → log_outcome.\n- What to post more of (prompt what-to-post-more-of, Pulse and Edge): get_posting_insights → get_topic_insights → get_posts; on Edge add find_similar_posts, suggest_angles (5 credits) and score_draft.\n- Who at a company engages (prompt who-at-company-engages, Edge): get_alumni_engagers (company name, LinkedIn id or URL) → linkedin_company_info if Flux lacks the company (1 credit) → enrich_people for the gaps (3 credits each, confirm) → get_company_engagement_overlap for two accounts.\n- Who engaged (prompt who-engaged, Edge): One post: linkedin_post_reactions + linkedin_post_comments → get_post_engagers_by_company. Many posts: get_cost_estimate → get_post_set_engagers → get_target_warmth_brief for the top people (Edge)."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}