Skip to main content
Glama

cs_analyze

Audits an existing Contentstack app repository against best practices to identify issues and determine whether migration or refactoring is needed.

Instructions

Migration workflow step 1. Audits an existing Contentstack app repo against best practices. Call when user wants to audit, migrate, refactor, or fix an existing app. Read cs://maintenance for the checklist. Input: { repo_path: string } Output: { structure_type, framework, sdk_version, venus_version, issues[], migration_needed }

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo_path": "<repo_path>"
    },
    "name": "cs_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
repo_pathYesAbsolute path to the app repository root directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the output shape (structure_type, framework, sdk_version, venus_version, issues[], migration_needed), which would otherwise be undocumented since there is no output schema, but it never states whether the audit writes to disk, requires credentials or network access, or is safe to re-run.

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?

Front-loaded with the step number and the action, then a call condition, a resource pointer, and input/output blocks. Nothing is padded, though restating the input schema verbatim is mild redundancy.

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 single-parameter audit tool with no annotations, the description covers intent, trigger conditions, the authoritative checklist resource, and the return fields. Remaining gaps are the mutation/safety profile and any dependency on the repo being a Contentstack app, which the agent would want before invoking.

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% and the sole parameter already documents 'Absolute path to the app repository root directory'; the description's 'Input: { repo_path: string }' adds no meaning beyond that. One parameter with full schema coverage is near the baseline-plus end.

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?

States a specific verb and resource ('Audits an existing Contentstack app repo against best practices') and positions itself as 'Migration workflow step 1', which lets an agent place it in the sequence before cs_plan/cs_migrate. It stops short of naming a sibling it must not be confused with, so differentiation is inferred from the ordinal rather than stated.

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 an explicit trigger list ('audit, migrate, refactor, or fix an existing app') and points to cs://maintenance for the checklist. It gives no exclusion cases, and lumping 'migrate' into the trigger set could make it look interchangeable with a migration sibling, but the step-1 framing keeps the intent clear.

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