Skip to main content
Glama

list_import_runs

Read-only

The import logs of this tenant: counts per run and, with run_id, the per-row outcome including the reason for every rejection and every suggestion. Also lists contract imports (import_contract_from_folder, kind='contract_import'): each run's state (running/complete/failed) and, with its run_id, the per-file progress and result (contract_id / reason).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of entries to return
run_idNoID of the run
outcomeNoOnly rows with this outcome (with run_id)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of entries to return"
    • addedInput schema / properties / outcome / description
      Added value: +"Only rows with this outcome (with run_id)"
    • addedInput schema / properties / run_id / description
      Added value: +"ID of the run"
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond that: the two granularity levels, the contract_import kind and its state values (running/complete/failed), the per-file progress/result fields (contract_id / reason), and the rejection reason and suggestion fields. It does not mention pagination defaults or ordering for the limit parameter, which keeps it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The description is front-loaded and contains no filler, but the second sentence is heavily parenthetical with nested asides ('import_contract_from_folder, kind='contract_import'') and repeated 'with run_id' phrasing. It is reasonably efficient but reads more like compressed notes than a clean, structured definition.

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?

With annotations providing the safety profile and no output schema present, the description must carry the return-value burden, and it does so reasonably: counts per run, per-row outcome with rejection reasons and suggestions, plus contract-run state and per-file results. Gaps remain around response shape (e.g. that the result is a list versus a mapping) and pagination behavior for limit, which keeps it at 4.

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 limit, run_id and the outcome enum. The description adds one meaningful cross-parameter constraint ('with run_id' applies to outcome filtering) and explains how run_id changes the response granularity, which the schema does not. Otherwise the parameter meaning is largely carried by the schema, so the baseline of 3 is appropriate.

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 description states a specific verb and resource ('import logs of this tenant') and distinguishes two modes: counts per run, and per-row outcomes when run_id is supplied. It also extends the purpose to contract imports with kind='contract_import', which names a related sibling tool by its parameter. It stops short of 5 because the opening frame ('import logs') is slightly blurred once contract imports are mixed in, but an agent can still tell what the tool returns.

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

Usage Guidelines3/5

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

The description implies when to call it (to inspect import runs and, with run_id, drill into rows or files), and names import_contract_from_folder as a producer rather than an alternative. However, it never explicitly contrasts with siblings like get_contract_import or list_agent_test_runs, and gives no 'use this instead when...' guidance. Usage is implied rather than stated.

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.