Skip to main content
Glama
MCP Project Context Server

MCP Project Context Server

validar

Validate planned changes against project business rules and protected files before editing. Detects violations early by checking affected files and change descriptions against established project standards.

Instructions

Valida se mudanças planejadas violam alguma regra do projeto

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": {
      "changes_description": "<changes_description>"
    },
    "name": "validar"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoNome do projeto (opcional, detecta automaticamente se não fornecido)
files_affectedNoLista de arquivos que serão modificados
changes_descriptionYesDescrição das mudanças que serão feitas

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and does not meet it. It never says whether validation is a read-only check, what the outcome looks like (e.g., a list of violated rules vs. a boolean), or whether an empty result means compliance — critical for an agent deciding how to react to the response.

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?

A single front-loaded sentence with no filler, which is well structured. The brevity is appropriate for the sentence itself, though it leaves needed behavioral detail unsaid rather than wasting words.

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?

For a validation tool with no annotations and no output schema, the definition should describe the verdict shape and the read-only nature of the check. Neither is present, so an agent cannot tell how to interpret or act on the result.

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%, including the optional 'project' auto-detection note, so the schema already explains all three parameters. The description adds no further meaning about how the changes description or affected files influence validation scope, which is acceptable at baseline 3.

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?

The description names a specific verb ('Valida') and a specific object ('mudanças planejadas' against 'regra do projeto'), so an agent knows exactly what the tool does. It stops short of distinguishing itself from siblings such as 'regra' or 'registrar', which could plausibly touch the same rule domain.

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 word 'planejadas' (planned) hints the tool is meant to be run before changes are applied. There is no explicit when-to-use, no when-not, and no named alternative such as validating after the fact or querying rules directly.

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