Skip to main content
Glama

List security events

promptguard_list_events
Read-only

List your organization's most recent PromptGuard security events: what was blocked, redacted, flagged or allowed, with the threat types, confidence, direction, surface, provider, project id and each finding's detector and rule. Newest first, at most 50. Filter by decision, threat type, project (by id, or by the name the User gave) or a start time. Only PromptGuard's own values are returned: never an event's prompt text, reason, model or names. Read-only. When to use: To investigate what PromptGuard caught recently, to check whether a project is seeing attacks, or to find the event and rule behind a Suppression the User asks for on a project they name (pass project_name, rather than listing projects).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "promptguard_list_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many events to return
sinceNoOnly events at or after this time (ISO 8601; UTC if no zone)
decisionNoOnly events with one of these decisions
project_idNoOnly events in this project
threat_typeNoOnly events of this threat type, e.g. prompt_injection or pii_leak
project_nameNoOnly events in the project with this name, as the User typed it (case ignored). Not with project_id.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / project_name
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 255,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Only events in the project with this name, as the User typed it (case ignored). Not with project_id."
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "events": {
      -        "items": {
      -          "properties": {
      -            "confidence": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "decision": {
      -              "type": "string"
      -            },
      -            "direction": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "eventId": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "projectId": {
      -              "type": "string"
      -            },
      -            "provider": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "surface": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "threatTypes": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "timestamp": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "triageStatus": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "eventId",
      -            "decision",
      -            "threatTypes"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "hasMore": {
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "events"
      -      },
      -      "organizationId": {
      -        "type": "string"
      -      },
      -      "returned": {
      -        "type": "integer"
      -      },
      -      "totalMatching": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "events",
      -      "returned",
      -      "totalMatching"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "error"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "events": {
      +        "items": {
      +          "properties": {
      +            "confidence": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "decision": {
      +              "type": "string"
      +            },
      +            "direction": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "eventId": {
      +              "type": "string"
      +            },
      +            "findings": {
      +              "items": {
      +                "properties": {
      +                  "rule": {
      +                    "properties": {
      +                      "detector": {
      +                        "type": "string"
      +                      },
      +                      "id": {
      +                        "type": [
      +                          "string",
      +                          "null"
      +                        ]
      +                      },
      +                      "suppressible": {
      +                        "type": "boolean"
      +                      }
      +                    },
      +                    "required": [
      +                      "detector",
      +                      "id",
      +                      "suppressible"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "status": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "rule",
      +                  "status"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "projectId": {
      +              "type": "string"
      +            },
      +            "provider": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "surface": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "threatTypes": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "timestamp": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "triageStatus": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "eventId",
      +            "decision",
      +            "threatTypes"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "hasMore": {
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "events"
      +      },
      +      "organizationId": {
      +        "type": "string"
      +      },
      +      "returned": {
      +        "type": "integer"
      +      },
      +      "totalMatching": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "events",
      +      "returned",
      +      "totalMatching"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "error"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "events": {
      -        "items": {
      -          "properties": {
      -            "confidence": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "decision": {
      -              "type": "string"
      -            },
      -            "direction": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "eventId": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "model": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "policyName": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "projectId": {
      -              "type": "string"
      -            },
      -            "projectName": {
      -              "type": "string"
      -            },
      -            "provider": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "reason": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "surface": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "threatTypes": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "timestamp": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "triageStatus": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "eventId",
      -            "decision",
      -            "threatTypes"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "hasMore": {
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "events"
      -      },
      -      "organization": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "returned": {
      -        "type": "integer"
      -      },
      -      "totalMatching": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "events",
      -      "returned",
      -      "totalMatching"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "type": [
      -          "string",
      -          "object"
      -        ]
      -      },
      -      "kind": {
      -        "const": "error"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "events": {
      +        "items": {
      +          "properties": {
      +            "confidence": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "decision": {
      +              "type": "string"
      +            },
      +            "direction": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "eventId": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "projectId": {
      +              "type": "string"
      +            },
      +            "provider": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "surface": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "threatTypes": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "timestamp": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "triageStatus": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "eventId",
      +            "decision",
      +            "threatTypes"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "hasMore": {
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "events"
      +      },
      +      "organizationId": {
      +        "type": "string"
      +      },
      +      "returned": {
      +        "type": "integer"
      +      },
      +      "totalMatching": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "events",
      +      "returned",
      +      "totalMatching"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "error"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds non-obvious behavior: newest-first ordering, a hard ceiling of 50 results, and the important disclosure that prompt text, reason, model and names are never returned. It stops short of stating permission requirements or what happens when both project filters are supplied, which keeps it below a 5.

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 capability statement is front-loaded, followed by an explicit usage block, with no filler or marketing language. The first sentence is long because it enumerates returned fields, but each clause carries information; it could be split for readability but nothing is redundant.

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

Completeness5/5

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

For a read-only, six-parameter list tool with an output schema, the description covers scope, filters, ordering, result cap and what is deliberately withheld from the response. Nothing an agent needs to invoke it correctly or interpret results is missing.

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 coverage is 100%, so the baseline is 3; the description still adds meaning by framing the filters as a set (decision, threat type, project by id or by the name the User gave, start time) and by clarifying that project_name should be the string as the User typed it. It does not restate enum values or the date-time format, which the schema already handles.

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 names a specific verb and resource ('List ... PromptGuard security events') and enumerates exactly what each event carries (decision, threat type, confidence, direction, surface, provider, project id, detector and rule). It also states the scope (organization, most recent) and ordering, which clearly separates it from siblings like promptguard_list_audit_log or promptguard_list_projects.

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

Usage Guidelines5/5

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

An explicit 'When to use' block gives three concrete scenarios: investigating recent catches, checking whether a project is seeing attacks, and finding the event/rule behind a Suppression request. It also routes the agent away from a wrong path by instructing it to pass project_name rather than listing projects first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources