Skip to main content
Glama

Get Script Metrics

get_script_metrics
Read-onlyIdempotent

Retrieve execution metrics for a Google Apps Script project, including active users, total executions, and failed executions over time. Specify daily or weekly granularity.

Instructions

Gets execution metrics for a script project.

Returns analytics data including active users, total executions, and failed executions over time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
script_idYesThe script project ID
user_google_emailYesUser's email address
metrics_granularityNoGranularity of metrics - "DAILY" or "WEEKLY"DAILY

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

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, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds context that the tool returns time-bucketed analytics, which is useful, but it does not disclose behavioral traits like what time range 'over time' spans, whether results are paginated, or whether prior authentication is required.

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

Conciseness5/5

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

Two sentences with zero wasted words. The main action is front-loaded ('Gets execution metrics for a script project'), and the second sentence justifies its place by describing what data the agent can expect, which aids tool selection.

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

Completeness4/5

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

For a simple read-only tool, structured context is rich: an output schema exists, annotations cover the safety profile, and the schema fully documents parameters. The description adequately states purpose and return types; the only ambiguity is the unbounded 'over time' range, since no date-range parameter exists.

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 all three parameters (script_id, user_google_email, metrics_granularity) already documented in the input schema. The description adds no parameter-level semantics beyond the schema, so the baseline 3 applies.

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 ('Gets execution metrics for a script project') and enumerates the returned data (active users, total executions, failed executions), making the tool's purpose unambiguous. Among the script-related siblings (get_script_project, list_script_processes), it is clearly the only analytics/metrics tool, though it never names a sibling explicitly to differentiate itself.

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 guidance on when to use this tool versus alternatives. With over 130 siblings including overlapping Apps Script tools like list_script_processes and get_script_project, the description offers no routing criteria, no exclusions, and no contextual trigger for when an agent should choose metrics over a process list or project details.

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

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/WorldCentralKitchen/google_workspace_mcp'

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