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 / job / properties / result_artifacts / items / properties / download_url / description
      Previous value: -"Private short-lived download URL. Share only with the user."New value: +"Artifact download URLs are private and short-lived; share them only with the user, verbatim in a code block, not a clickable link. Ask the user to copy the entire URL into their browser address bar. Do not rewrite the URL or add tracking parameters such as utm_source: changes invalidate the signature. If expired, call get_artifact for a fresh URL. This applies only to artifact download_url values, not authorization or upload links."
  2. 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"
      +  }
      +]
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations are all false, so the description carries the burden. It discloses that it runs synchronously, failed jobs return null summary, and results are bounded with pagination. It also clarifies that it does not redetect stops and that findings are shared with the UI. This is detailed, though it could mention any side effects (though likely none) or more explicit return structure.

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 longer than typical but every sentence carries value. It front-loads the core purpose and then packs in behavioral details, key conventions, and pagination advice. No filler or repetition; the density is justified by the tool's complexity.

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?

With an output schema present, the description doesn't need to detail the entire return type, but it explains the bounded summary (first 20 splits/stops, quality, server-owned findings) and points to the artifact for full data. It includes key naming conventions (segment-N, stop-N, split-N). This is complete for an agent to call and interpret results correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds some context for stop_association_distance_m by stating it is association-only and defaulting to 60 metres, but this is already in the schema. It does not add significant new semantic meaning beyond what the schema provides.

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 states the exact action: 'Compare plan and execution v3 CRSProf artifacts with the full browser canonical comparison pipeline.' This is a specific verb+resource, and the tool name 'compare_execution' aligns perfectly. It is also clearly distinct from siblings like analyze_activity or assess_finish_time_goal, which focus on different aspects.

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?

Provides explicit usage guidance: advises to override stop_association_distance_m only when requested, and explicitly says 'use analyze_activity on original GPX/FIT to change detection' as an alternative. It also explains how to paginate with inspection next_offset, covering when and how to use the tool versus alternatives.

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