Skip to main content
Glama

Compare execution against plan

compare_execution

Compare plan and execution v3 CRSProf artifacts with the full browser canonical comparison pipeline. Association defaults to 60 metres; override stop_association_distance_m only when requested. This does not redetect stops: use analyze_activity on original GPX/FIT to change detection. Returns job and bounded summary: first 20 splits/stops, quality, and server-owned findings shared with the UI. Largest split deltas exclude separate dwell; matched planned stops are not unplanned. Follow inspection next_offset for more rows. Full geometry, chronology and complete review references remain in the output artifact. Review keys segment-N/stop-N identify canonical segment N; split-N identifies split N within summary.artifact_id. Runs synchronously; failed jobs have null summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plan_artifact_idYesPlan v3 CRSProf artifact ID.
execution_artifact_idYesAnalyzed execution v3 CRSProf artifact ID.
stop_association_distance_mNoPlanned-to-actual stop association only; no redetection.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / summary / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "artifact_id": {
      -        "description": "Output artifact owning all local review row keys.",
      -        "type": "string"
      -      },
      -      "quality": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "axis": {
      -            "description": "Source distance axis.",
      -            "type": "string"
      -          },
      -          "excluded_unknown_duration_count": {
      -            "type": "integer"
      -          },
      -          "limit": {
      -            "type": "integer"
      -          },
      -          "next_offset": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "offset": {
      -            "type": "integer"
      -          },
      -          "query": {
      -            "description": "Requested inspection view.",
      -            "type": "string"
      -          },
      -          "rows": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "type": "array"
      -          },
      -          "total_matches": {
      -            "type": "integer"
      -          },
      -          "warnings": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "query",
      -          "axis",
      -          "offset",
      -          "limit",
      -          "total_matches",
      -          "excluded_unknown_duration_count",
      -          "next_offset",
      -          "rows",
      -          "warnings"
      -        ],
      -        "type": "object"
      -      },
      -      "review": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "splits": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "axis": {
      -            "description": "Source distance axis.",
      -            "type": "string"
      -          },
      -          "excluded_unknown_duration_count": {
      -            "type": "integer"
      -          },
      -          "limit": {
      -            "type": "integer"
      -          },
      -          "next_offset": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "offset": {
      -            "type": "integer"
      -          },
      -          "query": {
      -            "description": "Requested inspection view.",
      -            "type": "string"
      -          },
      -          "rows": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "type": "array"
      -          },
      -          "total_matches": {
      -            "type": "integer"
      -          },
      -          "warnings": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "query",
      -          "axis",
      -          "offset",
      -          "limit",
      -          "total_matches",
      -          "excluded_unknown_duration_count",
      -          "next_offset",
      -          "rows",
      -          "warnings"
      -        ],
      -        "type": "object"
      -      },
      -      "stops": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "axis": {
      -            "description": "Source distance axis.",
      -            "type": "string"
      -          },
      -          "excluded_unknown_duration_count": {
      -            "type": "integer"
      -          },
      -          "limit": {
      -            "type": "integer"
      -          },
      -          "next_offset": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "offset": {
      -            "type": "integer"
      -          },
      -          "query": {
      -            "description": "Requested inspection view.",
      -            "type": "string"
      -          },
      -          "rows": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "type": "array"
      -          },
      -          "total_matches": {
      -            "type": "integer"
      -          },
      -          "warnings": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "query",
      -          "axis",
      -          "offset",
      -          "limit",
      -          "total_matches",
      -          "excluded_unknown_duration_count",
      -          "next_offset",
      -          "rows",
      -          "warnings"
      -        ],
      -        "type": "object"
      -      },
      -      "units": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "warnings": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "artifact_id",
      -      "units",
      -      "warnings",
      -      "review",
      -      "splits",
      -      "stops",
      -      "quality"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "artifact_id": {
      +        "description": "Output artifact owning all local review row keys.",
      +        "type": "string"
      +      },
      +      "quality": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "axis": {
      +            "description": "Source distance axis.",
      +            "type": "string"
      +          },
      +          "excluded_unknown_duration_count": {
      +            "type": "integer"
      +          },
      +          "limit": {
      +            "type": "integer"
      +          },
      +          "next_offset": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "offset": {
      +            "type": "integer"
      +          },
      +          "query": {
      +            "description": "Requested inspection view.",
      +            "type": "string"
      +          },
      +          "rows": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "maxItems": 100,
      +            "type": "array"
      +          },
      +          "terrain_classification_status": {
      +            "enum": [
      +              "complete",
      +              "partial",
      +              "unavailable",
      +              "not_applicable"
      +            ],
      +            "type": "string"
      +          },
      +          "terrain_flat_grade_threshold": {
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "total_matches": {
      +            "type": "integer"
      +          },
      +          "unavailable_terrain_segment_count": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "warnings": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "query",
      +          "axis",
      +          "offset",
      +          "limit",
      +          "total_matches",
      +          "excluded_unknown_duration_count",
      +          "next_offset",
      +          "rows",
      +          "warnings"
      +        ],
      +        "type": "object"
      +      },
      +      "review": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "splits": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "axis": {
      +            "description": "Source distance axis.",
      +            "type": "string"
      +          },
      +          "excluded_unknown_duration_count": {
      +            "type": "integer"
      +          },
      +          "limit": {
      +            "type": "integer"
      +          },
      +          "next_offset": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "offset": {
      +            "type": "integer"
      +          },
      +          "query": {
      +            "description": "Requested inspection view.",
      +            "type": "string"
      +          },
      +          "rows": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "maxItems": 100,
      +            "type": "array"
      +          },
      +          "terrain_classification_status": {
      +            "enum": [
      +              "complete",
      +              "partial",
      +              "unavailable",
      +              "not_applicable"
      +            ],
      +            "type": "string"
      +          },
      +          "terrain_flat_grade_threshold": {
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "total_matches": {
      +            "type": "integer"
      +          },
      +          "unavailable_terrain_segment_count": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "warnings": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "query",
      +          "axis",
      +          "offset",
      +          "limit",
      +          "total_matches",
      +          "excluded_unknown_duration_count",
      +          "next_offset",
      +          "rows",
      +          "warnings"
      +        ],
      +        "type": "object"
      +      },
      +      "stops": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "axis": {
      +            "description": "Source distance axis.",
      +            "type": "string"
      +          },
      +          "excluded_unknown_duration_count": {
      +            "type": "integer"
      +          },
      +          "limit": {
      +            "type": "integer"
      +          },
      +          "next_offset": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "offset": {
      +            "type": "integer"
      +          },
      +          "query": {
      +            "description": "Requested inspection view.",
      +            "type": "string"
      +          },
      +          "rows": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "maxItems": 100,
      +            "type": "array"
      +          },
      +          "terrain_classification_status": {
      +            "enum": [
      +              "complete",
      +              "partial",
      +              "unavailable",
      +              "not_applicable"
      +            ],
      +            "type": "string"
      +          },
      +          "terrain_flat_grade_threshold": {
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "total_matches": {
      +            "type": "integer"
      +          },
      +          "unavailable_terrain_segment_count": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "warnings": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "query",
      +          "axis",
      +          "offset",
      +          "limit",
      +          "total_matches",
      +          "excluded_unknown_duration_count",
      +          "next_offset",
      +          "rows",
      +          "warnings"
      +        ],
      +        "type": "object"
      +      },
      +      "units": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "warnings": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "artifact_id",
      +      "units",
      +      "warnings",
      +      "review",
      +      "splits",
      +      "stops",
      +      "quality"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

The description discloses key runtime behavior: synchronous execution, null summary on failure, bounded result size, and first-20 limit. It goes beyond the basic annotations by explaining failure mode and output boundaries, though it does not explicitly describe side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The description is dense and includes several nuanced statements, such as 'Largest split deltas exclude separate dwell' and 'server-owned findings shared with the UI.' While most sentences add information, the phrasing is verbose and some points could be consolidated without losing meaning.

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?

Given the presence of an output schema, the description adequately covers purpose, key parameters, output boundaries, failure behavior, and a relevant sibling alternative. It does not need to enumerate output fields but provides enough contextual detail for correct usage.

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 descriptions cover all parameters, and the description adds valuable semantics such as 'Analyzed execution' and 'Planned-to-actual stop association only; no redetection.' Defaults and constraints are already present in the schema, so the incremental description is helpful but not extensive.

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?

Clearly states that the tool compares plan and execution artifacts using a 'canonical comparison pipeline' and identifies the specific task. Minor jargon like 'full browser canonical comparison pipeline' adds some vagueness, but the core purpose is unambiguous.

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

Usage Guidelines5/5

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

Explicitly instructs when to override the default association distance and points to analyze_activity as the alternative for stop redetection. This gives clear guidance on when to use this tool versus a sibling, with no ambiguity.

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