Skip to main content
Glama
CoveoSec
by CoveoSec

scheduled_queries_insert

Insert or update scheduled queries in Cortex XSIAM to automate recurring XQL searches. Define query name, XQL, timeframe, and schedule for proactive security monitoring.

Instructions

Insert or update scheduled queries

Insert new scheduled queries or update existing scheduled queries.

You must have Instance Administrator permissions to run this endpoint.

[POST /public_api/v1/scheduled_queries/insert] · Scheduled Queries

Example request body:

{
  "request_data": [
    {
      "query_definition_name": "test_debug_avram_api",
      "xql": "dataset = xdr_data | limit 10",
      "timeframe": {
        "relativeTime": 46400000
      },
      "schedule": {
        "trigger_type": "date",
        "run_date": 4677621540000
      }
    }
  ]
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
request_dataYes
Behavior3/5

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

With no annotations provided, the description must carry the full burden. It discloses the mutation behavior (insert/update) and a required permission level. Yet it does not describe response behavior, error conditions, idempotency, or batch effects. The example body adds some context but leaves significant behavioral aspects undisclosed.

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 starts with a clear summary, but the first two sentences are slightly redundant ('Insert or update scheduled queries' followed by 'Insert new scheduled queries or update existing scheduled queries'). The endpoint and example are useful and well-formatted. Overall it is efficient and well-structured for an API reference.

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 moderate complexity with nested objects, but no output schema or annotations. The description provides the endpoint, permission note, and a concrete example, which covers request structure. However, it omits response format or return values, and does not clarify array semantics (e.g., whether multiple items are processed as a batch). These gaps reduce completeness.

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% (only one property has a description), so the description must compensate. The included example request body illustrates all required fields (query_definition_name, xql, timeframe, schedule) with concrete values and nested structure, adding meaning beyond the bare schema types. However, it does not explain field semantics like units for relativeTime or allowed trigger_type values.

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 the tool's function: 'Insert or update scheduled queries'. This uses a specific verb (insert/update) and resource (scheduled queries), and is further clarified by 'Insert new scheduled queries or update existing scheduled queries.' It also provides the endpoint path, distinguishing it from siblings like scheduled_queries_delete and scheduled_queries_list.

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?

The description implies usage by naming the operation and includes a permission prerequisite ('You must have Instance Administrator permissions'). However, it does not explicitly compare to alternatives or state when not to use it. The guidance is contextual but lacks explicit exclusions or alternative tool references.

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/CoveoSec/xsiam-mcp'

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