Skip to main content
Glama

Recover a submitted job

get_job_by_idempotency_key
Read-onlyIdempotent

Read an existing job using the original submission key if its response was lost. A missing job may still be in flight. This tool never submits, approves, or retries an action.

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": {
      "idempotency_key": "<idempotency_key>"
    },
    "name": "get_job_by_idempotency_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
idempotency_keyYesExact idempotency key supplied with the original submission.

Output Schema

NameRequiredDescriptionDefault
idYesJob identifier.
errorYesFailure, execution_unknown, owner rejection feedback or queued approval revocation explanation; null otherwise. Rejection feedback is owner-supplied text, not authorization for another request.
inputYesValidated action input exactly as submitted.
actionYesCatalog action name, for example integration.execute.
outputYesFor writes awaiting_approval or queued: the exact approval preview bound to the owner's decision. Rejected writes retain that preview, including after a queued approval is revoked. After succeeded: the action result. Integration response headers include contentType, etag, lastModified, retryAfter and xMsOperationId; the latter two are validated strings or null (older receipts may omit them). Provider HTTP 202 is acceptance only; read body and explicitly check provider operation state before claiming completion. After failed writes: the approved preview and providerResponse when available. After execution_unknown: the approved write plus the ambiguous provider response when one was received. Other jobs may have a preserved preview or null.
statusYesawaiting_approval, queued, and running are non-terminal; succeeded, failed, rejected, and execution_unknown are terminal. An owner may revoke a queued approval, producing rejected with both approval and rejection evidence. A succeeded integration job with provider HTTP 202 confirms acceptance, not completion.
createdAtYesCreation time.
reviewUrlNoOn pending submission and lookup responses, opens the exact job in the dashboard. Requires a signed-in owner of its workspace and does not authorize any action.
updatedAtYesLast status change.
approvedAtYes
approvedByYesEmail of the owner or named reviewer who approved the write.
rejectedAtYes
rejectedByYesEmail of the owner or named reviewer who rejected the write.
sideEffectYesTrue when the action writes to an external system and therefore required approval by the owner or an assigned reviewer.
workflowIdYesCaller-supplied workflow identifier shared across related jobs.
workspaceIdYesWorkspace that owns the job.
workflowNameYesCaller-supplied workflow name shown in the dashboard.
approvalActorNoImmutable named-reviewer identity captured at approval; absent for legacy and owner decisions.
idempotencyKeyYesIdempotency key that deduplicates this submission within the workspace.
rejectionActorNoImmutable named-reviewer identity captured at rejection; absent for legacy and owner decisions.
reviewerReviewUrlNoWhile awaiting approval, opens this job for a named reviewer assigned to its connection. Requires that reviewer's separate email sign-in; the URL grants no permissions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedOutput schema / properties / approvalActor
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Immutable named-reviewer identity captured at approval; absent for legacy and owner decisions.",
      +  "properties": {
      +    "email": {
      +      "format": "email",
      +      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      +      "type": "string"
      +    },
      +    "id": {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "role": {
      +      "const": "reviewer",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "role",
      +    "name",
      +    "email"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / approvedAt / anyOf
      Previous value: -[
      -  {
      -    "description": "When a signed-in workspace owner released the write.",
      -    "format": "date-time",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "When the owner or an assigned signed-in reviewer released the write.",
      +    "format": "date-time",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / approvedBy / description
      Previous value: -"Owner who approved the write."New value: +"Email of the owner or named reviewer who approved the write."
    • changedOutput schema / properties / rejectedAt / anyOf
      Previous value: -[
      -  {
      -    "description": "When a signed-in workspace owner rejected the write.",
      -    "format": "date-time",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "When the owner or an assigned signed-in reviewer rejected the write.",
      +    "format": "date-time",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / rejectedBy / description
      Previous value: -"Owner who rejected the write."New value: +"Email of the owner or named reviewer who rejected the write."
    • addedOutput schema / properties / rejectionActor
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Immutable named-reviewer identity captured at rejection; absent for legacy and owner decisions.",
      +  "properties": {
      +    "email": {
      +      "format": "email",
      +      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      +      "type": "string"
      +    },
      +    "id": {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "role": {
      +      "const": "reviewer",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "role",
      +    "name",
      +    "email"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / reviewerReviewUrl
      Added value: +{
      +  "description": "While awaiting approval, opens this job for a named reviewer assigned to its connection. Requires that reviewer's separate email sign-in; the URL grants no permissions.",
      +  "format": "uri",
      +  "type": "string"
      +}
    • changedOutput schema / properties / sideEffect / description
      Previous value: -"True when the action writes to an external system and therefore required owner approval."New value: +"True when the action writes to an external system and therefore required approval by the owner or an assigned reviewer."
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety bar is covered. The description adds real value beyond that: it explains how to interpret a missing result ('may still be in flight') and explicitly disclaims submission, approval, and retry side effects. It stops short of stating the exact error/empty result shape, though the output schema covers returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Three short sentences, each doing distinct work: purpose, edge-case interpretation, and scope disclaimer. The purpose is front-loaded and nothing is repeated from the schema or annotations.

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 one-parameter read tool with an output schema and full annotations, the description covers what it does, when to reach for it, and what it will never do. The only remaining ambiguity is the precise not-found outcome, which is hinted at but not stated.

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?

The single parameter has full schema coverage, including a description of the exact key expected, so the schema carries the semantics. The description reinforces that the key must be the original submission key but adds no syntax, format, or edge-case detail beyond that. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Read an existing job') plus the distinctive lookup mechanism ('using the original submission key'), which separates it from a plain job getter. It does not explicitly name get_job or wait_for_job as the alternatives, so sibling routing is left partly implicit.

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?

The trigger condition is stated plainly: use it 'if its response was lost.' The negative scope sentence ('never submits, approves, or retries') also steers agents away from misuse as a retry mechanism. No explicit when-not or named alternative for in-flight jobs, though the 'may still be in flight' line gestures at waiting.

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