Skip to main content
Glama
renatomarinho

Codacy MCP Server

codacy_quality

Read-only

Retrieve quality gate policies and repository-specific thresholds for issues, coverage, complexity, and duplication to define pass/fail conditions.

Instructions

[INSTRUCTIONS] Returns the full threshold configuration for a policy. Use the policyId from codacy_quality.list_policies. Thresholds define pass/fail conditions for issues, coverage, complexity, and duplication.

Get details of a specific gate policy including all thresholds.. Select operation via the action parameter. Actions: get_policy, get_settings, list_policies

Workflow:

  • 'get_policy': [INSTRUCTIONS] Returns the full threshold configuration for a policy. Use the policyId from codacy_quality.list_policies. Thresholds define pass/fail conditions for issues, coverage, complexity, and duplication.

Get details of a specific gate policy including all thresholds.. Requires: policyId

  • 'get_settings': [INSTRUCTIONS] Returns the quality gate configuration — thresholds for issues, coverage, complexity, and duplication. These settings determine what isUpToStandards means for PRs and commits.

Get quality settings for a repository (commit/PR/repository thresholds).

  • 'list_policies': [INSTRUCTIONS] Gate policies are organization-level quality rules applied to repositories. Common mistake: confusing policies with repository-specific settings — policies are templates, settings are per-repo. isDefault=true means this policy applies to all repos without explicit overrides.

List gate policies for an organization. [Cache-Control: no-store]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesWhich operation to perform
policyIdNoGate policy ID. Required for: get_policy
providerNoGit provider. For: get_policy, get_settings, list_policies
repositoryNoRepository name. For: get_settings
organizationNoOrganization name. For: get_policy, get_settings, list_policies
Behavior4/5

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

Annotations already indicate read-only, non-destructive behavior. The description adds context about thresholds and the difference between policies and settings, and mentions cache-control for list_policies. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is verbose and contains repetitive phrases (e.g., the same sentence appears for get_policy and the top-level description). It could be streamlined significantly without losing clarity.

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

Completeness3/5

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

Adequately explains each action's purpose and prerequisites. However, lacks details about return values or error handling. For a read-only tool with 5 parameters and no output schema, this is sufficient but not exceptional.

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 coverage is 100%, so baseline 3. The description repeats what the schema already states (e.g., policyId required for get_policy) without adding new semantic information. Minimal extra value.

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 clearly states the tool handles quality gate operations (policies, settings, listing) and distinguishes from sibling tools which cover different areas (overview, PRs, repos, security). However, the description is somewhat repetitive and could be more concise.

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

Usage Guidelines4/5

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

Provides workflow instructions for each action (e.g., 'get_policy' requires policyId from 'list_policies') and warns against confusing policies with settings. Does not explicitly state when not to use this tool versus siblings, but the domain distinction is clear.

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/renatomarinho/codacy-mcp-server'

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