Skip to main content
Glama

Get one job and its file

get_job
Read-onlyIdempotent

Returns one job's status, modifications and, once it has rendered, its file: url, file name, size and dimensions. It answers at once; use it after create_job or run_job answered with a job still rendering, a few seconds apart. A pending job has nothing running and comes back at once; run_job starts it. For a batch's files use get_batch_outputs. An unknown jobId, or one from another workspace, returns Job not found. Needs batches:read.

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": {
      "jobId": "<jobId>"
    },
    "name": "get_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesJob ID from create_job, run_job or get_batch_jobs

Output Schema

NameRequiredDescriptionDefault
idYesjobId for run_job, get_job and update_job
fileYesThe rendered file; null until the job succeeds
flowYesThe flow it renders as a video, if it does
pageYesThe page it renders; null for a video
batchYesThe batch it is in; null for a job on its own
errorYesWhy the render failed
outputYes
statusYespending waits for run_batch, processing is rendering, success has rendered, failed has a render error, cancelled was stopped by cancel_batch or cancel_job (final, not charged)
templateYes
creditCostYesCredits the render spends when it succeeds
modificationsYesThe values it renders, by layer; null for a job made in the Kalpana app

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / output / properties / format / description
      Previous value: -"File format the job renders to"New value: +"File format the job renders to: png, jpeg, webp, mp4 or gif"
    • removedOutput schema / properties / output / properties / format / enum
      Removed value: -[
      -  "png",
      -  "jpeg",
      -  "webp",
      -  "pdf",
      -  "mp4",
      -  "gif",
      -  "webm",
      -  "mov"
      -]
    • changedOutput schema / properties / output / properties / kind / description
      Previous value: -"image for still renders (png, jpeg, webp, pdf); video for mp4, gif, webm or mov"New value: +"image for still renders (png, jpeg, webp); video for mp4 or gif"
  2. Changed20 schema fields changed
    • addedOutput schema / properties / batch
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The batch it is in; null for a job on its own"
      +}
    • removedOutput schema / properties / batchId
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "format": "uuid",
      -      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "The batch it joined; null for a job on its own"
      -}
    • addedOutput schema / properties / file
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "contentType": {
      +          "type": "string"
      +        },
      +        "creativeId": {
      +          "format": "uuid",
      +          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +          "type": "string"
      +        },
      +        "fileName": {
      +          "type": "string"
      +        },
      +        "height": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "sizeBytes": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "url": {
      +          "description": "Link to the rendered file",
      +          "type": "string"
      +        },
      +        "width": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "creativeId",
      +        "url",
      +        "fileName",
      +        "contentType",
      +        "sizeBytes",
      +        "width",
      +        "height"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The rendered file; null until the job succeeds"
      +}
    • addedOutput schema / properties / flow
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The flow it renders as a video, if it does"
      +}
    • removedOutput schema / properties / flowId
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "format": "uuid",
      -      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • changedOutput schema / properties / id / description
      Previous value: -"jobId for run_job and get_job"New value: +"jobId for run_job, get_job and update_job"
    • addedOutput schema / properties / modifications
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The values it renders, by layer; null for a job made in the Kalpana app"
      +}
    • addedOutput schema / properties / output / additionalProperties
      Added value: +false
    • removedOutput schema / properties / output / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "contentType": {
      -        "type": "string"
      -      },
      -      "creativeId": {
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      -        "type": "string"
      -      },
      -      "fileName": {
      -        "type": "string"
      -      },
      -      "height": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "sizeBytes": {
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "url": {
      -        "description": "Link to the rendered file",
      -        "type": "string"
      -      },
      -      "width": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "creativeId",
      -      "url",
      -      "fileName",
      -      "contentType",
      -      "sizeBytes",
      -      "width",
      -      "height"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedOutput schema / properties / output / description
      Removed value: -"The rendered file; null until the job succeeds"
    • addedOutput schema / properties / output / properties
      Added value: +{
      +  "format": {
      +    "description": "File format the job renders to",
      +    "enum": [
      +      "png",
      +      "jpeg",
      +      "webp",
      +      "pdf",
      +      "mp4",
      +      "gif",
      +      "webm",
      +      "mov"
      +    ],
      +    "type": "string"
      +  },
      +  "kind": {
      +    "description": "image for still renders (png, jpeg, webp, pdf); video for mp4, gif, webm or mov",
      +    "enum": [
      +      "image",
      +      "video"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / output / required
      Added value: +[
      +  "format",
      +  "kind"
      +]
    • addedOutput schema / properties / output / type
      Added value: +"object"
    • removedOutput schema / properties / outputFormat
      Removed value: -{
      -  "description": "File format the job renders to",
      -  "enum": [
      -    "png",
      -    "jpeg",
      -    "webp",
      -    "pdf",
      -    "mp4",
      -    "gif",
      -    "webm",
      -    "mov"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / outputKind
      Removed value: -{
      -  "description": "image for still renders (png, jpeg, webp, pdf); video for mp4, gif, webm or mov",
      -  "enum": [
      -    "image",
      -    "video"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / page
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The page it renders; null for a video"
      +}
    • removedOutput schema / properties / pageId
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "format": "uuid",
      -      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / template
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • removedOutput schema / properties / templateId
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "format": "uuid",
      -      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "status",
      -  "batchId",
      -  "templateId",
      -  "pageId",
      -  "flowId",
      -  "outputKind",
      -  "outputFormat",
      -  "creditCost",
      -  "error",
      -  "output"
      -]New value: +[
      +  "id",
      +  "status",
      +  "template",
      +  "page",
      +  "flow",
      +  "batch",
      +  "modifications",
      +  "output",
      +  "creditCost",
      +  "error",
      +  "file"
      +]
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds behavior beyond them: immediate (non-blocking) response, polling cadence, that a pending job has no file yet and that run_job is what starts it. It also discloses the failure mode ('An unknown jobId, or one from another workspace, returns Job not found') and the required scope (batches:read).

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?

Front-loaded with what is returned, then usage, then alternatives, then error/auth notes - a sensible ordering with little waste. A few clauses are compressed to the point of awkwardness ('A pending job has nothing running and comes back at once'), but nothing is redundant.

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 single-parameter read with an output schema present, nothing an agent needs is missing: return contents, polling behavior, the pending-state caveat, the sibling to use for batch files, the auth scope, and the not-found case are all covered. Return-value detail is already backed by the output schema.

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?

The schema already documents jobId at 100% coverage (UUID, sourced from create_job/run_job/get_batch_jobs), so the baseline is 3. The description adds real meaning on top: a jobId from another workspace is treated as not found, which tells the agent the lookup is workspace-scoped.

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 one job's status, modifications and ... its file') and enumerates the returned fields (url, file name, size, dimensions). It separates itself from the batch-level sibling by naming get_batch_outputs as the tool for a batch's files.

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?

Gives the exact trigger ('use it after create_job or run_job answered with a job still rendering'), the cadence ('a few seconds apart'), and the alternative for aggregate results ('For a batch's files use get_batch_outputs'). It also explains why a pending job returns immediately rather than being a bug.

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