Skip to content

API Reference parrot_tools.leadiq.tool

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.leadiq.tool

View source

LeadIQToolkit - Agent-usable toolkit for the LeadIQ GraphQL API.

Ports the GraphQL query logic and response transforms from flowtask's LeadIQ ETL component (flowtask/components/LeadIQ.py) into an AbstractToolkit exposing three discrete tools:

  • search_company -> structured company information (single company)
  • search_employees -> people grouped under a company
  • search_flat -> flat list of people at a company

Unlike the flowtask component, this toolkit does NOT inherit HTTPService (no FlowComponent coupling, no pandas DataFrame return). Transport is a composed HTTPService member, and every tool returns a structured ToolResult.

Alias AbstractToolArgsSchema

Re-exported from parrot_tools.abstract.AbstractToolArgsSchema.

Alias AbstractToolkit

Re-exported from parrot_tools.toolkit.AbstractToolkit.

Class LeadIQSearchInput

Input schema shared by all LeadIQ search tools.

Attributes:

Attribute Type Description
company_name str
limit int

Class LeadIQToolkit

Toolkit for querying the LeadIQ GraphQL API for company and people data.

Each public async method is automatically converted into a tool by AbstractToolkit (prefixed with leadiq_). Methods:

  1. Resolve LEADIQ_API_KEY (already Base64-encoded) and build the Authorization: Basic <key> header.
  2. Build the GraphQL payload from the ported query constant + variables.
  3. POST to https://api.leadiq.com/graphql via the composed HTTPService member.
  4. Flatten the response using the ported _process_*_response transforms.
  5. Return a structured ToolResult.
Parameter Type Default Description
api_key Optional[str] None LeadIQ API key (already Base64-encoded). If not provided, resolved lazily per-call from the LEADIQ_API_KEY environment variable via navconfig.
**kwargs {} Additional arguments passed to AbstractToolkit and the composed HTTPService.

Attributes:

Attribute Type Description
tool_prefix str
base_url str

Method LeadIQToolkit.search_company

Search LeadIQ for a company and return structured company information.

search_company(company_name: str, **kwargs) -> ToolResult

Parameter Type Default Description
company_name str
**kwargs {}

Returns: ToolResult

Method LeadIQToolkit.search_employees

Search LeadIQ for employees grouped under a company.

search_employees(company_name: str, limit: int = 100, **kwargs) -> ToolResult

Parameter Type Default Description
company_name str
limit int 100
**kwargs {}

Returns: ToolResult

Method LeadIQToolkit.search_flat

Flat search LeadIQ for people at a company (one record per person).

search_flat(company_name: str, limit: int = 100, **kwargs) -> ToolResult

Parameter Type Default Description
company_name str
limit int 100
**kwargs {}

Returns: ToolResult

Alias ToolResult

Re-exported from parrot_tools.abstract.ToolResult.

Alias tool_schema

Re-exported from parrot_tools.decorators.tool_schema.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally