Skip to main content
Glama

Check a lead import

get_lead_import
Read-onlyIdempotent

See where a lead import stands. Before it runs: whether the user has uploaded the file, and what it would bring in (new leads and people, open leads that go to their salesperson or to nobody, opted-out numbers). Show the user that summary. After run_lead_import, pass run_id to see whether it finished and what it created. Admins only.

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": {
      "import_id": "<import_id>"
    },
    "name": "get_lead_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idNorun_id from run_lead_import, to follow that import
import_idYesImport id from start_lead_import
workspace_idNoLeave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive, and open-world behavior. The description adds useful context beyond them: it is admin-only, it should surface a summary to the user, and run_id is used specifically to follow an import after run_lead_import. It does not describe edge cases such as missing imports or not-yet-uploaded files in detail, so it falls short of 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.

Conciseness5/5

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

The description is short, front-loaded, and organized around the pre-run and post-run workflow. Every sentence contributes relevant guidance, including the admin-only constraint and the instruction to show the user the summary.

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

Completeness5/5

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

For a read-only import status tool with no output schema, the description covers both operational modes, the expected summary contents, the admin restriction, and how run_id fits after run_lead_import. Nothing critical for correct invocation is missing.

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 schema already defines all three parameters. The description adds meaning to run_id by explaining that it is passed after run_lead_import to see whether the import finished and what it created. It does not add much beyond the schema for import_id or workspace_id, but the run_id clarification is useful.

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 and resource: it tells the agent to see where a lead import stands. It clearly distinguishes the pre-run check from the post-run check and names the relevant sibling workflow, run_lead_import.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance: before a run to confirm upload status and preview the import, and after run_lead_import with run_id to check completion and results. It also states the admin-only requirement, leaving little ambiguity about invocation timing or audience.

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