GovTribe

Agent run MCP response

Interpret GovTribe research agent status, clarification requests, credit quotes, completed reports, and file downloads.

Response Shape

Read the payload in structuredContent. Check the final tool result's structuredContent to distinguish completed research from a failed or expired run.

FieldTypeWhat it means
run_idUUIDUse this ID for status, clarification, or file reads.
statusstringqueued, running, needs_input, completed, failed, cancelled, or expired.
speedstringRequested processing tier on a run status response.
created_at, updated_atdate-timeWhen the run was created and last updated.
poll_after_secondsintegerDelay before checking a queued or running run again.
progressstringWhat a queued or running run is doing, and how long ago it started.
clarificationobjectQuestions to ask when status is needs_input. Use id as clarification_id, use each question's id as its key in answers, and reply before expires_at, a Unix timestamp in seconds. Some questions include suggested options.
price_quoteobjectThe maximum credits quoted for the completed outcome at the selected speed. Use credits for display. The quote also includes integer microcredits, the workflow and pricing versions, and charge_on set to completed.
billingobjectCurrent state of the outcome fee. Check state and use charged_credits and waived_credits when settlement amounts appear. Account spending rules can reduce the charge below the quote.
resultobjectA completed run includes a cited answer_markdown, evidence and limitations, a file manifest, and suggested_next_agents. Some workflows add structured findings, such as Likely Bidders candidates.
errorobjectcode and message explain a failed, cancelled, or expired run or an unsuccessful tool request.

result.manifest.files lists the report, findings, and available research data or deliverables. result.manifest.omitted lists known files or source data that could not be included and why. For example, sources/Search_User_Files with reason raw_export_unavailable means the run used that tool's results, but they can't be shared as source files. Other sources are still listed in files. Each file entry includes file_id, path, description, content_type, size_bytes, sha256, download_url, and download_expires_at. Each download_url works without signing in until its download_expires_at, 24 hours after the response. After that, the same link still works for the run's owner while signed in to GovTribe. Someone who isn't signed in is sent to sign in, and a signed-in user who doesn't own the run gets a not-found error.

result.manifest.archive gives one link to the manifest's files as a zip. GovTribe checks each file when the zip is built; a file that fails the check is left out and listed in the zip's manifest.json under omitted. That manifest.json, at the root of the zip, lists each included file's path, description, content_type, size_bytes, and sha256, plus the omissions, with no links that could stop working. The archive entry includes path, description, content_type, file_count, download_url, and download_expires_at, with the same link rules.

result.suggested_next_agents lists up to three follow-on agents the research agent recommends, or none. Each entry has the agent's tool name as agent, a request you can send as is, and a one-sentence reason. Only agents available to the connection are listed, and each suggestion is a separate paid run with its own quote.

A workbook entry can also include workspace_path. This is the path to the workbook copy added to the run's live workspace. If GovTribe could not add the copy or the workspace had already expired, the entry omits workspace_path and still includes the download link.

When you select a file, the response includes run_id, status, and the selected file with a fresh link and its workspace_path when available. With file_mode set to original, the tool also embeds the verified file bytes in its MCP content. The top-level resource_uri identifies the original file for clients that support authenticated MCP resource reads. The response also includes text and next_cursor. Both are null for binary files. The run's quote and billing fields can also be included.

Follow-up Behavior

  • For queued or running, wait the indicated interval, then call Get_Agent_Run again with the same run_id.
  • For needs_input, ask the user and submit their answers through the connection's task form or the same start tool. An ordinary reply uses run_id, clarification_id, and answers.
  • For completed, use the cited answer and choose files by file_id from the manifest. Use result.manifest.archive to download everything at once. Call Get_Agent_Run with the same run and file IDs to get a new link that works without signing in. For a paginated text read, use the returned next_cursor as cursor on the next read of the same file.
  • When result.suggested_next_agents has entries, offer them to the user and start one only if they ask. Pass the completed run_id as reuse_from_run_id to continue in the same workspace.
  • To work with a workbook copy in a new run, use the completed run_id as reuse_from_run_id and describe the task in request. Include the returned workspace_path value in the request text if you want to identify the working copy. Use the follow-on run's manifest to see which files its workflow published for download. Use a workbook in a follow-on run
  • On workspace_expired, start a fresh run with a new idempotency_key. Keep reuse_from_run_id to restore the earlier runs' saved files into a new workspace, or leave it out to start without them. Run GovTribe research agents

Failed, cancelled, and expired runs use no credits. Status checks, clarification replies, and file reads add no fee.

Example

This synthetic excerpt shows the response when you select an Excel workbook from a completed run.

{
  "run_id": "00000000-0000-4000-8000-000000000001",
  "status": "completed",
  "file": {
    "file_id": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "path": "teaming-partner-shortlist.xlsx",
    "workspace_path": "/workspace/00000000-0000-4000-8000-000000000001-teaming-partner-shortlist.xlsx",
    "description": "Editable Teaming Partner Shortlist workbook.",
    "content_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    "size_bytes": 39226,
    "sha256": "fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210",
    "download_url": "https://govtribe.com/agent-runs/00000000-0000-4000-8000-000000000001/artifacts/0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef?signature=example",
    "download_expires_at": "2026-11-12T15:15:00Z"
  },
  "resource_uri": "govtribe://agent-runs/00000000-0000-4000-8000-000000000001/files/0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef/teaming-partner-shortlist.xlsx",
  "text": null,
  "next_cursor": null
}