Skip to main content
Glama

Create Report Schedule

create_report_schedule

Schedule a saved report to be emailed on a cadence (POST /api/reports/custom-reports/schedules). Required: report_id (from list_saved_reports) and scope: "personal" (emailed to you alone, visible only to you — no emails/channels) or "team" (emailed to emails — up to 5 addresses — and/or notification_channel_ids — any number of channels of any type from list_notification_channels; at least one is required). frequency: daily | weekly (Mondays, default) | monthly (the 3rd), sent at 13:00 UTC. The schedule is named after the report. One team schedule per report and one personal schedule per report per member: a second one is refused with already_scheduled and the existing schedule_id — change that one with update_report_schedule. Per-report schedules are a paid feature with a per-organization team cap and 5 personal schedules per member; those refusals come back from the backend verbatim. For the org-wide All Costs recap use create_org_digest instead. Returns the saved schedule including deliverable — if it is false (no connected integration) tell the user it will not send. WRITE TOOL — MCP WRITES ARE OFF BY DEFAULT FOR EVERY ORGANIZATION. This call needs ALL FOUR of: the admin:write scope, the organization switch turned on (an org admin enables it in Settings → Organization → AI agent access), an admin or super_admin org role, and confirm:true. Missing any one of them it refuses and changes nothing, and the error names which one — relay that to the user rather than retrying. Read-only cak_ API keys can never perform it. Example: { "report_id": "rpt-…", "scope": "team", "frequency": "weekly", "notification_channel_ids": ["<channel_id>"], "emails": ["cfo@acme.com"], "confirm": true }.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "report_id": "<report_id>",
      "scope": "<scope>"
    },
    "name": "create_report_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYespersonal = emailed to you alone, visible only to you; team = emailed to the `emails` and/or `notification_channel_ids` you give (at least one), visible to contributors and admins.
emailsNoTeam scope only: up to 5 email addresses to send the recap to directly. For a longer list, create an email channel and attach its id. Not allowed on a personal schedule (it goes to you alone).
confirmNoSet to true to actually perform this write. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side.
frequencyNoHow often the recap is emailed: daily (every day) | weekly (Mondays) | monthly (the 3rd). Every send goes out at 13:00 UTC and covers a window ending 2 days before the send (the data-completeness lag). Default weekly.weekly
report_idYesThe saved report to email (report_id from list_saved_reports). The schedule is named after the report.
notification_channel_idsNoTeam scope only: ids of the organization's notification channels (any number, any type — email, Slack, Teams) that also receive the recap. Get them from list_notification_channels. Not allowed on a personal schedule.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes far beyond the annotations: it discloses the four-condition write gate (admin:write scope, org AI switch, admin/super_admin role, confirm:true), that the error names the missing condition and must be relayed rather than retried, that read-only cak_ keys can never perform it, per-org team caps and 5 personal schedules per member, the already_scheduled refusal carrying the existing schedule_id, and the deliverable:false caveat where nothing will send.

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?

Front-loaded with purpose and scope, then consent gating, then caps and edge cases, and it closes with a concrete example call. It is dense and long, and the frequency cadence is restated from the schema, but almost every sentence carries non-obvious information an agent needs.

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 non-idempotent write with no output schema, the description covers authorization, failure modes and what to relay to the user, duplicate-schedule behavior, plan caps, and what the return contains (deliverable). An agent has everything needed to invoke and handle the result correctly.

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, but the description adds meaning the schema cannot express: the cross-field rule that team scope needs at least one of emails or notification_channel_ids, the 5-address cap, the 13:00 UTC send time, and the 2-day data-completeness lag in the reporting window. It partly repeats enum values already in the schema, which keeps it from a 5.

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 first sentence states a specific verb and resource: schedule a saved report to be emailed on a cadence, with the endpoint. It explicitly names the siblings it is not: create_org_digest for the org-wide recap and update_report_schedule for changing an existing schedule, so an agent can route correctly without opening other schemas.

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?

Provides explicit when-to-use alternatives (org-wide All Costs recap goes to create_org_digest), the condition under which a second schedule is refused and that update_report_schedule is the fix, and the four prerequisites required before calling. Nothing about selection is left to inference.

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