Skip to main content
Glama
SuxyEE

bt-panel-mcp-server

by SuxyEE

get_app_logs

Retrieve and inspect backend application logs to diagnose SQL errors, interface exceptions, business logic bugs, and program crashes from supported frameworks.

Instructions

【应用层日志 — 业务/程序运行记录】读取后端应用程序自身输出的业务日志。记录的是代码运行过程中的 INFO/WARN/ERROR 信息:SQL 报错、接口异常、业务逻辑错误、堆栈跟踪等。适合排查:业务逻辑 Bug、数据库异常、第三方接口报错、程序崩溃、性能慢查询等。注意:此工具【不包含】HTTP 请求记录,那些属于 Nginx 层,应使用 get_nginx_logs。支持框架:Laravel、ThinkPHP、Java、Node.js,默认 auto 自动探测所有常见路径。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_nameNo网站名称(域名),工具会自动探测网站根目录下常见框架的日志路径(Laravel/ThinkPHP/Java/Node.js 等)。与 log_path 二选一,优先自动探测。
frameworkNo应用框架类型,默认 auto(自动逐一探测所有常见路径)。log_path 已填时忽略此参数auto
last_linesNo读取最后 N 行,默认 200,最大 2000
log_pathNo手动指定日志文件绝对路径,如 /www/wwwroot/example.com/storage/logs/laravel.log。工具会先自动探测,探测失败后才需要填此参数。
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses auto-detection of log paths, fallback to manual path, and supported frameworks. However, it does not mention any side effects or authentication needs, but for a read-only tool this is acceptable. Clarity on limitations (no HTTP logs) adds transparency.

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 a single coherent paragraph that front-loads the purpose, then lists use cases, exclusions, and framework support. While comprehensive, it could be slightly more concise; however, every sentence contributes context.

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?

The description covers purpose, usage, and parameters well, but without an output schema, it lacks details about the return format (e.g., raw log lines, timestamps). It also doesn't mention file size limits or handling of large files. This gap reduces completeness for a tool with four parameters.

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

Parameters5/5

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

Schema description coverage is 100%, but the description adds significant value: explaining the relationship between site_name and log_path, the framework enum behavior, and the fallback logic. This goes beyond the schema and aids correct invocation.

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 reads application logs (business/program records) and explicitly distinguishes from get_nginx_logs by noting it does not include HTTP request logs. The verb '读取' (read) and resource '业务日志' (business logs) are specific.

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?

Explicit guidance on when to use (troubleshooting SQL errors, interface exceptions, business logic errors, etc.) and when not to (HTTP logs, which should use get_nginx_logs). This provides clear context for tool selection.

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/SuxyEE/bt-panel-mcp-server'

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