Skip to main content
Glama
wuqunfei

github-mcp-server-js

by wuqunfei

get_code_scanning_alert

Retrieve details of a specific code scanning alert from a GitHub repository using owner, repo, and alert number.

Instructions

Get a code-scanning alert. Requires security_events PAT scope (private) or public_repo (public). Docs: https://docs.github.com/en/rest/code-scanning/code-scanning#get-a-code-scanning-alert

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepository name
ownerYesRepository owner (user or organization login)
alert_numberYesThe GitHub alert number (integer, per-repo).
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It adds the requirement for security_events or public_repo scopes, which is useful auth context, but it does not describe the return format or explicitly confirm read-only behavior, though 'Get' implies a safe read.

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 exceptionally concise: two short sentences plus a docs link. No words are wasted, and the essential information is front-loaded.

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?

For a simple getter with full schema coverage and no output schema, the description provides the core purpose and auth requirements, plus a link to full documentation. It is sufficiently complete, though it could mention what the response contains, but that is implicitly clear from the 'Get' verb.

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?

The input schema provides detailed descriptions for all three parameters (owner, repo, alert_number) with 100% coverage. The description adds no additional parameter semantics, so the baseline of 3 is appropriate.

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 uses the specific verb 'Get' and clearly names the resource 'code-scanning alert', distinguishing it from sibling tools like 'list_code_scanning_alerts' by implying retrieval of a single alert.

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 provided on when to use this tool versus alternatives such as list_code_scanning_alerts. The description only states the required PAT scopes, offering no context for selection or exclusion.

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/wuqunfei/github-mcp-server-js'

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