Skip to main content
Glama
GitHub MCP Server

GitHub MCP Server

by rominababiel

close_issue

Closes an open GitHub issue by its issue number; does not close pull requests and reports alreadyClosed when the issue was already closed.

Instructions

Cierra un issue abierto a partir de su número. No cierra pull requests. Si el issue ya estaba cerrado, no lo modifica y responde alreadyClosed: true. Si no se conoce el número, buscarlo antes con list_issues.

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": {
      "owner": "<owner>",
      "repo": "<repo>",
      "issueNumber": "<issueNumber>"
    },
    "name": "close_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesNombre de un repositorio existente, sin el dueño. Ejemplo: mi-proyecto.
ownerYesUsuario u organización dueña del repositorio. Si no se conoce, obtenerla con list_repositories o health_check.
reasonNoMotivo del cierre: completed si se resolvió, not_planned si se descartó.completed
issueNumberYesNúmero visible del issue, sin el símbolo #.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description carries most of the burden, and it delivers: it discloses idempotent behavior on already-closed issues, names a concrete response field (alreadyClosed: true), and rules out PR effects. It does not mention permission/auth requirements or what a successful close returns beyond that flag, which keeps it short of a 5.

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?

Four short sentences, front-loaded with the core action, then exclusion, then edge-case behavior, then prerequisite. Every sentence adds information an agent would otherwise have to guess.

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 single-target mutation with annotations and a fully documented schema, the description covers scope, idempotency, and the one non-obvious return field. A brief note on failure modes (issue not found, insufficient permissions) would make it fully self-sufficient.

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% — owner, repo, issueNumber and the reason enum are all documented in the schema, including useful hints like omitting the '#'. The description adds only that the identifier is the issue's visible number, which the schema already states. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Cierra un issue abierto a partir de su número') and immediately scopes it against a near-neighbour operation ('No cierra pull requests'). An agent can distinguish this from create_issue or create_pull_request without opening any schema.

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?

Gives an explicit prerequisite ('Si no se conoce el número, buscarlo antes con list_issues') and an explicit exclusion (pull requests). What is missing is guidance on when a close is inappropriate versus leaving the issue open, but for a mutation of this simplicity the routing guidance is clear.

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