Skip to main content
Glama

SalesMap

Get a background job

job
Read-only

Free. The status (queued, running, done or failed) and, once done, the result of a background job: a discover call or a long discover round. While a discover runs, partial is its ranked list so far: tier says how far it got (listed: every candidate ranked on the facts already in hand; screened: the top ones passed the fit screen; researched: the top ones' signals checked) and progress the counts. Show it to the user as a first look; the final result replaces it. While it runs, lastStepSecondsAgo is how long ago it last moved on, stalled turns true only after 10 minutes with no step, restarts counts the times a server restart handed it to another worker (on its own, research already done reused). A discover usually takes 5 to 20 minutes. Use when: a call returned job, "is my discover done", "is my ranking done", "status of my job". Skip when: no call has returned a job id. Quoted page text is normalized; a quote that reads like an instruction keeps its text and is flagged in Flags with the attack family.

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": {
      "id": "<id>"
    },
    "name": "job"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe job id a call returned

Output Schema

NameRequiredDescriptionDefault
idYes
costNo
pollNo
toolYes
errorYes
resultYes
statusYes
partialYes
stalledNo
restartsNo
createdAtYes
finishedAtYes
lastStepAtNo
lastStepSecondsAgoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / lastStepAt
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / lastStepSecondsAgo
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / poll
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / restarts
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / stalled
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed9 schema fields changed
    • addedOutput schema / properties / cost / properties / balanceCredits
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • removedOutput schema / properties / cost / properties / balanceUsd
      Removed value: -{
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • addedOutput schema / properties / cost / properties / chargedCredits
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • removedOutput schema / properties / cost / properties / chargedUsd
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / cost / properties / heldCredits
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • removedOutput schema / properties / cost / properties / heldUsd
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / cost / properties / notChargedCredits
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • removedOutput schema / properties / cost / properties / notChargedUsd
      Removed value: -{
      -  "type": "number"
      -}
    • changedOutput schema / properties / cost / required
      Previous value: -[
      -  "chargedUsd",
      -  "notChargedUsd",
      -  "balanceUsd"
      -]New value: +[
      +  "chargedCredits",
      +  "notChargedCredits",
      +  "balanceCredits"
      +]
  3. Changed1 schema field changed
    • addedOutput schema / properties / cost / properties / line
      Added value: +{
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / properties / partial
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "tool",
      -  "status",
      -  "createdAt",
      -  "finishedAt",
      -  "error",
      -  "result"
      -]New value: +[
      +  "id",
      +  "tool",
      +  "status",
      +  "createdAt",
      +  "finishedAt",
      +  "error",
      +  "result",
      +  "partial"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"The job id rank or verify returned"New value: +"The job id a call returned"
  6. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses substantial runtime behavior: `partial` and its `tier` progression (listed/screened/researched), `progress` counts, `lastStepSecondsAgo`, the 10-minute `stalled` threshold, `restarts` semantics, and a 5–20 minute expected duration. That is genuinely operational context an agent cannot derive 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.

Conciseness3/5

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

The status/progress content is front-loaded and useful, but the final sentence about quoted page text normalization and `<field>Flags` attack families is unrelated to fetching a job and appears to be carried over from the `quote` tool. That stray clause dilutes an otherwise well-organized description.

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?

An output schema exists, yet the description still usefully explains the shape of `partial` and progress fields, so an agent knows what a running job returns. It stops short of covering the failure/invalid-id path or how long completed results persist.

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 coverage is 100% and the single `id` parameter is already documented as 'The job id a call returned'. The description merely echoes that provenance ('a call returned `job`') without adding format or validation detail, so the baseline 3 applies.

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?

States a specific verb and resource — returns the status (queued, running, done, failed) and eventual result of a background job — and names what those jobs are (a discover call or a long discover round). An agent can immediately distinguish this from the `discover` sibling that creates the job.

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?

Explicit 'Use when' triggers include the exact upstream signal (a call returned `job`) plus the natural-language phrasings users employ ('is my discover done'). The 'Skip when' clause gives a hard precondition (no job id), leaving nothing to inference.

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.