Skip to main content
Glama

score_leads

Re-score leads with custom weights using pure offline computation and return them sorted by score; adjust scoring for phone, website, rating, and reviews.

Instructions

Re-score a list of leads (e.g. with different weights). Pure computation, no browser, works offline. Returns leads sorted by score.

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>"
    },
    "name": "score_leads"
  }
}

Input Schema

NameRequiredDescriptionDefault
leadsYes
weightsNoOverride scoring weights (points). Defaults: {"noWebsite":40,"socialOnly":25,"phone":15,"reviewsHigh":20,"reviewsMid":10,"ratingMid":10,"ratingHigh":5}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It usefully discloses that the operation is local, offline, and non-browser-based, and that output is sorted by score, but it never clarifies whether stored leads are mutated or this is purely an in-memory transform, nor does it mention the 500-item ceiling or failure behavior.

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

Conciseness5/5

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

Three short sentences with a clear front-loaded purpose, followed by behavioral context and the return contract. No filler or repetition; each sentence adds a distinct fact.

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

Completeness4/5

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

For a two-parameter computational tool with a nested input and no output schema, the description covers purpose, environment constraints, and result ordering. It is still thin on the return shape (does each lead gain a 'score' field?) and on the weight override semantics, which the missing output schema leaves undocumented.

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

Parameters2/5

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

Schema description coverage is only 50%, so the description needs to compensate and largely does not. It alludes to the 'weights' parameter only in passing ('with different weights') and says nothing about the required 'leads' array, its required 'name' field, the 500-item maximum, or what each weight key (ratingMid vs ratingHigh, reviewsMid vs reviewsHigh) actually measures.

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

Purpose4/5

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

The description gives a specific verb and resource ('Re-score a list of leads') plus its modifier ('with different weights'), which is clearly distinct from search_leads, export_csv, and get_place. It stops short of naming a sibling to contrast with, so sibling differentiation is implied by the verb rather than stated.

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

Usage Guidelines3/5

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

'e.g. with different weights' hints at the re-scoring use case, and 'Pure computation, no browser, works offline' tells the agent this is a local call with no network dependency. There is no explicit when-to-use/when-not guidance and no pointer to an alternative tool for fetching or exporting leads.

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

Deploy Server

Other Tools