Skip to main content
Glama
bluemot
by bluemot

summarize_function

Analyze a single function to extract its summary, keywords, and call edges using an LLM, enriching the code graph for deeper analysis.

Instructions

Deep-analyze a single function with LLM (summary + call extraction).

Call this after query_graph() to enrich specific functions. Results (summary, keywords, call edges) are stored in the graph and become available to get_callers(), get_callees(), get_call_path().

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
function_nameYesName of the function to analyze
workspace_pathNoTarget workspace (default: last configured)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries full responsibility. It discloses that results (summary, keywords, call edges) are stored in the graph, implying a write operation. It does not explicitly mention mutational behavior or required permissions, but the side effects are described sufficiently for an LLM agent.

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?

The description is three sentences long, each serving a distinct purpose: defining the action, specifying when to use it, and detailing the outcomes. It is front-loaded with the most critical information and contains no unnecessary words.

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?

The description, combined with the fully documented schema and the presence of an output schema, provides sufficient completeness. It covers the tool's purpose, when to invoke it, and what happens to the data, making it well-suited for an AI agent to select and use 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?

Schema description coverage is 100%, so the baseline is 3. The description adds context by referring to 'a single function,' which reinforces the function_name parameter's purpose. However, it does not elaborate on parameter details beyond the schema. This slight added value justifies a score of 4.

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 performs a deep-LLM analysis of a single function, producing a summary and call extraction. It distinguishes itself from siblings by explicitly stating the invocation order (after query_graph) and noting that results feed into other tools like get_callers and get_callees.

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?

The description explicitly advises to call this tool after query_graph() to enrich specific functions, establishing a clear usage order and context. It also states that results become available to other tools, helping the agent understand the tool's role in the pipeline.

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/bluemot/crag-mcp'

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