Skip to main content
Glama
fastmcp-me

gcp-mcp

by fastmcp-me

create_alert_policy

Create GCP alert policies to monitor metric thresholds and send notifications when conditions are met.

Instructions

    Create a new alert policy in a GCP project.
    
    Args:
        project_id: The ID of the GCP project
        display_name: The display name for the alert policy
        metric_type: The metric type to monitor (e.g., "compute.googleapis.com/instance/cpu/utilization")
        filter_str: The filter for the metric data
        duration_seconds: The duration in seconds over which to evaluate the condition (default: 60)
        threshold_value: The threshold value for the condition (default: 0.0)
        comparison: The comparison type (COMPARISON_GT, COMPARISON_LT, etc.) (default: COMPARISON_GT)
        notification_channels: Optional list of notification channel IDs
    
    Returns:
        Result of the alert policy creation
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
comparisonNoCOMPARISON_GT
filter_strYes
project_idYes
metric_typeYes
display_nameYes
threshold_valueNo
duration_secondsNo
notification_channelsNo
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It only states that it creates a policy and returns a vague 'Result'. It does not disclose permissions required, idempotency, failure behavior, or any side effects beyond the creation itself.

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 structured with Args and Returns sections, making it easy to scan. It lists all 8 parameters without excessive prose. It earns a 4 because it is appropriately sized for the complexity, though it could be slightly tighter.

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 description covers all parameters and states the creation action, but it lacks details about the return value format, potential errors, prerequisites, or how the created policy manifests. Given there is no output schema, some of this information would be helpful for a complete picture.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It provides an Args section that defines every parameter, including defaults and example values for metric_type and comparison. This adds meaningful context beyond the parameter names, though some descriptions are terse (e.g., filter_str).

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 states 'Create a new alert policy in a GCP project' with a specific verb and resource. This is unambiguous and distinguishes the tool from sibling monitoring tools that list alerts or metrics, though no sibling creates alert policies.

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?

Usage is implied by the action 'Create a new alert policy' – the tool is for creating policies when needed. However, there is no explicit statement of when to use it versus alternatives, nor any exclusions or prerequisites.

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/fastmcp-me/gcp-mcp-henihaddad'

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