Skip to main content
Glama
KoyoYeager

io.github.KoyoYeager/pystub

by KoyoYeager

check

Traces import chains and call patterns to analyze how a package is used in a project, providing a detailed analysis to determine if stubbing is appropriate.

Instructions

特定のパッケージがプロジェクト内でどのように使われているか詳細に分析します。

import チェーン、gateway 関数、プロジェクトからの呼び出し状況を 追跡して判定結果を返します。

Args: entry_point: プロジェクトのエントリーポイントファイルパス package_name: 調査するパッケージ名(例: "pandas") python_path: site-packages パス(空の場合は現在の環境を自動検出) max_depth: import グラフの最大探索深度(デフォルト: 5)

Returns: パッケージの詳細な使用分析と判定結果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entry_pointYes
package_nameYes
python_pathNo
max_depthNo
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It mentions tracking imports and returning analysis, but it does not discuss side effects, permissions, rate limits, or any constraints. The description is minimal beyond the basic purpose.

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 concise and well-structured with a clear purpose followed by an Args block that lists each parameter. It avoids unnecessary fluff, though the Japanese text could be slightly shorter. The front-loading of the core purpose is good.

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 the tool's functionality and parameter meanings adequately. However, it lacks details about the return format beyond 'detailed analysis and judgment'. Given no output schema and no annotations, more completeness would be beneficial, especially regarding expected output structure.

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?

Despite 0% schema description coverage, the description adds meaningful context for all four parameters: entry_point (project entry file), package_name (package to investigate), python_path (site-packages path, auto-detect if empty), and max_depth (max search depth, default 5). This significantly aids the agent in understanding parameter usage.

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 clearly states that the tool analyzes how a specific package is used in a project, tracking import chains, gateway functions, and call status. It uses a specific verb ('analyze') and resource ('package'), and while the sibling 'analyze' exists, the description narrows focus to package usage, providing decent differentiation.

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

Usage Guidelines2/5

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

The description only explains what the tool does but does not provide guidance on when to use it versus alternatives like analyze, generate, etc. It lacks any 'when not to use' or context for selection, leaving the agent without decision support.

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/KoyoYeager/mcp-pystub'

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