Skip to main content
Glama

check_aeo_audit_status

Monitor AEO audit progress by polling status until free preview is ready or full report is complete, handling pending paid pipeline checks.

Instructions

Check status of an AEO audit. Poll until free_preview_ready (free) or is_complete at full report (paid). If paid_pipeline_pending is true, keep polling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
auditIdYesThe audit ID returned from run_aeo_audit

Implementation Reference

  • The `check_aeo_audit_status` tool handler function that fetches the status of an AEO audit from the AgentAEO API using the provided `auditId`.
    server.tool(
      "check_aeo_audit_status",
      "Check status of an AEO audit. Poll until free_preview_ready (free) or is_complete at full report (paid). If paid_pipeline_pending is true, keep polling.",
      {
        auditId: z.string().describe("The audit ID returned from run_aeo_audit"),
      },
      async ({ auditId }) => {
        try {
          const res = await fetch(`${API_BASE}/api/aeo-status/${auditId}`, {
            method: "GET",
            headers: {
              "X-API-Key": apiKey,
            },
          });
          const data = (await res.json()) as Record<string, unknown>;
          if (!res.ok) {
            const err = (data?.error as string) || (data?.message as string) || `HTTP ${res.status}`;
            return {
              content: [{ type: "text" as const, text: `Error: ${err}` }],
              isError: true,
            };
          }
          const status = (data?.status as string) ?? (data?.current_step != null ? "processing" : "unknown");
          const isComplete = (data?.is_complete as boolean) ?? (data?.status === "completed");
          const freePreviewReady = (data?.free_preview_ready as boolean) === true;
          const paidPipelinePending = (data?.paid_pipeline_pending as boolean) === true;
          let text =
            `Status: ${status}\n` +
            `current_step: ${data?.current_step ?? "?"}\n` +
            `is_complete: ${isComplete}\n` +
            `free_preview_ready: ${freePreviewReady}\n` +
            `paid_pipeline_pending: ${paidPipelinePending}\n`;
          if (data?.score != null) text += `Score: ${data.score}\n`;
          if (data?.grade) text += `Grade: ${data.grade}\n`;
          text += `\nRaw response:\n${JSON.stringify(data, null, 2)}`;
          return {
            content: [{ type: "text" as const, text }],
          };
        } catch (err) {
          const msg = err instanceof Error ? err.message : String(err);
          return {
            content: [{ type: "text" as const, text: `Error: ${msg}` }],
            isError: true,
          };
        }
      }
    );
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the tool's polling behavior, including conditions for free vs. paid audits and handling of pending states. However, it doesn't mention error handling, timeout limits, or authentication requirements, leaving some behavioral aspects unspecified.

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

Conciseness5/5

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

The description is extremely concise and front-loaded, consisting of just two sentences that efficiently convey the tool's purpose and critical usage guidelines. Every word earns its place, with no redundant information or unnecessary elaboration.

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?

Given the tool's polling complexity and lack of annotations/output schema, the description does well by explaining the polling logic and conditions. However, it doesn't describe what the status response looks like or potential error states, which would be helpful for an agent to interpret results. The completeness is good but not perfect for a polling tool.

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?

The schema description coverage is 100%, with the single parameter 'auditId' well-documented in the schema as 'The audit ID returned from run_aeo_audit'. The description doesn't add any additional parameter semantics beyond what the schema provides, so it meets the baseline of 3 for high schema coverage.

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 'check' and resource 'status of an AEO audit', making the purpose specific. It distinguishes from siblings by focusing on audit status rather than content suite operations (like generate_aeo_content_suite) or running audits (run_aeo_audit).

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

Usage Guidelines5/5

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

The description explicitly provides usage guidance: 'Poll until free_preview_ready (free) or is_complete at full report (paid). If paid_pipeline_pending is true, keep polling.' This tells the agent when to use this tool (for polling audit status) and provides specific conditions for continuing polling, which is crucial for understanding its role versus alternatives.

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/agentaeo/agentaeo-mcp-server'

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