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

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

NameRequiredDescriptionDefault
jobYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / job / properties / submission_request_id
      Added value: +{
      +  "description": "Request ID that originally allocated this job; absent in legacy metadata.",
      +  "type": "string"
      +}
  2. 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."
  3. 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"
      +  }
      +]
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false) by disclosing synchronous execution, the failed-job failure mode (null summary), bounded return behavior (first 20 splits/stops, quality, findings), pagination via next_offset, and the fact that full data lives in the output artifact. This is exactly the operational context an agent needs before invoking.

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 purpose and defaults, and most sentences carry distinct information. It is dense to the point of near run-on (the review-key sentence is hard to parse) and some return-shape detail competes with the existing output schema.

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?

For a synchronous comparison job with annotations already covering the safety profile and an output schema covering the return shape, the description covers the remaining gaps: sync behavior, failure semantics, result bounding, pagination, and the key convention for review references.

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 baseline is 3, but the description adds real semantic value: it restates the 60 m default, clarifies the parameter only affects planned-to-actual association and never triggers redetection, and reinforces that the execution artifact must be an analyzed one.

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 ('Compare plan and execution v3 CRSProf artifacts') plus the method ('full browser canonical comparison pipeline'), so the operation's identity is unambiguous. It also explicitly carves out an adjacent sibling by stating this does not redetect stops and pointing to analyze_activity instead.

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 a clear when-not ('This does not redetect stops: use analyze_activity on original GPX/FIT to change detection') and a parameter discipline rule ('override stop_association_distance_m only when requested'). It does not state entry prerequisites (e.g. that the execution artifact must already have been analyzed), so it stops short of fully explicit when-to-use guidance.

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