Skip to main content
Glama

validate_file

Validate a single R or Quarto file to catch structure, style, security, and documentation issues, with optional filters for categories, severity, and finding count.

Instructions

Validate a single R or Quarto file. Optional filters narrow the returned findings; the summary always counts all findings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile path to validate
categoriesNoOnly return findings in these categories (omit for all categories)
maxFindingsNoReturn at most this many findings after other filters (1-1000). The summary still counts all findings.
minSeverityNoOnly return findings at least this severe (critical > important > recommended > info)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses the filter/summary interaction ('filters narrow the returned findings; the summary always counts all findings'), but this is also stated in the maxFindings schema description, and nothing is said about read-only nature, permissions, or error behavior.

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?

Two tight sentences, no waste, and the core action is front-loaded before the filtering caveat. Every clause earns its place.

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?

For a read-style validation tool with no output schema and no annotations, the description covers the action and the one non-obvious output behavior (summary counts are unaffected by filters). It does not sketch the shape of a finding or severity semantics, but the schema covers severity levels and the gap is minor.

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 schema already documents path, categories, maxFindings and minSeverity including their defaults and bounds. The description's generic 'optional filters' adds no syntax or format detail beyond that, which is the expected baseline when the schema does the heavy lifting.

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 and resource ('Validate a single R or Quarto file') and the scope word 'single' implicitly separates it from the sibling validate_project. It stops short of naming that sibling explicitly, so the differentiation is inferred 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 Guidelines3/5

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

Usage is only implied: the 'single file' framing suggests when this applies versus project-level validation, but there is no explicit when-to-use, when-not-to-use, or alternative named. Adequate but leaves the routing decision to inference.

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