Skip to main content
Glama
sailorpepe

Stampchain MCP Server

analyze_stamp_code

Analyze a recursive stamp's code structure and dependencies by parsing JavaScript, resolving references, and detecting patterns to uncover security and performance issues.

Instructions

Analyze the code structure and dependencies of a recursive stamp, including JavaScript parsing, dependency resolution, and pattern detection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stamp_idYesThe ID or CPID of the stamp to analyze
max_depthNoMaximum depth for dependency analysis
include_raw_contentNoWhether to include raw stamp content in response
include_dependenciesNoWhether to analyze referenced stamps
include_security_analysisNoWhether to include security analysis
include_performance_analysisNoWhether to include performance analysis

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it mentions analysis activities (parsing, resolution, detection), it doesn't describe what the tool actually returns, whether it's computationally intensive, if there are rate limits, or what 'security analysis' and 'performance analysis' entail. For a complex 6-parameter tool with no output schema, this leaves significant behavioral gaps.

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, efficient sentence that packs substantial information about the tool's scope. It front-loads the core purpose and lists key analysis components. While dense, every element serves a purpose in conveying what the tool does. No wasted words or redundant information.

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?

For a complex analysis tool with 6 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what format the analysis results take, what 'recursive stamp' means in this context, or how the different analysis components (security, performance) relate to each other. The agent would struggle to understand what to expect from using this tool.

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 all parameters are documented in the schema. The description doesn't add any parameter-specific information beyond what's already in the schema descriptions. It mentions 'dependency resolution' which relates to 'include_dependencies' and 'max_depth', but doesn't provide additional context about how these parameters interact or affect the analysis.

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 the tool analyzes code structure and dependencies of a recursive stamp, specifying JavaScript parsing, dependency resolution, and pattern detection. It distinguishes itself from simpler sibling tools like 'get_stamp' or 'get_stamp_dependencies' by offering comprehensive analysis. However, it doesn't explicitly differentiate from 'analyze_stamp_patterns' which might overlap in pattern detection functionality.

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 provides no guidance on when to use this tool versus alternatives. With sibling tools like 'get_stamp_dependencies' and 'analyze_stamp_patterns' available, there's no indication of when this comprehensive analysis tool is preferable over more focused tools. No prerequisites, exclusions, or comparative context is mentioned.

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