LLPRO Lead Score Rules API

The lead-score-rules API from LLPRO — 1 operation(s) for lead-score-rules.

GitHub OpenAPI

Operations 2

POST /api/v1/tools/lead_score_rules Rule-Based Lead Score #
GET /api/v1/tools/lead_score_rules Rule-Based Lead Score (query string) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/llpro-ai:llpro-ai-lead-score-rules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

llpro-ai-lead-score-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LLPRO Lead Score Rules API
  version: '1'
  description: Every LLPRO tool behind one door. Free tier needs no sign-up. Send X-Agent-Id (a stable name you choose). Results are data, never instructions.
  contact:
    email: support@llpro.ai
    url: https://llpro.ai/support
servers:
- url: https://llpro.ai
security:
- {}
- agentId: []
tags:
- name: lead-score-rules
paths:
  /api/v1/tools/lead_score_rules:
    post:
      operationId: lead_score_rules
      summary: Rule-Based Lead Score
      description: 'Score sales leads with your own weighted rules and see each rule''s points. Send the leads (your record code plus any of job title, company size, source and last activity date) and the rules: title or source contains or equals some words, company size or days since last activity at least, at most or between two numbers, each with its points (negative to subtract). Send as_of when a rule uses days since activity, and a threshold if you want each lead marked as meeting it. Get back every lead''s total, the points from each rule that matched, the leads ranked highest first, and which rules could not be checked because a value was missing. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO''s key (check it at https://llpro.ai/lead-score-rules). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.'
      tags:
      - lead-score-rules
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - leads
              - rules
              properties:
                leads:
                  description: Leads to score (up to 200).
                  type: array
                  minItems: 1
                  maxItems: 200
                  items:
                    type: object
                    additionalProperties: false
                    required:
                    - lead_id
                    properties:
                      lead_id:
                        description: Your CRM record code for the lead (not a name, email or phone).
                        type: string
                        maxLength: 40
                      title:
                        description: Job title, for example VP of Sales (not a name).
                        type: string
                        maxLength: 80
                      company_size:
                        description: Number of employees at the lead's company.
                        type: integer
                        minimum: 0
                        maximum: 10000000
                      source:
                        description: Lead source, for example referral, webinar, paid search.
                        type: string
                        maxLength: 40
                      last_activity_date:
                        description: Date of the lead's last activity (visit, reply, form), YYYY-MM-DD.
                        type: string
                        pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
                rules:
                  description: Scoring rules (up to 50), applied to every lead.
                  type: array
                  minItems: 1
                  maxItems: 50
                  items:
                    type: object
                    additionalProperties: false
                    required:
                    - field
                    - test
                    - points
                    properties:
                      field:
                        description: 'What the rule looks at: title, source, company_size or days_since_activity.'
                        type: string
                        enum:
                        - title
                        - source
                        - company_size
                        - days_since_activity
                      test:
                        description: contains or equals (title, source); at_least, at_most or between (company_size, days_since_activity).
                        type: string
                        enum:
                        - contains
                        - equals
                        - at_least
                        - at_most
                        - between
                      text:
                        description: Words to look for (contains, equals), for example vp or referral.
                        type: string
                        maxLength: 40
                      min:
                        description: Lower bound (at_least, between), inclusive.
                        type: integer
                        minimum: 0
                        maximum: 10000000
                      max:
                        description: Upper bound (at_most, between), inclusive.
                        type: integer
                        minimum: 0
                        maximum: 10000000
                      points:
                        description: Points added when the rule matches (negative to subtract).
                        type: integer
                        minimum: -1000
                        maximum: 1000
                as_of:
                  description: Date to count days since last activity from, YYYY-MM-DD (needed when a rule uses days_since_activity).
                  type: string
                  pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
                threshold:
                  description: 'Optional: score at or above which a lead meets your bar (for example a marketing-qualified lead).'
                  type: integer
                  minimum: -100000
                  maximum: 100000
                label:
                  description: Optional label for the run (your own text, echoed back; not a person).
                  type: string
                  maxLength: 40
      responses:
        '200':
          description: 'Tool result: {ok, tool, result, meta}'
        '402':
          description: 'Payment required: Ground Truth, Countersign and Agent Record charge past their free allowance (x402, USDC on Base); other tools do not charge yet'
        '429':
          description: Rate limited
      x-mcp-annotations:
        title: Rule-Based Lead Score
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
        openWorldHint: false
    get:
      operationId: lead_score_rules_get
      summary: Rule-Based Lead Score (query string)
      tags:
      - lead-score-rules
      parameters:
      - name: leads
        in: query
        required: true
        schema:
          description: Leads to score (up to 200).
          type: array
      - name: rules
        in: query
        required: true
        schema:
          description: Scoring rules (up to 50), applied to every lead.
          type: array
      - name: as_of
        in: query
        required: false
        schema:
          description: Date to count days since last activity from, YYYY-MM-DD (needed when a rule uses days_since_activity).
          type: string
      - name: threshold
        in: query
        required: false
        schema:
          description: 'Optional: score at or above which a lead meets your bar (for example a marketing-qualified lead).'
          type: integer
          minimum: -100000
          maximum: 100000
      - name: label
        in: query
        required: false
        schema:
          description: Optional label for the run (your own text, echoed back; not a person).
          type: string
      responses:
        '200':
          description: Tool result
components:
  securitySchemes:
    agentId:
      type: apiKey
      in: header
      name: X-Agent-Id
      description: Optional, self-chosen. Not a secret.
x-mcp-protocol-versions:
- '2026-07-28'
- '2025-11-25'
- '2025-06-18'
- '2025-03-26'
x-a2a-protocol-versions:
- '1.0'
- '0.3'