Skip to main content
Glama

query_failure_ledger

Read-onlyIdempotent

Query recorded failure IDs, recurring failed checks, historically broken runs, and active verification guards by path/tag or across a repo/branch/time window.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_failure_ledger"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNoOptional repository filter (e.g. 'HLIntel/Headron').
branchNoOptional branch filter (e.g. 'main').
windowNoOptional time window filter (e.g. '7d').
path_or_tagNoFile path or failure shape tag to look up (optional when repo, branch, or recent_failures is provided).
recent_failuresNoWhen true, aggregate recurring failures across recent runs matching repo/branch/window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / branch
      Added value: +{
      +  "description": "Optional branch filter (e.g. 'main').",
      +  "type": "string"
      +}
    • changedInput schema / properties / path_or_tag / description
      Previous value: -"File path or failure shape tag to look up."New value: +"File path or failure shape tag to look up (optional when repo, branch, or recent_failures is provided)."
    • addedInput schema / properties / recent_failures
      Added value: +{
      +  "description": "When true, aggregate recurring failures across recent runs matching repo/branch/window.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / repo
      Added value: +{
      +  "description": "Optional repository filter (e.g. 'HLIntel/Headron').",
      +  "type": "string"
      +}
    • addedInput schema / properties / window
      Added value: +{
      +  "description": "Optional time window filter (e.g. '7d').",
      +  "enum": [
      +    "1h",
      +    "24h",
      +    "7d",
      +    "30d"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "path_or_tag"
      -]
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered structurally. The description adds the useful behavioral detail that results are drawn from recorded history and that one mode aggregates across recent runs, but it says nothing about result volume, pagination, ordering, or how far back history actually extends.

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 front-loaded sentence that leads with the verb and the concrete artifacts returned, with zero filler. It is dense with enumerated nouns but every clause maps to a distinct queryable concept, so little could be cut without losing scope information.

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 five parameters, all optional, and no output schema, the description carries the burden of explaining what comes back, and it does so by naming the four result categories. What is missing is a sense of which combination of optional filters is required for a meaningful query, since all parameters being optional leaves the agent without a default invocation pattern.

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 the baseline is 3, but the description goes beyond the schema by establishing the alternative access modes — lookups scoped by path/tag versus broad scopes over repo/branch/time window — which tells an agent how the parameters relate rather than just what each one is. It still does not explain what a 'failure shape tag' is or how the time window interacts with repo/branch filtering.

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?

States a specific verb (query) and a specific resource family with an enumerated result set: recorded failure IDs, recurring failed checks, historically broken runs, and active verification guards. That is more than adequate to know what the tool returns, though it never distinguishes itself from any named alternative, so no sibling routing is provided.

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?

Usage is only implied: the phrase 'by path/tag or across a repo/branch/time window' hints at two lookup modes, and the schema note on path_or_tag hints at a fallback mode. There is no explicit when-to-use, when-not-to-use, or alternative tool named, and no mention of prerequisites such as whether the ledger must have been populated by earlier runs.

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