Skip to main content
Glama
Pharaoh-so

Pharaoh - Your AI breaks things it can't see

get_test_coverage

Read-only

Analyze test coverage across modules and files to identify untested code before writing tests, during code reviews, or when planning test strategies.

Instructions

See which modules and files have test coverage and which don't.

CALL THIS WHEN: • Before writing tests — find what's already covered • During code review — check if changed modules have tests • Planning test strategy — identify untested high-complexity code

RETURNS: Per-module test coverage summary — which files have corresponding test files, and which high-complexity functions lack tests.

TIER: Pharaoh Pro — free tier receives a preview. Summarize what the preview reveals, explain what full data would show for this task, then include the upgrade link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

While annotations declare readOnlyHint=true, the description adds crucial behavioral context: it details the return format (per-module summary with file-level test presence and high-complexity function gaps) and discloses tier limitations (Pharaoh Pro vs. free preview constraints). This warns the agent that free tier users receive limited data requiring summarization and upgrade links.

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?

Well-structured with clear sections: purpose statement, usage guidelines (bulleted), return value description, and tier limitations. The tier section is slightly verbose but contains necessary business logic. Information is front-loaded with the core purpose appearing immediately.

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

Completeness4/5

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

Despite lacking an output schema, the description compensates by detailing what the tool returns (per-module summaries, file coverage status, high-complexity function gaps). It also addresses subscription tier constraints, providing sufficient context for a zero-parameter read-only analysis tool.

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?

The input schema contains zero parameters, which establishes a baseline score of 4. The description appropriately makes no mention of parameters since none exist, requiring no additional semantic clarification beyond the empty schema.

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 'See[s] which modules and files have test coverage and which don't' and specifies it returns a 'Per-module test coverage summary.' This specifically targets test coverage analysis, distinguishing it from sibling tools like get_codebase_map or get_module_context which handle general code structure rather than test-specific gaps.

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?

Contains an explicit 'CALL THIS WHEN:' section with three distinct scenarios: before writing tests, during code review, and when planning test strategy. These concrete use cases provide clear guidance on when this tool is appropriate versus other analysis tools in the suite.

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/Pharaoh-so/pharaoh-mcp'

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