Skip to main content
Glama

Which leads are good

lead_quality
Read-onlyIdempotent

Read only. How good the business's leads are, in plain words, grouped by campaign, ad, form, source, organic vs from an ad, or (for the owner, an admin or a manager) a qualifying answer on the form: how many came, how many the owner marked and how many of those were good or became customers, over the last 90 days. Useful for 'which campaign brings good leads?', 'is the form bringing junk?', before suggesting where to move money.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lead_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoHow to group (default campaign).
accountNoAn ad account's name or id, to see one account only; omit for all of them.
languageNoAnswer language. The business's language by default.

Output Schema

NameRequiredDescriptionDefault
byNocampaign, ad, form, source, organic or answer.
daysNoThe days the numbers cover.
moreNoGroups left out of this answer.
noteNoA plain note instead of data (nothing connected yet, not available here).
groupsNo
summaryNoIn plain words: which group brings the best leads and which the weakest, once enough are marked.
truncatedNo
truncatedNoteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the opening 'Read only' merely restates that. The description does add value with the fixed 90-day window, the metric set (came, marked, good, became customers), and the role gating ('for the owner, an admin or a manager') on the answer grouping, but says nothing about result size, cardinality, or what happens with empty groupings.

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?

One dense sentence with the purpose and grouping options front-loaded, followed by a short usage clause; almost every phrase carries information. The leading 'Read only.' duplicates the readOnly annotation and could be dropped.

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 an aggregation tool with three optional parameters and an output schema, the definition covers metric definitions, the time window, and role restrictions, which is enough to call it correctly. Minor gaps around result size and default behavior when the account filter is omitted keep it from a 5.

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?

Schema coverage is 100%, so the baseline would be 3, and the description adds meaning the schema lacks: the default grouping is campaign, and the 'answer' grouping only returns qualifying answers for the owner, an admin or a manager. That permission caveat is genuine semantic information not present in the enum description.

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 definition names the resource (lead quality) and the exact grouping dimensions (campaign, ad, form, source, organic, answer), so an agent knows this is an aggregate quality report rather than the raw listings implied by siblings like leads_list or lead_forms_list. It stops short of explicitly contrasting itself with those siblings, but the scope is unambiguous.

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 supplies concrete triggering questions ('which campaign brings good leads?', 'is the form bringing junk?') and a sequencing cue (use before suggesting where to move money), which is real usage context. There are no explicit exclusions or named alternatives for the raw-list case, so it falls short of a 5.

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