Skip to main content
Glama
viajante

viajante

Verify draft answer

verify_answer
Read-onlyIdempotent

Validates draft travel replies against recent search results, flagging quoted fares, dates, airport codes, and links that no recorded search returned so you can drop or re-search them before sending.

Instructions

Check a draft reply against this process's recent search payloads.

Call before sending a reply that quotes fares, stays, dates, airport codes, or links. Lists each amount, currency, IATA code, ISO date, and URL in the draft that no recorded search returned. Drop or re-search every unowned row; do not quote it as found. Sums you computed are unowned unless a payload carries them (e.g. trip_total). Local; may run during a search.

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": {
      "answer": "<answer>"
    },
    "name": "verify_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYes

Output Schema

NameRequiredDescriptionDefault
statusYes
empty_noteYes
error_codeYes
observed_atYes
retry_afterYes
completenessYes
empty_reasonYes
completeness_noteYes
observed_at_basisYes
retry_after_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.7
    • addedOutput schema / properties / completeness_note
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "status",
      -  "completeness",
      -  "empty_reason",
      -  "empty_note",
      -  "error_code",
      -  "retry_after",
      -  "retry_after_seconds",
      -  "observed_at",
      -  "observed_at_basis"
      -]New value: +[
      +  "status",
      +  "completeness",
      +  "empty_reason",
      +  "empty_note",
      +  "completeness_note",
      +  "error_code",
      +  "retry_after",
      +  "retry_after_seconds",
      +  "observed_at",
      +  "observed_at_basis"
      +]
  2. Changed3 schema fields changedv1.5.2
    • removedInput schema / properties / answer / title
      Removed value: -"Answer"
    • removedInput schema / title
      Removed value: -"verify_answerArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "completeness": {
      +      "enum": [
      +        "complete",
      +        "partial",
      +        "blocked"
      +      ],
      +      "type": "string"
      +    },
      +    "empty_note": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "empty_reason": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "provider_empty",
      +            "filtered_out",
      +            "not_loaded"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "error_code": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "observed_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "observed_at_basis": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "provider",
      +            "fetch"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "retry_after": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "retry_after_seconds": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "no_results",
      +        "rate_limited",
      +        "blocked",
      +        "timeout",
      +        "failed"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "completeness",
      +    "empty_reason",
      +    "empty_note",
      +    "error_code",
      +    "retry_after",
      +    "retry_after_seconds",
      +    "observed_at",
      +    "observed_at_basis"
      +  ],
      +  "type": "object"
      +}
  3. Addedv1.4.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so the safety profile is covered. The description adds context the annotations cannot: 'Local; may run during a search,' which tells the agent this is a cheap local check callable alongside a search. It also explains the semantics of the output rows (unowned = not returned by any recorded search) and the edge case that computed sums are unowned unless a payload carries them.

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?

Front-loaded with the one-line purpose, then trigger, then remediation steps, then operational notes. Every sentence carries information. Slight cost from the hard-wrapped formatting and the trailing 'Local; may run during a search' fragment, which reads as an afterthought.

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 return values need not be described, and the description still tells the agent how to interpret unowned rows. For a single-parameter local verification tool this covers what an agent needs. Minor gap: no guidance on how much recent history the 'recent search payloads' window covers, which affects whether old quotes are judged unowned.

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 0% and the single parameter 'answer' has no schema description, so the description carries the burden. It compensates by making clear the parameter is the draft reply text and by specifying which token classes inside it are extracted and verified, plus the caveat about derived sums such as trip_total. It never explicitly says the input must be plain reply text rather than structured data, so it is not a 5.

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?

States a specific verb and resource: 'Check a draft reply against this process's recent search payloads.' It then enumerates precisely what is checked (amounts, currency, IATA codes, ISO dates, URLs), which distinguishes it from siblings like validate_itinerary or recheck_offer that operate on itineraries or live offers rather than reply text.

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?

Gives an explicit trigger ('Call before sending a reply that quotes fares, stays, dates, airport codes, or links') and an explicit follow-up action ('Drop or re-search every unowned row; do not quote it as found'). It does not name a sibling alternative or a when-not-to-call case, which keeps it below a 5.

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