Skip to main content
Glama

get_symbol_complexity_trend

Read-onlyIdempotent

Track a function's complexity evolution over git history by analyzing cyclomatic, nesting, parameters, and lines at past commits.

Instructions

Single symbol complexity over git history: cyclomatic, nesting, params, lines at past commits. Requires git. Use to track a specific function's complexity evolution. For file-level trends use get_complexity_trend instead. Read-only. Returns JSON: { symbol_id, snapshots: [{ commit, date, cyclomatic, nesting, params, lines }] }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbol_idYesSymbol ID to analyze (from search or outline)
since_daysNoAnalyze last N days (default: all history)
snapshotsNoNumber of historical snapshots (default: 6)
Behavior5/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds that it requires git and is read-only, aligning with annotations. It also details the return JSON structure, providing full behavioral transparency.

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?

Multiple sentences but each serves a purpose: identifies resource, lists metrics, notes git requirement, provides usage guidance, specifies read-only, and details return format. No filler; front-loaded with core purpose.

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

Completeness5/5

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

Given no output schema, the description compensates by explicitly stating the return format. It covers all parameters, the tool's requirement (git), differentiation from sibling, and the exact context for use. Fully complete for an agent to invoke correctly.

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?

Input schema has full descriptions for all three parameters. The description adds value by explaining the return shape (snapshots with commit, date, metrics), helping agents understand how parameters influence results. Baseline 3, plus extra context from description.

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 clearly states the tool analyzes a single symbol's complexity metrics over git history, specifying cyclomatic, nesting, params, and lines. It distinguishes itself from the sibling tool get_complexity_trend by focusing on per-symbol rather than file-level trends.

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

Usage Guidelines5/5

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

Explicitly states when to use (track a specific function's complexity evolution) and when not (for file-level trends, use get_complexity_trend instead). Provides clear context without ambiguity.

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/nikolai-vysotskyi/trace-mcp'

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