Skip to main content
Glama

agent-status

Check the status of a running agent job on the LLM Conveyors platform to monitor progress and retrieve results.

Instructions

Check the status of a running agent job.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentTypeYesAgent type
jobIdYesJob ID returned from a generate call

Implementation Reference

  • The implementation of the "agent-status" MCP tool within the registerAgentTools function, which uses the client.agents.getStatus method to retrieve the status of an agent job.
    // --- Agent status polling ---
    server.tool(
      "agent-status",
      "Check the status of a running agent job.",
      {
        agentType: z.enum(["job-hunter", "b2b-sales"]).describe("Agent type"),
        jobId: z.string().describe("Job ID returned from a generate call"),
      },
      async (params) => {
        try {
          const result = await client.agents.getStatus(params.agentType, params.jobId, {
            include: ["logs", "artifacts"],
          });
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (err) {
          const message = err instanceof Error ? err.message : String(err);
          return { content: [{ type: "text", text: `Error: ${message}` }], isError: true };
        }
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ebenezer-isaac/llmconveyors-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server