Skip to main content
Glama

Rule-Based Lead Score

lead_score_rules
Read-onlyIdempotent

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "leads": "<leads>",
      "rules": "<rules>"
    },
    "name": "lead_score_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoDate to count days since last activity from, YYYY-MM-DD (needed when a rule uses days_since_activity).
labelNoOptional label for the run (your own text, echoed back; not a person).
leadsYesLeads to score (up to 200).
rulesYesScoring rules (up to 50), applied to every lead.
thresholdNoOptional: score at or above which a lead meets your bar (for example a marketing-qualified lead).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and closed-world, and the description adds substantial context beyond them: free, no model, no network, nothing stored, every answer signed with a verifiable key and URL, label content restrictions (emails, URLs, long digit runs refused), and the error surface including an hourly limit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: purpose, then inputs, then returns, then limits and disclaimers. The 'Answer fields' list is somewhat opaque and the closing disclaimer is boilerplate, but nearly every sentence carries operational information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by naming the return contents (per-lead totals, per-rule matched points, ranking order, unchecked-rule reporting) and error behavior. For a two-required-parameter scoring tool, nothing an agent needs to call it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the parameters (field, test, text, min/max, points, threshold, as_of, lead fields) are already fully documented. The description reinforces the rule-combination semantics ('applied to every lead', 'negative to subtract') but adds little that the schema does not already say.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource ('Score sales leads with your own weighted rules and see each rule's points') and immediately implies the output shape. An agent knows exactly what the tool computes without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete conditional guidance: send as_of when a rule uses days since activity, send a threshold only if you want leads marked as meeting it. It does not name when-not-to-use or any alternative, but no sibling covers this scoring function.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources