Skip to main content
Glama

Quant Swarm Audit — Deterministic Quote & Approval Token

audit.quote
Read-onlyIdempotent

Prices a validated preflight manifest before execution, returning a deterministic plan, runtime estimate, exact credit/GBP cost, and input-bound approval token.

Instructions

Prices a validated preflight manifest before execution. Returns the deterministic execution plan, runtime estimate, exact credit/GBP cost, and an input-bound approval_token.

Input Schema

NameRequiredDescriptionDefault
modeNoExecution mode: 'local' (0 credits, £0.00) or 'hosted' (20 credits).local
trades_pathNoOptional trades path.
trades_rowsNoOptional inline trades rows.
preflight_idNoPreflight ID returned by `audit.preflight`.
random_seedsNoDeterministic bootstrap seeds (default [0, 1, 2, 3, 4]).
returns_pathNoOptional returns path if calling quote directly without preflight_id.
returns_rowsNoOptional inline returns rows if calling quote directly.
strategy_nameNoStrategy identifier.candidate_strategy
benchmark_pathNoOptional benchmark path.
benchmark_rowsNoOptional inline benchmark rows.
cost_assumptionsNoOptional inline cost assumptions dict.
features_manifestNoOptional inline feature manifest dict.
cost_assumptions_pathNoOptional cost assumptions JSON path.
features_manifest_pathNoOptional feature manifest JSON path.

Output Schema

NameRequiredDescriptionDefault
howNo
modeNo
toolNo
errorNo
accessNo
job_idNo
reasonNo
statusNo
metricsNo
eligibleNo
findingsNo
gbp_costNo
job_id_aNo
job_id_bNo
next_stepNo
strategy_aNo
strategy_bNo
html_reportNo
max_creditsNo
credits_costNo
generated_atNo
input_sha256No
metrics_diffNo
new_warningsNo
preflight_idNo
random_seedsNo
has_benchmarkNo
strategy_nameNo
written_filesNo
approval_tokenNo
execution_planNo
input_sha256_aNo
input_sha256_bNo
trades_summaryNo
artifact_hashesNo
coverage_matrixNo
credits_chargedNo
idempotency_keyNo
markdown_reportNo
package_versionNo
returns_summaryNo
assessment_afterNo
cost_assumptionsNo
headline_metricsNo
not_tested_countNo
required_creditsNo
assessment_beforeNo
idempotent_replayNo
request_access_atNo
resolved_findingsNo
validation_errorsNo
counts_by_categoryNo
overall_assessmentNo
finding_transitionsNo
remediation_verdictNo
has_features_manifestNo
not_investment_adviceNo
outbound_data_previewNo
reproducibility_bundleNo
estimated_runtime_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, so the safety burden is covered. The description adds genuine context beyond them: the pricing is deterministic (seeded bootstrap implied by the schema) and the returned approval_token is 'input-bound', which tells an agent that changing inputs invalidates the token — a behaviorally important detail not present in 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.

Conciseness5/5

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

Two short sentences with zero filler. The primary action is front-loaded and the return values are grouped in one clause.

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?

An output schema exists, so the tool is not obliged to spell out return values, and it does so only in summary. For a 14-parameter tool with fully documented schema, what remains unsaid — which of preflight_id versus the direct path/rows inputs to supply — is covered by the parameter descriptions themselves.

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%, so all 14 parameters are documented in the schema itself, including mode, preflight_id, and the *_path/*_rows pairs. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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 opens with a specific verb+resource ('Prices a validated preflight manifest before execution') and enumerates the four things it produces: execution plan, runtime estimate, credit/GBP cost, and approval_token. That separates it from audit.run (which presumably executes) and audit.preflight (which validates), though neither sibling is named explicitly.

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

Usage Guidelines3/5

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

The phrase 'before execution' and the precondition 'validated preflight manifest' imply the point in the workflow where this tool belongs, but the description never states when NOT to use it or names audit.run / audit.preflight as the alternatives. The routing is inferable from the workflow framing rather than stated.

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