Skip to main content
Glama

Check and score an itinerary

score_itinerary

Evaluates a trip version out of 100 and reports blockers and warnings. Runs checks first if none exist.

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": {
      "trip_id": "<trip_id>"
    },
    "name": "score_itinerary"
  }
}

Input Schema

NameRequiredDescriptionDefault
trip_idYes
versionNo
include_rubricNo

Output Schema

NameRequiredDescriptionDefault
tripNo
rubricYes
acceptedNo
blockersYes
warningsYes
next_actionNo
preferencesNo
couldnt_checkNo
more_blockersYes
more_warningsYes
provenance_rulesNoFacts are sourced, unverified, stale or not_checked. Prices are live, estimate or none; hotel and flight prices are never estimated.
suggestions_countYes
couldnt_check_moreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

The annotations mark this as not read-only (readOnlyHint=false) but non-destructive, which would otherwise be confusing for a 'scoring' tool; the sentence 'Runs checks first if none exist' explains that the call may create check results as a side effect. It stops short of saying what is persisted, whether re-running is idempotent, or what happens to prior scores.

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?

Two tight sentences with the core behavior and the key precondition front-loaded; nothing is padded. It is arguably over-terse given the undocumented parameters, but there is no wasted wording to cut.

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

Completeness3/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 explained, and the check-first behavior is covered. However, for a tool that mutates state and has three undocumented parameters, the definition leaves meaningful gaps about version selection and the include_rubric flag.

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

Parameters2/5

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

Schema description coverage is 0% for all three parameters, so the description carries the full burden and largely fails: 'version' is only obliquely implied by 'a trip version' with no note about defaulting to latest, and 'include_rubric' is never mentioned at all. Only the trip_id notion is indirectly conveyed.

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 a specific verb (evaluates/scores) and resource (a trip version), and states the output shape: a score out of 100 plus blockers and warnings. It does not, however, distinguish this from nearby read-style siblings such as show_findings, so the agent must infer the split.

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?

It gives one useful precondition — 'Runs checks first if none exist' — which tells the agent it can call this without first running a separate check step. But there is no explicit when-to-use vs. when-not guidance, and no pointer to which sibling to use for viewing existing findings versus producing a score.

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