Skip to main content
Glama

jobs

List, inspect, or cancel background admin tracker entries by status, kind, or ID; pass the environment the task was triggered for so operations resolve the same branch.

Instructions

admin_jobs tracker (mirrors the Jobs tab of /admin/live + the polling/cancel routes). env selects the branch the tracker rows live on: an env-pinned spawn (the e2e_runs trigger, voice_scenarios run — both wrap use_env(env)) writes its admin_jobs row to that env's branch, so get/list/cancel must resolve the SAME one — pass the env the job was triggered for. Single-DB deployments (cross-env vars unset) fall back to the local branch, where any env value works. action: list (status/kind filters — an invalid filter value returns an empty list rather than erroring, same as the portal) | get (job_id) | cancel (job_id — cooperative: flips status='cancelled' if the job is still queued/running; cancel_applied=false means it had already finished. Always audits the operator's intent, unconditionally, same as the portal).

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

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
kindNoOnly jobs of this kind (kb_upload, e2e, ...).
limitNoMaximum jobs to return.
actionNoOperation to run: list | get | cancel. The tool description lists what each action needs.list
job_idNoadmin_jobs UUID returned by a background trigger.
statusNoOnly jobs in this status (queued, running, ...).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and discloses important traits: env-branch resolution and single-DB fallback, invalid filters returning an empty list, cooperative cancel semantics with cancel_applied=false, and unconditional audit. It does not mention required permissions or rate limits, leaving some behavioral context unstated.

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?

The description is dense but front-loaded and each parenthetical adds operational detail. Some repetition, such as 'same as the portal' appearing twice, and long run-on sentences slightly reduce crispness.

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 multi-action admin tool with an output schema, it covers branch resolution, action requirements, edge cases, and cancel/audit semantics. Nothing critical for correct invocation appears to be 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 baseline is 3, but the description adds meaningful meaning for env (branch resolution and fallback) and action (list/get/cancel requirements) and for invalid filter behavior. It adds little beyond the schema for kind, status, and limit.

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?

Names the resource as an admin_jobs tracker and enumerates the three actions (list, get, cancel), while distinguishing it from related trigger tools like e2e_runs and voice_scenarios by describing this as the tracker that reads their job rows.

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?

Explains the env selection condition and action-specific needs, including that get/list/cancel must resolve the same env the job was triggered for. It does not explicitly state when not to use the tool or name a preferred alternative for triggering jobs, 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.