Skip to main content
Glama

submit_job

Starts an OCR job for a quoted document using a human-confirmed budget, then optionally waits and saves the result as JSON, text, Markdown, hOCR, or PDF.

Instructions

Start the job of a quote (document, pipeline and price are bound to the quote_id; the budget is the quoted price). You are asked to set human_confirmed=true only after the human saw say_to_human and really agreed (the server cannot check it); if the client can ask the human itself it asks when you leave it false. With wait_seconds and format the result is saved like get_result. Without wait_seconds it returns at once: use job_status, keep the job_id.

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": {
      "quote_id": "<quote_id>"
    },
    "name": "submit_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNojson, text, md, hocr or pdf: save the result when done (needs wait_seconds)
out_dirNofolder for the result file; not allowed if the human set OCR_OUT_DIR
quote_idYesfrom quote; valid for one job, one hour
client_refNoyour own reference, kept with the job
wait_secondsNo0 to 300: hold until the job is done; 0 returns at once
human_confirmedNotrue only after the human saw say_to_human and agreed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavior: starting a job spends the quoted price as the budget, human_confirmed is trust-based and unverifiable by the server (the client may prompt the human when left false), and the call is synchronous only when wait_seconds is set. It omits failure modes such as expired quotes or duplicate submissions, and says nothing about reversibility despite a cancel_job sibling existing.

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?

Purpose and the money-spend consequence are correctly front-loaded, and there is no filler. However, the human_confirmed sentence is a run-on ("if the client can ask the human itself it asks when you leave it false") that needs re-reading, and it depends on an external referent, say_to_human, never defined here.

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 6-parameter mutation tool with no annotations and no output schema, the description covers the important ground: cost implication, sync vs async return, and the follow-up path via job_status. It does not state what identifier is returned or what errors look like, which leaves a small gap for an agent calling it blind.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema: the client-side human-interaction protocol for human_confirmed, and the coupling that format only yields a saved file when wait_seconds is used, with the output mirroring get_result. Only out_dir and client_ref are left to the schema alone.

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?

"Start the job of a quote" is a specific verb+resource, and the parenthetical clarifies that document, pipeline and price are bound to quote_id so no other inputs are needed. It is clearly distinguishable from job_status and get_result, which are named as follow-ups rather than substitutes.

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?

It gives concrete branching rules: use wait_seconds+format to get a saved result, omit wait_seconds to return immediately and then poll with job_status while keeping job_id. It also states the condition for setting human_confirmed=true. It lacks a when-not-to-use case (e.g. when to cancel or re-quote instead), so not a 5.

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