Skip to main content
Glama

lint_script

Checks ERPNext/Frappe script syntax before execution to catch errors early and validate custom scripts.

Instructions

Lint a script (syntax check only)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "def": "<def>"
    },
    "name": "lint_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
defYesScript definition

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does little beyond implying a read-style check. It does not say whether the script is modified, whether failures raise or are returned as a list, whether output is truncated, or what counts as a syntax error versus an ignored issue.

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?

Six words, front-loaded action, with the parenthetical doing real work by scoping the check. It is efficient rather than padded; the only weakness is that terseness edges into under-specification rather than crispness.

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 no annotations, no output schema, and a nested-object parameter, the definition needs to say more than it does. An agent still cannot predict the return shape of a lint run (error list, boolean, exception) or how it relates to the validation-oriented siblings.

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?

There is only one parameter and the schema covers it at 100%, so per the baseline this sits at 3-4. The description confirms the parameter is the script to be linted, but the nested "def" object's internal structure is undocumented in both places, leaving a small residual gap.

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?

"Lint a script" gives a specific verb and resource, and the parenthetical "syntax check only" bounds the scope so an agent knows this is not a full semantic validator. It stops short of distinguishing itself from the sibling validate_script or test_script, which is the only thing keeping it from a 5.

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?

The "syntax check only" qualifier implies when this is appropriate (a cheap syntax gate rather than deeper validation), but the description never says when to prefer validate_script or test_script, nor states any prerequisite such as the script being defined first. Usage is inferable, not stated.

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