GovTribe

Get Agent Run MCP tool

Read the status of your GovTribe research run by run_id. While the run is queued or running, each call waits up to about 20 seconds for a change, then returns its progress. Call again with the same run_id to keep waiting; runs can take up to an hour. If the run needs input, ask the user the returned questions. A completed run returns a cited Markdown answer and file manifest. The frozen price_quote and billing show the outcome fee and eventual charged or waived credits. To read a specific file, pass its file_id from the manifest. To open the original document in chat, set file_mode to original with file_id. The response embeds the file bytes. Use next_cursor to continue a text read, or download_url for a browser download. Status and file reads are free.

Examples

Use this tool with the run_id of a run you started. It is available on the GovTribe MCP server when research agents are enabled and your connection has access. Status checks and file reads use no credits. Run GovTribe research agents

Check progress

While the run is queued or running, each call waits up to about 20 seconds for it to change, then returns progress. Call again with the same run_id to keep waiting. Runs can take up to an hour of working time, so you can also tell the user and check back later. Time spent waiting for the user's answers doesn't count toward that hour. When the run returns needs_input, ask the user the returned questions and submit their answers to the same agent tool that started the run.

{
  "tool": "Get_Agent_Run",
  "arguments": {
    "run_id": "00000000-0000-4000-8000-000000000001"
  }
}

Open or download a workbook

After the run completes, copy the workbook's file_id from result.manifest.files. Set file_mode to original to receive the workbook in the same tool call. Clients that support embedded files can open it directly. For a browser download, use file.download_url. The link works without signing in for 24 hours, and for the run's owner signed in to GovTribe after that. To share it again without sign-in, repeat the call with the same IDs.

If the workbook entry also includes workspace_path, you can use that copy in a follow-on run while the workspace is live. Use a workbook in a follow-on run

{
  "tool": "Get_Agent_Run",
  "arguments": {
    "run_id": "00000000-0000-4000-8000-000000000001",
    "file_id": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "file_mode": "original"
  }
}

To read a text file in chunks, omit file_mode. The tool returns the first chunk in text. If next_cursor is present and has a value, pass it as cursor with the same run_id and file_id to continue reading. For binary files such as Excel workbooks, text and next_cursor are both null.