Skip to main content
Glama
timohaa

Scopewalker MCP

by timohaa

get_line_counts

Counts code, blank, and comment lines in files, filtering by extension, keyword, and ignore patterns to give per-file line metrics for targeted codebase analysis.

Instructions

Returns file line counts (code/blank/comment). Use extensions to filter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
grepNoFilter by keyword
pathYesTarget path
limitNoMax results
sort_byNoSort order
extensionsNoFilter by extensions
include_hiddenNoInclude hidden
ignore_patternsNoExclude patterns

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.3.0
    • addedInput schema / properties / extensions / items / maxLength
      Added value: +32
    • addedInput schema / properties / extensions / items / pattern
      Added value: +"^\\.?[A-Za-z0-9_+-]+$"
    • addedInput schema / properties / extensions / maxItems
      Added value: +100
    • addedInput schema / properties / ignore_patterns / items / maxLength
      Added value: +512
    • addedInput schema / properties / ignore_patterns / maxItems
      Added value: +100
    • changedInput schema / properties / limit / maximum
      Previous value: -9007199254740991New value: +5000
  2. First observedv1.0.4

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. The description only states the return type (line counts) and a filtering hint. It does not disclose whether the operation is read-only, whether it scans recursively, how hidden files are handled by default, or any performance implications. For a tool with 7 parameters, this is a significant gap.

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 two short sentences with no wasted words. The core purpose is front-loaded. It is concise, though it could add a bit more behavioral context without becoming bloated.

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

Completeness2/5

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

Given 7 parameters, no annotations, and no output schema, the description is too thin. It does not explain return value structure, default behaviors (e.g., whether hidden files are included by default), or how filters interact. An agent would need to inspect the schema carefully and still might not know when to choose this over sibling tools.

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 100%, so the schema already documents all parameters. The description adds minimal value beyond the schema, only mentioning extensions as a filter. Baseline 3 is appropriate because the schema does the heavy lifting, but the description does not clarify relationships between parameters (e.g., grep vs ignore_patterns) or default behavior.

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 specific verb and resource: 'Returns file line counts (code/blank/comment).' This clearly identifies what the tool does. It does not explicitly differentiate from siblings, but the resource (line counts) is distinct enough among the listed siblings.

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 gives a brief usage hint: 'Use extensions to filter.' This implies the tool is for counting lines and can be filtered, but it does not explicitly state when to use this tool versus alternatives like get_code_inventory or get_complexity_metrics. No exclusions or alternative routing is provided.

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