Skip to main content
Glama

github_secret_scanning_list_repo_custom_patterns

Read-only

List custom secret scanning patterns for a repository to filter by state, push protection, and sort results for auditing or configuration review.

Instructions

List repository custom patterns

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>"
    },
    "name": "github_secret_scanning_list_repo_custom_patterns"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesrepo
sortNoThe property to sort the results by.
afterNoA cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
ownerYesowner
stateNoFilter custom patterns by state. When absent, returns patterns in all states.
beforeNoA cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
directionNoThe direction to sort the results by.
push_protectionNoFilter custom patterns by whether push protection is enabled. When absent, returns patterns regardless of push protection status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered, but the description adds nothing beyond that — no mention of pagination via after/before cursors, default ordering, or whether unpublished patterns are included by default. With a one-line description the agent gets no behavioral context the structured fields do not already supply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded with the verb and has zero waste, but for a tool with 8 parameters and multiple filter dimensions it is under-specified rather than genuinely concise. It earns no space but also provides no usable structure beyond the bare operation name.

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?

For an 8-parameter, filter- and cursor-rich listing tool with no output schema, the description leaves key operational context unstated: that results are paginated, what the default ordering is, and that state and push-protection filters exist. An agent could still call it, but only by reading the schema manually.

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%, with sort, direction, state, push_protection and cursor parameters fully documented in the schema itself. The description contributes nothing about these parameters, so the baseline 3 is appropriate — the schema is doing all the work.

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 and resource ('List repository custom patterns'), so an agent knows it retrieves the repo-scoped pattern collection rather than org-scoped ones or mutating them. It stops short of explicitly contrasting with siblings such as github_secret_scanning_list_org_custom_patterns or update_repo_custom_pattern, relying on the word 'repository' to disambiguate.

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?

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites (owner/repo scope) and no routing to alternatives. An agent must infer from the name alone that this is the repo-level read and that org-level listings live elsewhere.

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

Deploy Server

Other Tools