Skip to main content
Glama

cortex_get_job_report

Retrieve the complete report for a completed analysis job by providing the job ID.

Instructions

Get the full report of a completed analysis job

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobIdYesThe job ID to get the report for

Implementation Reference

  • Handler function for the 'cortex_get_job_report' tool. Calls client.getJobReport(jobId) and returns the report as JSON. Handles errors with isError flag.
    server.tool(
      "cortex_get_job_report",
      "Get the full report of a completed analysis job",
      {
        jobId: z.string().describe("The job ID to get the report for"),
      },
      async ({ jobId }) => {
        try {
          const report = await client.getJobReport(jobId);
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(report, null, 2),
              },
            ],
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text" as const,
                text: `Error getting job report: ${error instanceof Error ? error.message : String(error)}`,
              },
            ],
            isError: true,
          };
        }
      },
  • Input schema for the 'cortex_get_job_report' tool - requires a single 'jobId' string parameter.
    {
      jobId: z.string().describe("The job ID to get the report for"),
  • src/tools/jobs.ts:5-8 (registration)
    The registerJobTools function that registers the tool on the McpServer. Called from src/index.ts line 35.
    export function registerJobTools(
      server: McpServer,
      client: CortexClient,
    ): void {
  • src/index.ts:34-36 (registration)
    Registration call in main entry point - registerJobTools(server, client) is invoked to register all job tools.
    registerAnalyzerTools(server, client);
    registerJobTools(server, client);
    registerResponderTools(server, client);
  • The client.getJobReport method called by the handler. Makes a GET request to /api/job/{jobId}/report.
    async getJobReport(jobId: string): Promise<JobReport> {
      return this.request<JobReport>(
        `/job/${encodeURIComponent(jobId)}/report`,
      );
    }
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It only states the tool gets a report but omits side effects, permissions, or behavior for incomplete jobs. Minimal information.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single efficient sentence conveys the core purpose with no redundancy. Could include more detail but remains appropriately concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, and the description does not explain what the 'full report' contains, its format, or any pagination. Given the tool's importance, more contextual detail is needed.

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 100% for the single parameter 'jobId'. The description adds no additional meaning, but the schema already suffices. Baseline score applies.

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 verb 'Get' and the resource 'full report of a completed analysis job', distinguishing it from sibling tools like cortex_get_job (status) and cortex_get_job_artifacts (artifacts). It is specific and unambiguous.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. Siblings like cortex_get_job, cortex_get_job_artifacts, and cortex_wait_and_get_report exist, but the description provides no context for selection.

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

Install Server

Other Tools

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/solomonneas/cortex-mcp'

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