Skip to main content
Glama
langtind

community-sonarcloud-mcp-server

by langtind

get_raw_source

Retrieve raw source code for a specific file from SonarCloud using its file key. Optionally specify a branch or pull request to get the correct version.

Instructions

Get source code as raw text

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesFile key
branchNoBranch name
pullRequestNoPull request ID

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It conveys a read-like retrieval action but does not disclose behavior for missing keys, default branch resolution, precedence between branch and pullRequest, or whether the response is actually plain text versus wrapped in a structure.

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 a single front-loaded sentence with no filler or redundant phrasing. Every word contributes to stating the core action, and no restructuring would improve clarity.

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 no annotations, the description must provide more context, but it leaves key invocation details unspecified. It does not explain branch versus pullRequest semantics, how the source file is located, or what the response looks like. This is not enough for reliable agent-driven invocation.

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?

All three parameters have schema descriptions ('File key', 'Branch name', 'Pull request ID'), so the baseline is 3 even though the description adds no parameter-specific meaning. The description does not clarify how 'key' maps to a file or how branch and pullRequest interact.

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 states a specific verb ('Get') and resource ('source code as raw text'), so the tool's core purpose is immediately clear. However, it does not explicitly differentiate itself from sibling tools like get_pull_requests or get_measures, though the name itself is fairly distinctive.

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 is given about when to use this tool versus alternatives. It also does not explain whether branch or pullRequest should be preferred, whether they can be combined, or what happens if neither is provided. The agent is left to infer usage solely from parameter names.

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

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/langtind/community-sonarcloud-mcp-server'

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