Skip to main content
Glama

trust_path

Read-only

Trace paths where untrusted input reaches secrets, write permissions, OIDC tokens, environment variables, or AI agent actions in GitHub Actions workflows, including Gitea and Forgejo rules.

Instructions

trust-path: paths by which untrusted input reaches a secret, write permission, OIDC token, environment or AI agent action in GitHub Actions workflows (Gitea and Forgejo with forge).

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": {
      "dir": "<dir>"
    },
    "name": "trust_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirYesRepository directory
refNoRead the workflows from git at this ref instead of the files
forgeNoWhose workflow rules trust-path applies (default github; gitea and forgejo need trust-path 0.9.0 or later)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false. The description adds the detection scope (secrets, write permission, OIDC token, environment, AI agent action) and forge support, which is useful context beyond the safety flags. It does not disclose output format or performance.

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?

One dense sentence front-loads the concept and packs the sink types and forge caveat into a compact form. Slightly run-on but no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read-only scan, the description covers what it detects and forge compatibility. It omits what the output looks like (findings/paths list) despite no output schema, leaving a gap.

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% and all three parameters have descriptions; the description only echoes forge support (Gitea/Forgejo). Baseline 3 is appropriate when the schema already documents the parameters.

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?

Defines a specific analysis: tracing paths from untrusted input to sensitive sinks (secrets, write permissions, OIDC tokens, environment, AI agent actions) in GitHub Actions workflows. The resource and domain are clear, though the jargon 'trust-path' is not defined and no sibling is named to differentiate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the use case — auditing workflows for untrusted-input reachability — but gives no explicit when-to-use guidance, no when-not, and no alternative tool named. An agent must infer the trigger from the sink list.

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