Skip to main content
Glama
automatiabcn

leadpipe-mcp

by automatiabcn

Scoring Configuration

config_scoring
Idempotent

View or update the global lead scoring configuration, including dimension weights, high-value titles and industries, preferred company sizes, and custom rules. Changes apply to future lead scoring only.

Instructions

View or update the global lead scoring configuration used by lead_score. Call with no fields (empty object) to fetch the current config. Pass any subset of fields to patch-update: six dimension weights (each 0–1, should sum to ~1 but not enforced), high_value_titles (string array), high_value_industries (string array), preferred_company_sizes, and custom_rules (array of {name, condition, points}). Changes apply to future lead_score calls only — previously scored leads keep their scores until re-scored.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_title_weightNoWeight for the job_title dimension (0–1). Default 0.25. The six weights should sum to ~1 but it is not strictly enforced.
company_size_weightNoWeight for the company_size dimension (0–1). Default 0.20.
industry_weightNoWeight for the industry dimension (0–1). Default 0.20.
engagement_weightNoWeight for the engagement dimension (0–1). Default 0.15.
recency_weightNoWeight for the recency dimension (0–1). Default 0.10. Recently created leads score higher.
custom_rules_weightNoWeight for the custom_rules dimension (0–1). Default 0.10.
high_value_titlesNoLowercase substrings that mark a job_title as high-value. Defaults: ["ceo", "cto", "vp", "director", "head", "founder", "owner", "manager"]. Match is case-insensitive substring.
high_value_industriesNoLowercase substrings that mark a company industry as high-value. Defaults: ["saas", "technology", "software", "fintech", "ecommerce", "marketing", "consulting"].
preferred_company_sizesNoCompany size tiers earning the maximum company_size_score. Defaults: ["11-50", "51-200", "201-500"].
custom_rulesNoArray of custom scoring rules. Each rule is {field, operator, value, points (-50..+50), description}. Replaces the existing rule list when provided.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv1.4.2
    • addedInput schema / properties / company_size_weight / description
      Added value: +"Weight for the company_size dimension (0–1). Default 0.20."
    • addedInput schema / properties / custom_rules / description
      Added value: +"Array of custom scoring rules. Each rule is {field, operator, value, points (-50..+50), description}. Replaces the existing rule list when provided."
    • addedInput schema / properties / custom_rules / items / properties / description / description
      Added value: +"Human-readable description shown in score_breakdown.details so users understand why a lead got the points."
    • addedInput schema / properties / custom_rules / items / properties / field / description
      Added value: +"Lead field to evaluate. Dot-paths are supported (e.g. \"email\", \"job_title\", \"company.industry\", \"custom_fields.utm_source\")."
    • addedInput schema / properties / custom_rules / items / properties / operator / description
      Added value: +"How field is compared to value: \"equals\" / \"contains\" / \"starts_with\" / \"ends_with\" for strings, \"gt\" / \"lt\" for numeric, or \"regex\" for full pattern match."
    • addedInput schema / properties / custom_rules / items / properties / points / description
      Added value: +"Score adjustment when the rule matches. Range -50..+50. Positive boosts the lead, negative penalizes."
    • addedInput schema / properties / custom_rules / items / properties / value / description
      Added value: +"Comparison value as a string. For numeric operators (gt/lt) the string is parsed as a number. For regex it is the pattern."
    • addedInput schema / properties / custom_rules_weight / description
      Added value: +"Weight for the custom_rules dimension (0–1). Default 0.10."
    • addedInput schema / properties / engagement_weight / description
      Added value: +"Weight for the engagement dimension (0–1). Default 0.15."
    • addedInput schema / properties / high_value_industries / description
      Added value: +"Lowercase substrings that mark a company industry as high-value. Defaults: [\"saas\", \"technology\", \"software\", \"fintech\", \"ecommerce\", \"marketing\", \"consulting\"]."
    • addedInput schema / properties / high_value_titles / description
      Added value: +"Lowercase substrings that mark a job_title as high-value. Defaults: [\"ceo\", \"cto\", \"vp\", \"director\", \"head\", \"founder\", \"owner\", \"manager\"]. Match is case-insensitive substring."
    • addedInput schema / properties / industry_weight / description
      Added value: +"Weight for the industry dimension (0–1). Default 0.20."
    • addedInput schema / properties / job_title_weight / description
      Added value: +"Weight for the job_title dimension (0–1). Default 0.25. The six weights should sum to ~1 but it is not strictly enforced."
    • addedInput schema / properties / preferred_company_sizes / description
      Added value: +"Company size tiers earning the maximum company_size_score. Defaults: [\"11-50\", \"51-200\", \"201-500\"]."
    • addedInput schema / properties / recency_weight / description
      Added value: +"Weight for the recency dimension (0–1). Default 0.10. Recently created leads score higher."
  2. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already provide idempotentHint=true and non-destructive. The description adds valuable context: updates are partial (patch-style), and changes do not affect previously scored leads until re-scored. This goes beyond annotations to explain the temporal scope of mutations.

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?

The description is a single compact paragraph of four sentences. It front-loads the primary verb ('View or update'), covers both usage modes, and lists parameter groups without redundancy. Could potentially be split into bullet points for better scanability, but it is sufficiently concise.

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

Completeness3/5

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

For a read/write configuration tool with no output schema, the description should describe the return value format. It mentions 'fetch the current config' but does not specify the structure of the response (e.g., that it mirrors the input schema fields). Additionally, no mention of error handling, authentication, or rate limits. Given the complexity (10 parameters, nested custom_rules), the output format is a meaningful gap.

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

Parameters4/5

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

Input schema has 100% description coverage, so baseline is 3. The description adds default values (e.g., 'Default 0.25' for job_title_weight), explains constraints ('each 0–1, should sum to ~1 but not enforced'), and clarifies behavior like 'replaces the existing rule list when provided' for custom_rules. This adds significant context beyond the schema.

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 description clearly states the dual purpose: 'View or update the global lead scoring configuration.' It specifies the exact verb-resource pair and distinguishes from sibling tools like `lead_score` by noting that the config applies to future calls only.

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?

Explicitly instructs when to fetch ('call with no fields') and when to update ('pass any subset of fields'). It also clarifies scope ('Changes apply to future lead_score calls only') and sets expectations about previously scored leads. However, it does not explicitly list sibling tools to avoid or conditions under which to avoid using this tool.

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