Skip to main content
Glama

Get an audit's result

get_audit_result
Read-only

The state and result of an audit started with run_audit: running, complete, unknown (the count could not be made; never reported as zero) or failed. Show a complete result as run_audit says: result.summary, the counts by category as a table, and result.next_step when it is not null, with any plans in it as a table of plan, price and when it costs less.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "audit_id": "<audit_id>"
    },
    "name": "get_audit_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
audit_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive, closed-world profile, and the description adds substantive behavior beyond that: the four possible states and the important nuance that 'unknown' means the count could not be made and is never reported as zero. It also discloses what a complete result contains (result.summary, category counts, result.next_step, plans), which goes well past the annotations.

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

Conciseness3/5

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

The first sentence is tight and front-loaded with the state enumeration, but the second is a long, clause-heavy run-on mixing retrieval facts with rendering instructions ('as a table of plan, price and when it costs less'), which is awkward to parse and partly wastes space on presentation formatting.

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?

With one required parameter and no output schema, the description compensates well by describing the return shape: state, result.summary, category counts, and result.next_step with embedded plans. The only gap is that the identity and origin of audit_id is left implicit rather than stated.

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 single audit_id parameter has 0% schema description coverage, so the description must carry the meaning. It implies provenance ('an audit started with run_audit') but never states plainly that audit_id is the identifier returned by run_audit, nor any format or length constraints already in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (an audit's state and result) and ties it to the producer, run_audit, which lets an agent separate this read from the sibling that starts the audit. It stops short of an explicit retrieval verb, opening with a noun phrase, but the intent is still unambiguous.

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

Usage Guidelines4/5

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

The clause 'of an audit started with run_audit' establishes the workflow condition under which this tool applies, so an agent knows to call it after run_audit rather than instead of it. No explicit when-not guidance or polling cadence is given, but the context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources