Skip to main content
Glama

audit_file_counts

Analyze file counts and storage usage in a Google Drive folder by MIME type to plan capacity for a destination Shared Drive.

Instructions

    Step 3 — File count and storage summary.

    Produces a per-MIME-type breakdown of file counts and storage used
    inside the source folder.  Useful for capacity planning on the
    destination Shared Drive.

    Args:
        user_email: The email of the user who owns the source folder.
        folder_id: The ID of the source folder.
        sheet_id: The ID of the Google Sheet for output.
        sheet_name: The tab name (default: "file_count").

    GAM command:
        gam user <user_email> print filecounts query "'<folder_id>' in parents"
            showsize showmimetypesize excludetrashed
            todrive tdfileid <sheet_id> tdsheet "<sheet_name>"
            tdupdatesheet tdretaintitle 
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sheet_idYes
folder_idYes
sheet_nameNofile_count
user_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must fully disclose behavior. It describes the output (per-MIME-type breakdown) and includes a GAM command showing it uses `todrive` to write to a Google Sheet. However, it does not mention side effects, permissions required, or error states, which is a gap for a tool with no annotations.

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?

The description is well-structured with a title, purpose paragraph, argument list, and an example command. It is front-loaded and essential information appears early. The GAM command is detailed but may be extraneous.

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?

The tool has a (presumably) detailed output schema but no annotations. The description covers purpose and arguments, but lacks behavioral context like prerequisites, error handling, or permission requirements. Given the complexity and zero annotations, more completeness expected.

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 0%, so the description must compensate. While it lists arguments with brief explanations (e.g., 'The email of the user who owns the source folder' for user_email), these add only minimal meaning beyond the schema. No details on constraints, formats, or relationships are given.

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?

The description clearly states 'File count and storage summary' and 'Produces a per-MIME-type breakdown of file counts and storage used inside the source folder.' This distinguishes it from sibling tools like audit_file_inventory, which likely lists individual files. The purpose is specific and actionable.

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?

The description notes it is 'Useful for capacity planning on the destination Shared Drive' and is labeled as 'Step 3', implying a workflow context. However, it lacks explicit guidance on when not to use or direct comparisons to alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ktibbs9417/gamcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server