Skip to main content
Glama

get_job_result

Read-onlyIdempotent

Retrieve an RQ job's result or exception info by job ID, returning null if the job doesn't exist. Truncates output to a specified byte limit with a truncated flag.

Instructions

Return a job's result/exc_info, or null if the job does not exist.

Truncated to max_bytes, with a truncated flag when that happened.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes
max_bytesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, and the description adds valuable behavioral details: truncation to max_bytes, the truncated flag, and null on missing job. This goes beyond the annotations without contradicting them.

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?

Two sentences with the primary action front-loaded and a precise secondary note on truncation. No redundancy or extraneous content; every word earns its place.

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?

The tool is simple (2 params), has an output schema, and annotations cover safety. The description covers the null case, truncation, and the flag, which is all an agent needs to call it correctly. Nothing critical is missing.

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 description coverage is 0%, so the description must compensate. It explains max_bytes through the truncation behavior, but job_id is only implicitly understood from context. While not fully exhaustive, it provides sufficient semantics for the key parameter.

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?

The description clearly states the tool's function: returning a job's result/exc_info, and specifies the null case for nonexistent jobs. This distinguishes it from sibling get_job, which likely returns broader job metadata, by focusing on the result payload specifically.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use this tool (to fetch a job's result) but does not explicitly contrast it with siblings like get_job or list_jobs. An agent is left to infer the selection criteria without explicit 'use this instead of X' guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.