Skip to main content
Glama
Pharaoh - Your AI breaks things it can't see

Pharaoh - Your AI breaks things it can't see

by Pharaoh-so

Issue Details

get_issue
Read-only

Retrieve a Codebase Health issue by its Pharaoh ID for a specific repo. Returns the live Health score, mapped commit, findings, files, related findings, and score points gained by removal.

Instructions

A Codebase Health issue by its Pharaoh ID: one repo's exact duplicates, dependency cycles or complex functions, or one finding among them.

CALL THIS WHEN: • A prompt or an earlier answer gives you an issue ID (pharaoh:owner/repo:…)

RETURNS: The repo's live Health score and mapped commit; each finding's ID, files, related findings and file-disjoint group; and the points its removal adds to the score.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>",
      "id": "<id>"
    },
    "name": "get_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe issue ID
repoYesThe repo the ID names (owner/repo)
cursorNoThe next-page cursor from the previous answer

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.9

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered by structured data. The description adds value beyond that by disclosing what the response carries: the repo's live Health score, the mapped commit, per-finding IDs, files, related findings, file-disjoint groups, and the score points a removal would yield. It does not mention pagination or rate/consent behavior even though a cursor parameter exists, so an agent must infer from the schema that results are paged.

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?

The definition is short, sectioned into purpose, 'CALL THIS WHEN' and 'RETURNS', and leading with the ID-based lookup is the right front-load. Every line carries information, though the jargon-dense phrasing ('file-disjoint group', 'mapped commit') assumes familiarity with the product's vocabulary and is presented without unpacking.

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?

With no output schema, the description assumes the burden of explaining return shape, and the RETURNS block does that adequately for this tool's complexity. The two required parameters and the optional cursor are all described in the schema, so nothing critical is missing. The remaining gap is paging and result-size behavior, which matters for an issue-detail call that can return grouped findings.

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 all three parameters are already documented in the input schema and the baseline is 3. The description adds only incidental meaning: 'repo' as the repo the ID names, and 'or one finding among them' hints that the ID may address either a finding group or an individual finding. It says nothing about the cursor's role or paging, so it does not materially extend the schema.

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 names the resource precisely (a Codebase Health issue looked up by Pharaoh ID) and enumerates what an issue can be: exact duplicates, dependency cycles, complex functions, or a single finding. That is a clear verb+resource statement an agent can act on. It stops short of 5 because it never contrasts itself with siblings such as get_blast_radius or get_module_context, so differentiation comes from the ID format rather than an explicit statement.

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?

A dedicated 'CALL THIS WHEN' block gives a concrete trigger: a prompt or earlier answer supplies an issue ID of the form pharaoh:owner/repo:…. That is an explicit entry condition rather than implied usage. There is no when-not guidance and no named alternative for the case where the agent has a repo or file path but no issue ID, which keeps it from a 5.

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