Skip to main content
Glama

get_doc_pr_risk_profile

Assess risk of doc changes by fusing volume, blast radius, and other signals into a 0-1 score with risk level, top blockers, and recommended action.

Instructions

Composite doc-PR risk profile. Fuses volume + blast_radius + backlink_burden + tutorial_disruption + role_weight signals over a caller-supplied list of changed sections into a 0-1 risk_score with risk_level (low/medium/high/critical), top-5 blockers, and a one-line recommended_action. Caller computes the change list from a git diff or pairs with get_recent_changes. Mirrors jcm's get_pr_risk_profile.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYes
changed_sectionsYesList of changed sections. Each entry can be a bare section_id (str, kind defaults to 'modified') or {section_id, kind} where kind in {added, modified, deleted}.
Behavior4/5

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

With no annotations, the description carries the full burden. It describes the fused signals and output structure clearly, and notes it mirrors another tool. It does not cover authentication, rate limits, or deterministic behavior, but the core behavior is transparent.

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?

Three sentences: first defines purpose and output, second gives input context, third provides a comparison reference. All sentences are dense and necessary, no fluff.

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?

The description explains inputs and outputs adequately for a tool with no output schema. It mentions the final outputs (risk_score, risk_level, blockers, recommendation). Lacks error conditions or prerequisites, but is generally complete for use.

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 schema covers only 50% of parameters (repo has no description, changed_sections has a detailed description). The description adds value by specifying that changed_sections is caller-supplied from a git diff or paired with get_recent_changes, clarifying its source beyond the 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 computes a composite risk profile using multiple signals (volume, blast_radius, etc.) and outputs risk_score, risk_level, top-5 blockers, and recommended_action. It distinguishes from siblings like get_section_blast_radius and get_recent_changes.

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?

The description explains that the caller must provide changed_sections, which can come from a git diff or by pairing with get_recent_changes. It mentions mirroring jcm's get_pr_risk_profile but does not explicitly exclude alternative scenarios or list when not to use.

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/jgravelle/jdocmunch-mcp'

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