Skip to main content
Glama

gograph_tests

Read-onlyIdempotent

Find test functions in Go files that exercise a given symbol, or list all attributed test edges when no symbol is specified.

Instructions

Find test functions in *_test.go files that statically exercise a named symbol, or list all attributed test edges when no symbol is given. The MCP server checks freshness before this call and refreshes in the current requested analysis mode; precise graphs separately type-resolve compiling test packages. Direct selectors and local method values can bind exact symbol IDs; interface dispatch remains bounded CHA-possible evidence, and test-package failures are reported through test_call_resolution=typed_partial rather than weakening production precision. Read-only; no side effects. WHEN TO USE: Before editing a function — check what tests are statically attributed so you know what to run; or to audit test coverage candidates across the codebase. NOT TO USE: For test helper infrastructure (use gograph_fixtures); for running the tests or proving runtime coverage (use go test and coverage evidence). RETURNS: Test function names, attributed targets, and file locations; returns all test edges when symbol is omitted; empty when no test edge matches the symbol.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNoThe symbol name to find tests for (optional)
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already convey a read-only, idempotent, non-destructive safety profile, so the bar for extra credit is lower — and the description clears it substantially: it documents server-side freshness checking/refresh behavior, type-resolution for compiling test packages, bounded CHA-possible evidence for interface dispatch, and the typed_partial result encoding for broken test packages. These are valuable behavioral details that neither schema nor annotations convey.

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 longer than average, but it is deliberately sectioned (WHEN/NOT/RETURNS) and each block adds non-redundant information. The first sentence fully characterizes the tool before introducing alternatives, so the content earns its length even if some clauses could be tightened.

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?

Despite having no output schema, the RETURNS block explicitly describes the returned shape (test function names, targets, file locations), the no-symbol mode, and the empty result case. Edge cases such as non-compiling test packages and the freshness-refresh behavior are covered — the description is fully sufficient for correct invocation.

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%, so the schema already documents the single optional `symbol` parameter. The description goes one step beyond by explaining the semantics of the missing parameter — omitting it returns all test edges — and by tying the symbol matching to static attribution behavior (exact IDs for direct selectors, CHA-possible evidence for interface dispatch). That adds real meaning beyond the schema baseline.

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 opens with a specific verb and resource: 'Find test functions in *_test.go files that statically exercise a named symbol' and immediately distinguishes the two invocation modes (symbol given vs. omitted). It differentiates from siblings like gograph_callers and gograph_fixtures by the test-target niche and the explicit fallback behavior.

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?

WHEN TO USE and NOT TO USE bullets state explicitly the circumstances for calling this tool ('Before editing a function — check what tests are statically attributed') and name the alternatives (gograph_fixtures for test helpers, `go test` and coverage evidence for proving runtime coverage). The exclusion is concrete, so an agent does not have to infer selection criteria.

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

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