Skip to main content
Glama

gograph_arity

Read-onlyIdempotent

Identify functions with excessive parameters by setting a threshold. Returns functions exceeding the count to flag refactoring candidates.

Instructions

Identify functions or methods that exceed a specified number of parameters (arity violation). BEHAVIOR & SAFETY: This is a 100% local, read-only static analysis tool. It has no side effects, requires no authorization or credentials, has no rate limits, and performs zero destructive modifications. USAGE GUIDELINES: Call this tool to audit design parameters or identify functions that should be refactored into a parameter struct. Do NOT use for struct fields (use gograph_fields instead). COMPLETENESS: Optional 'threshold' value (defaults to 5). Returns a list of functions exceeding the target parameter count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
minNoMinimum argument count to report (default: 5)
Behavior5/5

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

The BEHAVIOR & SAFETY section details the tool as 100% local, read-only, with no side effects, no auth, no rate limits. This fully aligns with annotations (readOnlyHint, destructiveHint, idempotentHint) and adds extra context.

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 well-structured with clear sections (BEHAVIOR, USAGE, COMPLETENESS), uses concise sentences, and avoids redundancy. Every sentence is valuable.

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?

For a simple tool with one optional param and no output schema, the description covers purpose, usage, behavior, param details, and return type. No gaps remain.

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% with parameter 'min' described. The description adds the default value of 5 and calls it 'threshold', which provides extra context, though there's a slight naming inconsistency between 'min' and 'threshold'.

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 identifies functions or methods exceeding a parameter count, using specific verbs and resource. It also distinguishes from sibling gograph_fields by noting not to use for struct fields.

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 provides when to use (audit design parameters, identify refactoring candidates) and when not to use (struct fields, direct to gograph_fields). It also mentions the default threshold.

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/ozgurcd/gograph'

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