Skip to main content
Glama

List Mapping Jobs

listMappings
Read-onlyIdempotent

List IVR mapping jobs in your workspace. Supports filtering and cursor pagination.

FILTERS (all optional):
- status: Filter by the latest run's status. Values: idle | running | completed | failed | limited.
  Each job's `status` is its latest run's status (`idle` if it has never run), and the filter
  compares against it — so `status=completed` returns jobs whose most recent
  run finished, and `status=running` returns jobs with an in-flight run.
- tag: Filter to jobs with this tag (exact, lowercase alphanumeric + hyphens, e.g. 'compliance-eu').
- phoneNumber: Filter by exact E.164 phone number (e.g. '+441234567890').
- name: Case-insensitive substring match against the job name.
- profileId: Filter to jobs using a specific mapping profile (a `profile_…` id from listProfiles).
- createdAfter / createdBefore: ISO-8601 datetime strings (e.g. '2026-05-01T00:00:00Z'). Efficient
  DDB range filter — both, either, or neither.
- limit: Page size, 1-100, default 50.

SORTING:
- sortDir: 'asc' or 'desc' (default 'desc' = newest first). Sort is always by createdAt.

PAGINATION:
- Pass `cursor` (from a previous response's `nextCursor`) to get the next page.
- When `nextCursor` is absent from the response, you are on the last page.
- LOSSY-PAGINATION CAVEAT: When filtering by `status`, paged results may underfill (return fewer
  than `limit` items) because the status filter is applied after the DDB query. Always follow
  `nextCursor` until it is absent to be sure you have all matches.

RESULT FIELDS:
- id: UUID — use with `getMapping` for full detail (run state, step counts) or `getMappingTree`
  for the discovered IVR tree (once the latest run has status=`completed`).
- status: The latest run's status (so `completed`, `failed` or `limited` once it has finished); `idle` when the job has never run.
- tags: String labels for grouping. Set via `createMapping` / mapping update.
- config: Includes mappingMode, maxDepth, maxCalls, probeMode.
- runNumber: The run number of the latest run, if any.

USAGE PATTERNS:
- "List my 5 most recent mappings" → { limit: 5, sortDir: 'desc' }
- "Show running mapping jobs" → { status: 'running' }
- "Mappings tagged compliance-eu" → { tag: 'compliance-eu' }
- "Mappings created this week" → { createdAfter: '<start-of-week ISO>' }
- "Find runs for +44... in detail" → call listMappings { phoneNumber: '+44...' } then getMapping(id)

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

Input Schema

NameRequiredDescriptionDefault
tagNoFilter to jobs with this tag (exact, lowercase alphanumeric + hyphens).
nameNoCase-insensitive substring match against the job name.
limitNoPage size (1–100, default 50).
cursorNoOpaque cursor from a previous response's `nextCursor` to fetch the next page.
hasRunNomapping-pages-discarded-cursor fix. When true, filter to jobs with at least one run (latest run's status != idle). When false, only idle jobs. Independent of `status` — both may be combined. Post-merge filter, same underfill caveat as `status` applies: always follow `nextCursor` until absent.
searchNomapping-pages-discarded-cursor fix. Case-insensitive OR substring match across job `name` and `phoneNumber` — server-side equivalent of the Map Results page search box. Distinct from the exact-match `name`/`phoneNumber` filters above, which remain ANDed when both given and are unchanged by this addition.
statusNoFilter by the latest run's status.
sortDirNoSort direction by createdAt (default desc = newest first).desc
profileIdNoFilter to jobs using a specific mapping profile.
phoneNumberNoFilter by exact E.164 phone number.
createdAfterNoISO-8601 datetime; return jobs created at or after this time.
createdBeforeNoISO-8601 datetime; return jobs created before this time.

Output Schema

NameRequiredDescriptionDefault
itemsYes
nextTokenNoAlias for nextCursor (frontend back-compat). Absent on the last page.
nextCursorNoOpaque base64-encoded cursor. Pass back in `cursor` query param to fetch next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / profileId / format
      Removed value: -"uuid"
  2. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / status / description
      Previous value: -"Latest run's status merged onto the job. `idle` when no active run.\nIMPORTANT: Mapping JOBS cycle running ↔ idle and never reach `completed`.\nOnly RUNS reach `completed`/`failed`/`limited`.\n"New value: +"The latest run's status, copied onto the job, so it can be `completed`,\n`failed` or `limited` once that run has finished. `idle` when the job has\nnever run.\n"
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description goes well beyond them: it discloses the LOSSY-PAGINATION CAVEAT that filtered pages may underfill because status is applied post-query, that sorting is always by createdAt regardless of filters, and that status reflects the latest run (idle when never run). These are non-obvious behavioral traits an agent could not infer from structured fields.

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?

Excellent front-loading and scannable section headers (FILTERS, SORTING, PAGINATION, RESULT FIELDS, USAGE PATTERNS), and every filter bullet carries distinct information. The RESULT FIELDS block is partly redundant since an output schema exists, though it earns some of its length by telling the agent which field (id) feeds which sibling tool.

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 12-parameter, zero-required list tool with rich filtering and paging, the description covers the filter semantics, sort invariant, cursor workflow, underfill caveat, and next-step routing. An agent has everything needed to call it correctly and to know when it has all results.

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 baseline is 3, and the description still adds real meaning: it explains that status compares against the latest run's status with worked examples, gives tag and E.164 formats with samples, and clarifies createdAfter/createdBefore as an inclusive DDB range where both, either, or neither may be passed. It omits the schema's hasRun and search parameters entirely, so it does not fully compensate for or reinforce the whole parameter surface.

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?

Opens with a specific verb+resource and scope: 'List IVR mapping jobs in your workspace.' It also routes to the correct siblings by naming getMapping and getMappingTree for per-job detail and listProfiles as the source of profileId values, so an agent can distinguish this list tool from the read-one tools without opening a schema.

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?

The USAGE PATTERNS block gives concrete natural-language-to-parameter mappings ('List my 5 most recent mappings' → { limit: 5, sortDir: 'desc' }) and explicitly chains to getMapping for detail after filtering by phoneNumber. It also states the when-to-stop rule for pagination (follow nextCursor until absent), which is the key usage decision for this 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.