Skip to main content
Glama

gemini_analisar

Analyze a read-only folder on demand for code review, bug detection, repository mapping, file summaries, or image/PDF/video inspection, returning only the answer to keep context small.

Instructions

O Gemini abre uma pasta em modo só-leitura e faz o que você pedir: revisão de código independente, achar bugs, mapear um repositório grande, resumir muitos arquivos, ou analisar imagens, PDFs e vídeos. Só a resposta entra no seu contexto; o conteúdo lido fica com ele. arquivos (opcional) lista caminhos para ele focar; se algum estiver fora de pasta, a pasta onde ele está também é liberada para leitura. Padrão: modelo carbon com esforço high.

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": {
      "pasta": "<pasta>",
      "pedido": "<pedido>"
    },
    "name": "gemini_analisar"
  }
}

Input Schema

NameRequiredDescriptionDefault
pastaYes
modeloNo
pedidoYes
esforcoNohigh
arquivosNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a solid job: it discloses read-only access, the key context-budget behavior ('only the response enters your context; the read content stays with it'), the subtle permission escalation when `arquivos` points outside `pasta`, and the default model/effort. What it omits is cost/rate behavior and error handling, which keeps it short of a 5.

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?

The description is front-loaded with the core action and then adds behavioral notes, parameter detail, and defaults in a logical order. It is a dense paragraph rather than a list, but every sentence contributes (scope, context behavior, arquivos edge case, defaults). Minor verbosity but no filler.

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 five-parameter tool that spans code analysis and multimodal inspection, the description covers the important non-obvious behavior (read-only scope, context isolation, permission escalation, defaults), and an output schema exists so return values need not be explained. The main residual gap is failure modes and the ambiguity around allowed `modelo`/`esforco` values.

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 0%, so the description must explain all five parameters. It adds real meaning for `arquivos` (including the outside-`pasta` read-release rule), frames `pasta` as the read-only folder, and names defaults for `modelo` (carbon) and `esforco` (high). It does not state the valid values for `modelo`/`esforco` (and the schema has no enums) and only implies `pedido` via 'does what you ask', leaving gaps.

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 states a concrete verb and resource: Gemini opens a folder read-only and performs an analysis task, with a concrete menu (code review, bug hunting, repo mapping, summarizing, media analysis). It is clearly distinguishable from a generic Q&A sibling, though it does not explicitly name which sibling to prefer for a plain question. The purpose is clear and specific but lacks explicit sibling routing.

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 enumerated task list (independent code review, finding bugs, mapping a large repo, summarizing files, analyzing images/PDFs/videos) gives strong implied guidance for when this tool is the right pick. However, there is no explicit exclusion ('don't use for X, use gemini_perguntar instead') and no statement of prerequisites. Usage is inferable from context but not stated as a rule.

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