Skip to main content
Glama

github_secret_scanning_update_repo_custom_pattern

Updates a repository's custom secret scanning pattern to modify detection rules for sensitive data, using owner, repo, and pattern ID to target the change.

Instructions

Update a repository custom pattern

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

Input Schema

NameRequiredDescriptionDefault
bodyNoRequest body (JSON object)
repoYesrepo
ownerYesowner
pattern_idYespattern_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2/5.0
Behavior2/5

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

Annotations supply readOnlyHint=false and openWorldHint=true, so the mutation profile is covered, but the description adds nothing on top: it does not say whether the update is a full replace or a partial patch, which body fields are accepted, whether omitted fields are cleared, or what permissions are needed. For a mutation tool with an opaque free-form body, that is a meaningful gap.

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

Conciseness2/5

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

It is a single short sentence with no wasted words, but that brevity is under-specification rather than efficiency: there is no structure, no scoping constraint, and no information the agent cannot already read from the tool 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?

Given a 4-parameter mutating tool with a required nested body object, no output schema, and only mutation hints in annotations, the description should explain the body contract and update semantics. It explains neither, leaving the agent unable to construct a correct call from the definition alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is nominally 100%, but the schema descriptions are pure placeholders ("owner": "owner", "repo": "repo", "pattern_id": "pattern_id") and the body is an untyped additionalProperties object. The description contributes nothing about body field names, formats, or whether pattern_id refers to a repo-level pattern, so the critical parameter remains undocumented in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence "Update a repository custom pattern" is essentially a restatement of the tool name (github_secret_scanning_update_repo_custom_pattern), changing only 'repo' to 'repository'. It conveys the verb and resource but adds no scoping detail, no indication of what part of the pattern is updatable, and no explicit contrast with the org-level sibling.

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 guidance, no prerequisite information (e.g. the pattern must already exist), and no routing to alternatives such as github_secret_scanning_update_org_custom_pattern or the list/get siblings. Usage is only implied by the word 'Update'.

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