Skip to main content
Glama

Resolve filter text to search filter IDs

resolve_filter
Read-only

Free. Turn a human filter value (region "Shanghai", industry "Medical Device", title "CEO", company "Siemens", ...) into search filter options with IDs, plus a ready-to-paste filter_snippet for the query parameter of search_leads / search_companies / create_search_task. Combine snippets like: (filters:List(SNIPPET,SNIPPET),keywords:...,spellCorrectionEnabled:true).

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": {
      "filter_type": "<filter_type>"
    },
    "name": "resolve_filter"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoThe value to resolve, e.g. "Shanghai" / "Medical Device" / "CEO". Optional for enum-like types (INDUSTRY, COMPANY_SIZE, SENIORITY, FUNCTION): omit to list all options.
card_noNoCard number (optional if provided via Authorization: Bearer header)
filter_typeYesWhich filter to resolve

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With readOnlyHint=true already covering the safety profile, the description adds genuinely new facts: it is free (a cost signal not in annotations) and it returns both ID-bearing filter options and a pasteable snippet. It does not discuss rate limits or failure behavior when text doesn't match, keeping it from a 5.

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?

Front-loads the 'Free.' cost signal and the core transformation in the first clause, then the downstream consumers. The trailing snippet-syntax example is dense but earns its place; the parenthetical value list is slightly redundant with the schema examples.

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?

No output schema exists, so the description must describe returns, and it does: filter options with IDs plus a filter_snippet. For a 3-parameter read-only lookup tool, that is nearly sufficient; only unmatched-text behavior is unaddressed.

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 schema already documents text, filter_type, and card_no, including the omit-to-list-all behavior for enum types. The description's inline examples ('Shanghai', 'Medical Device', 'CEO') reinforce the text parameter but add little beyond the schema, so baseline 3 applies.

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 uses a specific verb ('Turn a human filter value... into search filter options with IDs') plus a distinct second output (a ready-to-paste filter_snippet). It names the sibling consumers (search_leads, search_companies, create_search_task), so an agent can place it in a workflow without opening anything else.

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 clearly situates the tool upstream of the search/create_task tools and shows the combine syntax for snippets, which is real usage guidance. It does not state when to skip this tool (e.g., when you already have filter IDs) or name an alternative, so it stops 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