Skip to main content
Glama

Compare artifact versions

artifact_version_diff
Read-onlyIdempotent

Read a complete text or CSV version diff, as GET /v0/diffs: id (the version, by its own id), or artifactId alone (its current version), against the version before it; with fromVersionId (a version of the same artifact, not later), everything the versions from fromVersionId on changed, against the version before fromVersionId; with baseVersionId instead (a version of the same artifact, not later), against that version itself, as a draft artifact compares with its base (task_get latestRound.draft.artifacts[].base.versionId). Large diffs use a hash-guarded resource; deleting the base version invalidates continuations.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "artifact_version_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe version to diff, by its own id. Not with artifactId.
whyNoOptional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters.
artifactIdNoThe artifact whose current version to diff: its id, alias or page URL. Not with id.
baseVersionIdNoDiff against this version (of the same artifact, not later): a draft artifact against its base, the version a review round names. Not with fromVersionId.
fromVersionIdNoDiff the range: every change from this version (of the same artifact, not later) up to the diffed one, against the version before it. Not with baseVersionId.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. Changed1 schema field changed
    • addedInput schema / properties / why
      Added value: +{
      +  "description": "Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "diff": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "baseVersion": {
      -            "anyOf": [
      -              {
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "baseVersionId": {
      -            "anyOf": [
      -              {
      -                "format": "uuid",
      -                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "payload": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "segments": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "op": {
      -                          "enum": [
      -                            "equal",
      -                            "insert",
      -                            "delete"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "value": {
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "op",
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "type": "array"
      -                  },
      -                  "stats": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "added": {
      -                        "maximum": 9007199254740991,
      -                        "minimum": 0,
      -                        "type": "integer"
      -                      },
      -                      "removed": {
      -                        "maximum": 9007199254740991,
      -                        "minimum": 0,
      -                        "type": "integer"
      -                      }
      -                    },
      -                    "required": [
      -                      "added",
      -                      "removed"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "strategy": {
      -                    "const": "text",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "strategy",
      -                  "segments",
      -                  "stats"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "rows": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "op": {
      -                          "enum": [
      -                            "equal",
      -                            "insert",
      -                            "delete"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "value": {
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "op",
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "type": "array"
      -                  },
      -                  "stats": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "added": {
      -                        "maximum": 9007199254740991,
      -                        "minimum": 0,
      -                        "type": "integer"
      -                      },
      -                      "removed": {
      -                        "maximum": 9007199254740991,
      -                        "minimum": 0,
      -                        "type": "integer"
      -                      }
      -                    },
      -                    "required": [
      -                      "added",
      -                      "removed"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "strategy": {
      -                    "const": "rows",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "strategy",
      -                  "rows",
      -                  "stats"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "versionId": {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "versionId",
      -          "baseVersionId",
      -          "baseVersion",
      -          "payload"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "diff"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "content": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "consistency": {
      -            "const": "live-hash-guarded",
      -            "type": "string"
      -          },
      -          "mimeType": {
      -            "const": "application/json",
      -            "type": "string"
      -          },
      -          "resourceUri": {
      -            "type": "string"
      -          },
      -          "sha256": {
      -            "pattern": "^[a-f0-9]{64}$",
      -            "type": "string"
      -          },
      -          "totalBytes": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "resourceUri",
      -          "sha256",
      -          "totalBytes",
      -          "mimeType",
      -          "consistency"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "content"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "diff": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "baseVersion": {
      +            "anyOf": [
      +              {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "baseVersionId": {
      +            "anyOf": [
      +              {
      +                "format": "uuid",
      +                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "payload": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "segments": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "op": {
      +                          "enum": [
      +                            "equal",
      +                            "insert",
      +                            "delete"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "op",
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "stats": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "added": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "removed": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "unit": {
      +                        "description": "What added and removed count: words for a text diff; lines for a CSV diff, the header line included, an edited row counted as one removed and one added.",
      +                        "enum": [
      +                          "words",
      +                          "lines"
      +                        ],
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "added",
      +                      "removed",
      +                      "unit"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "strategy": {
      +                    "const": "text",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "strategy",
      +                  "segments",
      +                  "stats"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "rows": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "op": {
      +                          "enum": [
      +                            "equal",
      +                            "insert",
      +                            "delete"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "op",
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "stats": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "added": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "removed": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "unit": {
      +                        "description": "What added and removed count: words for a text diff; lines for a CSV diff, the header line included, an edited row counted as one removed and one added.",
      +                        "enum": [
      +                          "words",
      +                          "lines"
      +                        ],
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "added",
      +                      "removed",
      +                      "unit"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "strategy": {
      +                    "const": "rows",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "strategy",
      +                  "rows",
      +                  "stats"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "versionId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "versionId",
      +          "baseVersionId",
      +          "baseVersion",
      +          "payload"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "diff"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "content": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "consistency": {
      +            "const": "live-hash-guarded",
      +            "type": "string"
      +          },
      +          "mimeType": {
      +            "const": "application/json",
      +            "type": "string"
      +          },
      +          "resourceUri": {
      +            "type": "string"
      +          },
      +          "sha256": {
      +            "pattern": "^[a-f0-9]{64}$",
      +            "type": "string"
      +          },
      +          "totalBytes": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "resourceUri",
      +          "sha256",
      +          "totalBytes",
      +          "mimeType",
      +          "consistency"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "content"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed3 schema fields changed
    • changedInput schema / properties / artifactId / description
      Previous value: -"The artifact whose current version to diff: its id, alias or page URL. Not with versionId."New value: +"The artifact whose current version to diff: its id, alias or page URL. Not with id."
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The version to diff, by its own id. Not with artifactId.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • removedInput schema / properties / versionId
      Removed value: -{
      -  "description": "The version to diff, by its own id. Not with artifactId.",
      -  "format": "uuid",
      -  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -  "type": "string"
      -}
  5. Changed2 schema fields changed
    • addedInput schema / properties / baseVersionId
      Added value: +{
      +  "description": "Diff against this version (of the same artifact, not later): a draft artifact against its base, the version a review round names. Not with fromVersionId.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedInput schema / properties / fromVersionId / description
      Previous value: -"Diff the range: every change from this version (of the same artifact, not later) up to the diffed one, against the version before it."New value: +"Diff the range: every change from this version (of the same artifact, not later) up to the diffed one, against the version before it. Not with baseVersionId."
  6. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: 'Large diffs use a hash-guarded resource' and 'deleting the base version invalidates continuations', which are non-obvious operational caveats an agent cannot infer from the annotations or schema.

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?

All content sits in a single semicolon-chained sentence with heavy parenthetical nesting, which forces the reader to re-parse to separate the modes. There is little wasted information, but the structure is dense rather than front-loaded and scannable.

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 no explanation, and the description covers the four mutually exclusive input modes plus edge cases like large diffs and invalidated continuations. It is nearly complete for a read-only diff tool, with only explicit sibling routing missing.

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 the baseline is 3, but the description adds genuine semantic value on top: it explains the mutual exclusivity of id vs artifactId and fromVersionId vs baseVersionId, and frames baseVersionId around the draft/base review workflow with a concrete source for the id. It does not mention 'why' being ignored, but that parameter is fully documented in the schema.

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?

Opens with a specific verb and resource: 'Read a complete text or CSV version diff, as GET /v0/diffs', which tells an agent exactly what it gets back. It does not explicitly contrast itself with siblings like artifact_versions or artifact_get_content, so the differentiation is implicit in the verb 'diff' rather than stated.

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?

The description clearly enumerates the three selection modes: id (a version by its own id), artifactId alone (its current version), fromVersionId (range from that version forward), and baseVersionId (draft-against-base), each with the constraint 'not later'. It even points to where a base version id comes from (task_get latestRound.draft.artifacts[].base.versionId). It never states when to reach for a different tool instead, so it stops short of full alternative routing.

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.