Skip to main content
Glama
Platano78

Smart-AI-Bridge

by Platano78

analyze_file

Ask a specific question about a single file and get structured findings from an LLM—bugs, security issues, architecture concerns—while keeping the file content private.

Instructions

Read ONE file and answer a question about it using a local or cloud LLM — Claude never sees the file contents, only the structured findings the LLM returns, plus a measured tokens_saved figure for that call. Use when you have one specific file and a specific question (security check, bug hunt, architectural concern). For the same question across many files (glob patterns), use batch_analyze. For a natural-language search across the codebase with no specific file in mind, use explore. Pure line-range questions like 'show me lines 437–490' short-circuit the LLM entirely and return the requested lines verbatim at zero token cost. Read-only: reads filePath, optionally reads includeContext files, makes one LLM call. Returns: {success, filePath, fileSize, lineCount, language, analysisType, question, summary, findings:[strings], confidence (0-1), suggestedActions:[strings], backend_used, processing_time, tokens_saved}. Verbatim short-circuit returns the same shape with analysisType:'verbatim', backend_used:'direct_extraction', and the requested lines in summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optionsNo
filePathYesPath to the file to analyze
questionYesQuestion about the file (e.g., "What are the security vulnerabilities?")
Behavior5/5

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

With no annotations provided, the description carries full burden. It discloses critical behavioral traits: Claude never sees file contents (privacy), reads filePath and optionally includeContext files, makes one LLM call, and is read-only. It also explains the verbatim short-circuit behavior and the return shape, exceeding typical transparency.

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?

The description is lengthy but every sentence adds value. It front-loads the core purpose, then distinguishes alternatives, then explains the short-circuit edge case, then lists the return shape. No filler or redundancy; the structure guides the reader from general to specific details.

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

Completeness5/5

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

No output schema exists, so the description must explain return values—it does, listing all fields in the return object. It also covers the verbatim short-circuit response variant and the behavior around file reading. Given the tool's complexity (nested options, multiple backends), the description provides comprehensive context for an agent to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% (below the 80% threshold), so description must compensate. It adds meaning beyond the schema, e.g., clarifying that includeContext files are read and that question drives the analysis. It also explains that backend selection is influenced by analysisType, and describes the output fields like tokens_saved, which are not in the input schema.

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?

The description clearly states the tool's function: 'Read ONE file and answer a question about it using a local or cloud LLM.' It also distinguishes from siblings by explicitly naming alternatives (batch_analyze for many files, explore for codebase search) and describing the verbatim short-circuit for line-range questions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit usage criteria: 'Use when you have one specific file and a specific question (security check, bug hunt, architectural concern).' It also gives clear alternatives: 'For the same question across many files (glob patterns), use batch_analyze. For a natural-language search across the codebase with no specific file in mind, use explore.' The line-range short-circuit condition is also explained.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Platano78/Smart-AI-Bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server