Skip to main content
Glama

sma_search_sancionatorios

Read-only

Search and analyze Chilean environmental sanction proceedings from SNIFA by company, case number, or batch, then structure charges and convert records to Markdown for LegalGraphify ingestion.

Instructions

Busca expedientes y procedimientos sancionatorios ambientales en el SNIFA de la Superintendencia del Medio Ambiente (SMA). Permite analizar expedientes individuales o en lote, estructurar la formulación de cargos, convertir a Markdown canónico e ingestar en LegalGraphify.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sma_search_sancionatorios"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoNombre de empresa o titular sancionado (ej. 'Minera', 'Poblacion', 'D-160')
expedienteNoRol de expediente SNIFA a analizar (ej. 'D-045-2023', 'D-160-2026')
expedientesNoLista de expedientes SNIFA para análisis en lote
tema_relevanteNoPunto ambiental controvertido para rankear y citar infracciones específicas
convertir_a_md_y_graficarNoConvierte a Markdown canónico e ingesta en LegalGraphify

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.14.0
    • addedInput schema / properties / convertir_a_md_y_graficar
      Added value: +{
      +  "default": false,
      +  "description": "Convierte a Markdown canónico e ingesta en LegalGraphify",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / expediente
      Added value: +{
      +  "description": "Rol de expediente SNIFA a analizar (ej. 'D-045-2023', 'D-160-2026')",
      +  "type": "string"
      +}
    • addedInput schema / properties / expedientes
      Added value: +{
      +  "description": "Lista de expedientes SNIFA para análisis en lote",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / tema_relevante
      Added value: +{
      +  "description": "Punto ambiental controvertido para rankear y citar infracciones específicas",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "query"
      -]
  2. First observedv1.5.1

TDQS

B3.2/5.0
Behavior2/5

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

Annotations declare readOnlyHint=true and destructiveHint=false, yet the description advertises 'convertir a Markdown canónico e ingestar en LegalGraphify' — an ingestion step that writes into another system and conflicts with the read-only claim. It also says nothing about auth against SNIFA, rate limits, or what the search returns, which the annotations do not cover.

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?

Two sentences, front-loaded with the core search action and the source system, with the capability list trailing behind. The capability tail is slightly listy but each clause maps to a real parameter or behavior, so there is little waste.

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

Completeness3/5

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

For a five-parameter, zero-required search tool with no output schema, the definition covers the search target but leaves gaps: return shape, pagination, behavior when multiple selection parameters are combined, and the side effects of the ingestion flag are all unstated. Adequate but with clear holes.

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 coverage is 100%, so the schema already documents all five parameters with examples and defaults; baseline applies. The description only echoes the individual-vs-batch split and the Markdown/graph option, adding no syntax, ranking behavior for 'tema_relevante', or precedence rules when both 'expediente' and 'expedientes' are supplied.

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?

Names a specific verb ('Busca') and a precise resource ('expedientes y procedimientos sancionatorios ambientales en el SNIFA de la SMA'), so an agent knows exactly what domain it queries. It never distinguishes itself from adjacent environment tools like ambiental_buscar_jurisprudencia or ambiental_consulta_maestra, so it stops short of 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?

It implies usage contexts by noting individual ('expediente') versus batch ('expedientes') analysis and downstream Markdown/ingestion workflows, but it gives no explicit when-to-use, when-not-to-use, or alternative-tool routing. The agent must infer selection rules from the parameter names.

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