Skip to main content
Glama

TeX402 Fast LaTeX Linter ($0.002 USDC)

tex402_lint
Idempotent

Validate LaTeX (.tex) syntax and ChkTeX rules in <300ms via POST /v1/lint ($0.002 USDC via x402) without rendering a PDF. Attach x402 payment via _meta['x402/payment'] or Payment-Signature header, or run npx -y tex402-mcp locally.

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": {
      "main_tex": "<main_tex>"
    },
    "name": "tex402_lint"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoOptional map of safe relative project paths (e.g. 'refs.bib', 'macros.sty') to UTF-8 strings or 'base64:...' binary payloads
engineNoTeX engine for draft validation ('pdflatex' or 'xelatex')pdflatex
main_texYesRoot LaTeX document source code (.tex) to lint and validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: sub-300ms latency, a $0.002 USDC charge, the x402 payment mechanism (_meta['x402/payment'] or Payment-Signature header), and a local-fallback option. This explains why readOnlyHint=false despite a non-mutating operation. It does not describe what the lint response contains, which matters since no output schema exists.

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 densely packed sentences with the operation, latency, price, and payment/auth path front-loaded; no filler clauses. Each phrase (cost, timing, local mode) carries decision-relevant information.

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?

Covers cost, payment, latency and a local alternative, which is strong for a paid remote lint service. The main omission is that no output schema exists and the description never indicates what lint results look like (error listing, line references), leaving the agent to infer the return shape.

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%, with 'files', 'engine' (with enum) and 'main_tex' all documented inline. The description adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

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 ('Validate LaTeX (.tex) syntax and ChkTeX rules') and scopes it against the compile sibling with 'without rendering a PDF'. An agent can distinguish lint from tex402_compile from the text alone.

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?

Clear context for when to use it (fast syntax/ChkTeX validation, no PDF output) and a practical alternative path ('run npx -y tex402-mcp locally'). It stops short of naming tex402_compile explicitly or stating exclusions, so it does not reach the top tier.

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