Skip to main content
Glama

Build CodeFactor Prompt

build_codefactor_prompt

Creates a prompt instructing an AI model to apply CodeFactor suggestions when editing code. Converts CodeFactor issues into clear, actionable instructions.

Instructions

Build an AI-facing prompt that asks the model to follow CodeFactor suggestions while editing code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoCodeFactor repository or issues URL.
htmlNoRaw CodeFactor issues HTML. If omitted, url or CODEFACTOR_REPOSITORY_URL is used.
cookieNoOptional CodeFactor Cookie header. Falls back to CODEFACTOR_COOKIE.
allPagesNoFetch all issue pages up to maxPages when using url.
categoryNoOnly include one CodeFactor category, for example Complexity.
maxPagesNoMaximum pages to fetch when allPages is true.
maxIssuesNoMaximum number of issues returned.
includeHiddenNoInclude hidden CodeFactor issues. Defaults to false.
filePathIncludesNoOnly include issues whose file path contains this text.
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavior. It only states the output is a prompt, but does not explain how it uses the URL, HTML, or other parameters. There is no mention of side effects, data fetching, or any disclaimers.

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?

A single sentence, front-loaded with the verb and resource. No wasted words, but could benefit from slightly more detail without becoming verbose.

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

Completeness2/5

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

With no output schema and 9 parameters, the description is too brief. It does not explain the prompt structure, how parameters affect output, or the interaction between url and html. This leaves agents with insufficient context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each parameter already has a description. The tool description adds no extra meaning beyond what the schema provides, meeting the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description has a specific verb 'Build' and resource 'AI-facing prompt', clarifying the output. It distinguishes from sibling tools like 'fetch_codefactor_issues' which fetch raw data, and 'summarize_codefactor_issues' which presumably produce summaries. However, 'AI-facing prompt' is somewhat ambiguous.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus siblings. The description does not indicate prerequisites, such as needing to fetch issues first, or when a prompt is needed instead of raw issues.

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/5656565566/codefactor_mcp'

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