Skip to main content
Glama

contentrain_scan

Read-onlyIdempotent

Extract content strings from source code using three modes: graph for dependency mapping, candidates for filtered paginated extraction, and summary for aggregate stats. Read-only and deterministic.

Instructions

Scan project source code for content strings. Three modes: "graph" builds import/component graph for project intelligence, "candidates" extracts string literals with pre-filtering and pagination, "summary" provides quick overview stats. Read-only — no changes to disk or git. MCP finds strings deterministically; the agent decides what is content. Recommended workflow: start with "summary" or "graph" for orientation, then paginate through "candidates" to evaluate strings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoScan mode. Default: candidates
pathsNoDirectories to scan (relative to project root). Default: auto-detect
includeNoFile extensions to include. Default: .tsx, .jsx, .vue, .ts, .js, .mjs, .astro, .svelte
excludeNoAdditional directory names to exclude
limitNoCandidates mode: batch size. Default: 50
offsetNoCandidates mode: pagination offset. Default: 0
min_lengthNoCandidates mode: minimum string length. Default: 2
max_lengthNoCandidates mode: maximum string length. Default: 500
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description reinforces 'Read-only — no changes to disk or git.' It adds insight: 'MCP finds strings deterministically; the agent decides what is content.' No contradictions.

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?

Four sentences, each serving a purpose: action, modes, read-only guarantee, workflow recommendation. No filler. Front-loaded with the primary verb and resource.

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 tool with 8 parameters (all optional) and no output schema, the description provides sufficient high-level context, mode behavior, and a workflow hint. Some details on return formats per mode are implied but not explicit, yet likely adequate for an agent to infer.

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 100%, so baseline is 3. The description adds value by explaining the three mode values beyond the enum list (e.g., 'graph builds import/component graph'). It also clarifies pagination parameters (limit, offset) contextually within the 'candidates' mode.

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 explicitly states 'Scan project source code for content strings' and lists three distinct modes with clear explanations (graph, candidates, summary). It distinguishes itself from sibling tools like contentrain_apply by emphasizing 'Read-only — no changes to disk or git.'

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

Usage Guidelines4/5

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

Provides a recommended workflow: 'start with summary or graph for orientation, then paginate through candidates.' It explains each mode's purpose, aiding selection. However, it does not explicitly exclude scenarios or name alternative sibling tools, but the context of the read-only nature implicitly differentiates.

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/Contentrain/ai'

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