Skip to main content
Glama

Get job status

get_job_status
Read-only

Get the status of a book order. When the job is complete, returns a presigned S3 PDF URL that the agent can fetch. While pages are being redrawn the status is PROCESSING and pendingRedraws says how many are left; generate_pdf works once the status is IMAGES_READY. freeEditsRemaining is how many of the book's free page redraws (regenerate_image; 10 per book, 3 per paperback cover) are left before redraws start costing credits.

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_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesThe jobId returned by one of the book creation tools.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, and the description goes further by explaining the returned presigned S3 PDF URL on completion, the meaning of pendingRedraws, and the credit economics of redraws (10 per book, 3 per paperback cover). It does not mention URL expiry, failure states, or polling cadence, which keeps it short of a 5.

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?

Three sentences, front-loaded with the core purpose and return value, then state semantics, then the credit rule. The final sentence is dense with parentheticals, but every sentence carries distinct information rather than repeating the name or schema.

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?

For a polling tool with no output schema, the description covers the meaningful return fields (PDF URL, status, pendingRedraws, freeEditsRemaining) and their state transitions. It omits what happens on failure and whether retry_job is the recovery path, which is the notable remaining gap.

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?

With one parameter at 100% schema coverage, the schema already documents jobId including where it comes from, so the baseline of 3 applies. The description adds no syntax, format, or validation meaning beyond that.

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 ('Get the status of a book order') and immediately distinguishes its position in the workflow by naming the states it reports (PROCESSING, IMAGES_READY) and the sibling it unlocks (generate_pdf). An agent can tell this is the polling/read tool without inspecting the 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?

Gives explicit when-to-use conditions tied to state: while redraws are underway the status is PROCESSING, and generate_pdf only works once status is IMAGES_READY. It also names regenerate_image as the consumer of freeEditsRemaining, so the alternative tools and their gating conditions are spelled out rather than inferred.

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