Skip to main content
Glama

workspaces_leads_list

Paginated lead list with column values, filtering, ordering, and search. Pass meta=false to omit the bulky meta block (available views, filters, and segments) — recommended for agent/MCP use to save context tokens.

Method: GET /api/v1/workspaces/{workspace_sqid}/leads/

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": "workspaces_leads_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSubstring search across contact, lead_name, and all context fields.
qfNoAd-hoc column filters as a JSON array, ANDed on top of `filter`/`segment`/`status`/`q`. Each entry is `{"field": <key>, "op": <operator>, ...}` where `op` is `in` (with `values`, a `null` element meaning blanks) or one of the FilterConfig operators `=`, `!=`, `>`, `>=`, `<`, `<=`, `contains`, `is empty`, `is not empty` (with `value`, except for the last two). Discovery fields are not supported. Example: `[{"field":"status","op":"in","values":["NEW",null]}]`.
metaNoInclude the `meta` block (available views, filters, segments) in the response. Default `true`. Pass `false` to omit — saves tokens in MCP/agent scenarios.
pageNoPage number (default 1).
viewNoViewConfig sqid — determines which columns appear in `column_values`. Overridden by `fields`.
fieldsNoComma-separated field keys to include in `column_values`, overrides `view`. E.g. `contact,company_name,kdm_email`.
filterNoFilterConfig sqid — apply this filter to the lead queryset.
statusNoFilter by lead status. Omit or leave empty to hide ARCHIVED leads (the default). Pass a specific status value (e.g. `INTERESTED`) to show only that status, or `__all__` to include every status including ARCHIVED.
segmentNoSegment sqid — list only leads in this segment.
orderingNoField key to sort by (prefix with `-` for descending). E.g. `-created_at`. Default: `-updated_at`. Overrides the sort stored on `view`.
per_pageNoResults per page (default 25, max 200).
import_idNoFilter leads by CSV import batch id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses pagination and the token cost of the meta block, and the GET method implies a read-only, idempotent operation. It says nothing about auth requirements, rate limits, or error behavior for a 12-parameter tool.

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?

Two tight sentences with the core capability front-loaded and the high-value agent tip immediately after; no filler. The trailing 'Method:' line is mildly redundant given the tool name but cheap and occasionally useful.

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 12-parameter, zero-required read tool with no output schema, the description covers the essentials of what is returned ('lead list with column values') and pagination. It omits the response envelope shape (how column_values, page counts, and meta are structured), which the absent output schema would otherwise require the description to convey.

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 baseline is 3. The description's only parameter-relevant content is the `meta=false` recommendation, which restates what the schema already documents in detail; it adds no semantics for `qf`, `view`, `fields`, `status`, or `ordering`.

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?

States a specific verb and resource: 'Paginated lead list with column values, filtering, ordering, and search', plus the concrete endpoint GET /api/v1/workspaces/{workspace_sqid}/leads/. It does not distinguish itself from list-oriented siblings (e.g. workspaces_leads_facets or workspaces_filter_configs_list) beyond the noun 'lead'.

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?

Gives a real conditional instruction: pass `meta=false` to omit the bulky meta block, 'recommended for agent/MCP use to save context tokens'. That is explicit context for how an agent should call it. It stops short of naming alternative tools or stating when to prefer a sibling listing tool.

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.