ToolTrust
D55/100
google-gemini

gemini-cli

mcp0.34.0

@google-gemini

An open-source AI agent that brings the power of Gemini directly into your terminal.

By google-gemini | 15 findings | Scanned 3/22/2026 | tooltrust-scanner/v0.1.15

7 High2 Medium6 Low

Security Findings (15)

  • HighInsecure Secret Handling ×2
    • GEMINI_GENERATE_CONTENT:input parameter "max_output_tokens" appears to accept a secret or credential
    • GEMINI_GENERATE_IMAGE:input parameter "max_output_tokens" appears to accept a secret or credential
    Rule: AS-010Fix: Avoid accepting raw credentials as input parameters. Use secret managers (e.g. 1Password CLI, AWS Secrets Manager) and ensure credentials are never logged or stored in agent traces.
  • HighExcessive Permission Surface ×5
    • GEMINI_GENERATE_IMAGE:tool declares network permission
    • GEMINI_GENERATE_IMAGE:tool declares exec permission
    • GEMINI_GENERATE_VIDEOS:tool declares network permission
    • GEMINI_GET_VIDEOS_OPERATION:tool declares network permission
    • GEMINI_WAIT_FOR_VIDEO:tool declares network permission
    Rule: AS-002Fix: Tool requests broad permissions (exec/fs/network). Validate input parameters using Enums where possible, and restrict file system operations to explicit allowed directories.
  • MediumExcessive Permission Surface ×2
    • GEMINI_GENERATE_IMAGE:tool declares fs permission
    • GEMINI_WAIT_FOR_VIDEO:tool declares fs permission
    Rule: AS-002Fix: Tool requests broad permissions (exec/fs/network). Validate input parameters using Enums where possible, and restrict file system operations to explicit allowed directories.
  • LowExcessive Permission Surface

    GEMINI_COUNT_TOKENS:tool declares http permission

    Rule: AS-002Fix: Tool requests broad permissions (exec/fs/network). Validate input parameters using Enums where possible, and restrict file system operations to explicit allowed directories.
  • LowDoS Resilience — Missing Rate Limit / Timeout ×5
    • GEMINI_COUNT_TOKENS:tool performs network or execution operations but declares no rate-limit, timeout, or retry configuration
    • GEMINI_GENERATE_IMAGE:tool performs network or execution operations but declares no rate-limit, timeout, or retry configuration
    • GEMINI_GENERATE_VIDEOS:tool performs network or execution operations but declares no rate-limit, timeout, or retry configuration
    • GEMINI_GET_VIDEOS_OPERATION:tool performs network or execution operations but declares no rate-limit, timeout, or retry configuration
    • GEMINI_WAIT_FOR_VIDEO:tool performs network or execution operations but declares no rate-limit, timeout, or retry configuration
    Rule: AS-011Fix: Declare explicit rate-limit, timeout, and retry configuration for all network and execution tools. Implement exponential back-off and surface resource state to the calling agent.

Scan this tool yourself

Reproduce this audit locally or block risky tools in CI.

Install once, then scan any MCP server:

$ curl -sfL https://raw.githubusercontent.com/AgentSafe-AI/tooltrust-scanner/main/install.sh | bash
$ tooltrust-scanner scan --server "npx -y gemini-cli"

Adjust the package name if your npm registry name differs from the tool ID. View source

Add badge to your README

Copy this Markdown to show your ToolTrust grade on GitHub.

[![ToolTrust Grade D](https://raw.githubusercontent.com/AgentSafe-AI/tooltrust-directory/main/docs/badges/grade-d.svg)](https://github.com/AgentSafe-AI/tooltrust-directory)