Skip to main content
Glama

Coop

Buscar en el código

buscar
Read-only

Busca un texto (o expresión regular con regex=true) en los ficheros del proyecto. Devuelve fichero:línea.

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": {
      "codigo": "<codigo>",
      "texto": "<texto>"
    },
    "name": "buscar"
  }
}

Input Schema

NameRequiredDescriptionDefault
regexNo
textoYes
codigoYesCódigo de Coop de la plaza (el que te dio el usuario, p. ej. coop-abc123…). Pásalo en TODAS las llamadas.
carpetaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

readOnlyHint=true is consistent with a search operation, so no contradiction exists. Beyond that, the description confirms the output format (file:line) but says nothing about scope defaults, case sensitivity, result caps, or whether the search covers the whole project when carpeta is omitted.

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 short sentences with the action first and the return format second; nothing is wasted. The extreme brevity is efficient but leaves the gaps noted in other dimensions, so it is not a top score.

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 four-parameter read-only search with no output schema, the essentials (what is searched, the regex toggle, the result shape) are covered and the return format is stated, removing the need for an output schema. The undocumented carpeta parameter and missing scope/limit behavior are the remaining shortfalls.

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 only 25% (only codigo is documented in the schema), so the description must compensate and it partially does: it links texto to the pattern and explains that regex=true switches interpretation to a regular expression. The fourth parameter, carpeta, is left completely unexplained in both schema and description.

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?

"Busca un texto ... en los ficheros del proyecto" names a specific verb and resource and adds the concrete return shape (fichero:línea), so the agent knows exactly what it gets back. It does not explicitly distinguish itself from read-oriented siblings like leer, ver_archivo or ver_ficheros, which keeps it below 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 description hints at usage by tying regex=true to regular-expression searches, which is a real invocation hint. It never says when to prefer this over reading a file (leer/ver_archivo) or listing files (ver_ficheros), and any such routing must be inferred from the sibling names alone.

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