Skip to main content
Glama

IA-QA — 130+ QA & Dev Tools for AI Agents

validate_agent_trajectory

Read-onlyIdempotent

Run declarative assertions on an agent trace (OpenAI tool-call messages, Anthropic tool_use/tool_result blocks, LangChain run trees, or plain text ReAct logs). No LLM call — deterministic. Assertion types: order (tool A before B), must_call, must_not_call, max_calls, min_calls, no_error, recovery (agent completes a successful step after its last error). A step counts as errored when the trace says so — is_error/isError, status/state in {error,failed,exception,…}, an error field, a JSON body with error/success:false — or when its text payload STARTS with an error marker (Error:, Traceback, TypeError:). Model prose is never scanned for keywords, and every errored step reports error_signal naming what flagged it. Returns per-assertion PASS/FAIL, parsed steps, warnings (a trace parsing to 0 steps is flagged — assertions passing on emptiness prove nothing), and an overall verdict. Use this to gate CI/CD on agent behavior correctness.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
traceYesAgent execution trace as JSON (OpenAI messages array, LangChain run tree) or plain text log (Thought/Action/Observation format).
formatNoTrace format. auto (default) detects automatically.
assertionsYesList of assertions to validate against the trace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsNo
resultsNo
summaryNo
verdictNo
warningsNo

TDQS

A4.6/5.0
Behavior5/5

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

The description adds substantial behavioral detail beyond annotations: it states 'No LLM call — deterministic' (confirming annotations), explains error detection heuristics in depth (error markers, status fields, text prefixes), notes that 'Model prose is never scanned for keywords', and warns that a trace parsing to 0 steps is flagged. This exceeds the readOnly/idempotent hints and provides actionable transparency.

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?

The description is a single dense paragraph that efficiently packs key information: input formats, assertion types, error detection, outputs, and usage intent. It is not overly verbose for the complexity it covers, though it could be broken into bullet points for readability. It earns its place without fluff.

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

Completeness5/5

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

Given the complex input (trace) and seven assertion types, the description is comprehensive. It explains error detection behaviors, return values (per-assertion PASS/FAIL, parsed steps, warnings, verdict), and a caution about empty traces. With an output schema present and annotations covering safety, the description leaves no significant gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds meaning by explaining error detection logic and assertion semantics beyond the schema's brief field descriptions, such as how 'errored' is determined and that warnings are returned. This enhances understanding of the 'trace' and 'assertions' parameters.

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 tool runs declarative assertions on an agent trace, enumerates supported trace formats (OpenAI, Anthropic, LangChain, ReAct) and lists specific assertion types (order, must_call, etc.). It distinguishes from siblings by focusing on agent trajectory validation rather than generic validation tools like validate_email or validate_url.

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 description explicitly says 'Use this to gate CI/CD on agent behavior correctness', providing a clear use case. It doesn't name specific alternatives, but the purpose is distinct from other validate* tools, and the context is sufficient for an agent to select it.

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.

TDQS

A3.6/5.0
Disambiguation2/5

Multiple tools overlap significantly: compare_models/llm_fit_finder/model_info/list_llm_models all compare models; similarity_score/embedding_similarity/run_semantic_tests all measure text similarity; detect_secrets/secret_scan/analyze_diff_bugs/pr_gatekeeper all scan for secrets. Descriptions attempt to differentiate, but the boundaries between many tools are unclear, making selection error-prone.

Naming Consistency4/5

The vast majority of tools follow a snake_case verb_noun pattern (validate_email, generate_uuid, parse_csv), making the set mostly predictable. A few notable deviations exist (pr_gatekeeper, llm_fit_finder, cot_analyzer, jira_to_test_suite, needle_haystack_generate) but they are the exception rather than the rule.

Tool Count1/5

With 149 tools, this set is far beyond the 50+ threshold for an extreme mismatch. Even as a general-purpose QA & Dev toolkit, the sheer number overwhelms and exceeds any reasonable scope, making discovery and selection impractical.

Completeness4/5

The toolkit covers an impressively broad range: text processing, LLM evaluation, security auditing, web checks, MCP validation, Jira/Confluence integration, and more. Minor gaps exist, such as missing delete/update for webhooks and Confluence pages, and no create/update for Jira issues, but these are workable around.

Resources