Skip to main content
Glama
Berrio
by Berrio

document_preflight

Read-only

Run read-only basic, web, print, or interchange preflight on SVG documents without opening linked resources.

Instructions

Runs a read-only basic, web, print, or interchange preflight without opening linked resources.

Input Schema

NameRequiredDescriptionDefault
pathYes
bleedNo
profileNobasic
workspaceIdYes

Output Schema

NameRequiredDescriptionDefault
printNo
validYes
issuesYes
profileYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / bleed
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "behavior": {
      +      "enum": [
      +        "metadata-only",
      +        "expand-temporary-page"
      +      ],
      +      "type": "string"
      +    },
      +    "bottom": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "unit": {
      +          "enum": [
      +            "mm",
      +            "cm",
      +            "in",
      +            "pt",
      +            "pc",
      +            "q"
      +          ],
      +          "type": "string"
      +        },
      +        "value": {
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "unit",
      +        "value"
      +      ],
      +      "type": "object"
      +    },
      +    "left": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "unit": {
      +          "enum": [
      +            "mm",
      +            "cm",
      +            "in",
      +            "pt",
      +            "pc",
      +            "q"
      +          ],
      +          "type": "string"
      +        },
      +        "value": {
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "unit",
      +        "value"
      +      ],
      +      "type": "object"
      +    },
      +    "right": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "unit": {
      +          "enum": [
      +            "mm",
      +            "cm",
      +            "in",
      +            "pt",
      +            "pc",
      +            "q"
      +          ],
      +          "type": "string"
      +        },
      +        "value": {
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "unit",
      +        "value"
      +      ],
      +      "type": "object"
      +    },
      +    "top": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "unit": {
      +          "enum": [
      +            "mm",
      +            "cm",
      +            "in",
      +            "pt",
      +            "pc",
      +            "q"
      +          ],
      +          "type": "string"
      +        },
      +        "value": {
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "unit",
      +        "value"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "behavior",
      +    "bottom",
      +    "left",
      +    "right",
      +    "top"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / print
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "bleed": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "behavior": {
      +          "enum": [
      +            "metadata-only",
      +            "expand-temporary-page"
      +          ],
      +          "type": "string"
      +        },
      +        "missingMm": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "bottom": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "left": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "right": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "top": {
      +              "minimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "bottom",
      +            "left",
      +            "right",
      +            "top"
      +          ],
      +          "type": "object"
      +        },
      +        "presentMm": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "bottom": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "left": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "right": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "top": {
      +              "minimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "bottom",
      +            "left",
      +            "right",
      +            "top"
      +          ],
      +          "type": "object"
      +        },
      +        "requiredMm": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "bottom": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "left": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "right": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "top": {
      +              "minimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "bottom",
      +            "left",
      +            "right",
      +            "top"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "behavior",
      +        "missingMm",
      +        "presentMm",
      +        "requiredMm"
      +      ],
      +      "type": "object"
      +    },
      +    "images": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "lowDpiCount": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "measuredCount": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "unavailableCount": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "lowDpiCount",
      +        "measuredCount",
      +        "unavailableCount"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "images"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.0.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description usefully corroborates and extends this: it repeats 'read-only' and adds the meaningful constraint that linked resources are not opened, so the caller knows external assets won't be fetched or mutated. It stops short of describing cost, error reporting, or pagination-like behaviors.

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

Conciseness5/5

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

A single front-loaded sentence with no filler; the read-only and no-linked-resource qualifiers are packed into the same clause rather than padding the description.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four parameters, a nested bleed object, and 0% schema coverage, the description is too thin: it never explains what bleed/behavior mean or how path and workspaceId are expected to be supplied. The existence of an output schema excuses it from describing return values, but the input side remains under-specified for a non-trivial tool.

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%, so the description carries the full burden, yet it only restates the profile enum values already visible in the schema. The nested bleed object (behavior enum, per-side unit/value pairs) and the workspaceId pattern requirement get no explanation at all.

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?

States a specific verb (runs) and resource (preflight) and enumerates the supported profiles (basic, web, print, interchange), which is more than a tautology. It does not explicitly distinguish itself from the sibling fonts_preflight, leaving that distinction to be inferred from the name.

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

Usage Guidelines2/5

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

There is no statement of when to run a preflight versus alternatives like document_inspect, document_page_validate, or fonts_preflight, nor any prerequisites such as when a profile should be chosen. The profile list hints at a selection decision but offers no guidance on making it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools