Skip to main content
Glama

Get planning calendar

get_planning_calendar
Read-onlyIdempotent

Read trading, promotion or custom calendar entries for one remit in a date window, with each calendar's id, source and revision. Use it for key dates, promotions, holidays and trading periods, and to turn a named season into dates before calling recall_decisions.

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": {
      "bookKey": "<bookKey>",
      "starts": "<starts>",
      "ends": "<ends>"
    },
    "name": "get_planning_calendar"
  }
}

Input Schema

NameRequiredDescriptionDefault
endsYesLast day of the window, YYYY-MM-DD.
typeNoCalendar type when no calendarId is supplied: trading, promo or custom.
startsYesFirst day of the window, YYYY-MM-DD.
bookKeyYesThe remit key to read for; empty string for shared workspace calendars only.
contextNoOptional, analytics only: why you are calling this, in a few words; name roles, never people or figures.
calendarIdNoRead one calendar by its ID from PLANNING CALENDARS instead of merging by type and remit.
conversation_idNoOptional, analytics only: one opaque id reused on every call in this conversation.

Output Schema

NameRequiredDescriptionDefault
typeYes
windowYes
bookKeyYes
entriesYesCalendar entries overlapping the window.
calendarsYes
canManageYes
fetchedAtYes
evidence_idYes
source_evidence_idsYesWorkspace evidence IDs backing these rows. Empty when the source carries no evidence records.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / calendarId
      Added value: +{
      +  "description": "Read one calendar by its ID from PLANNING CALENDARS instead of merging by type and remit.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedInput schema / properties / type / description
      Previous value: -"Calendar type: trading, promo or custom."New value: +"Calendar type when no calendarId is supplied: trading, promo or custom."
    • changedInput schema / required
      Previous value: -[
      -  "type",
      -  "bookKey",
      -  "starts",
      -  "ends"
      -]New value: +[
      +  "bookKey",
      +  "starts",
      +  "ends"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Optional, for analytics only: in about 15 to 25 words, why this tool is being called and how it serves the person's goal. Describe people and things by role (\"a buyer\", \"a supplier\"); never include names, emails, figures or other details from the conversation or results. It never changes the result."New value: +"Optional, analytics only: why you are calling this, in a few words; name roles, never people or figures."
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Optional, for analytics only: one id for this conversation, such as a random UUID chosen on the first call, passed unchanged on every later call in the same conversation so the calls can be grouped. It never changes the result."New value: +"Optional, analytics only: one opaque id reused on every call in this conversation."
  3. Changed2 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Optional, for analytics only: in about 15 to 25 words, why this tool is being called and how it serves the person's goal. Describe people and things by role (\"a buyer\", \"a supplier\"); never include names, emails, figures or other details from the conversation or results. It never changes the result.",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Optional, for analytics only: one id for this conversation, such as a random UUID chosen on the first call, passed unchanged on every later call in the same conversation so the calls can be grouped. It never changes the result.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds modest context beyond that: entries come back per calendar with id/source/revision, and the read feeds a downstream recall_decisions call. It says nothing about window limits, result volume, or whether a type-less, id-less call merges calendars.

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, no filler, with the core operation front-loaded and the workflow hint second. Every clause carries information an agent would otherwise have to infer.

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?

With an output schema present and full parameter documentation, the description need not describe return values in detail, and annotations cover the safety profile. The main residual gap is what happens when both type and calendarId are provided, or when a wide window returns many calendars.

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%, including the enum for type, the YYYY-MM-DD pattern for starts/ends, the empty-string default for bookKey, and the calendarId override. The description only implies the remit and date-window semantics already documented; it adds no extra meaning such as how type and calendarId interact when both are supplied.

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?

States a specific verb and resource (read calendar entries) with explicit scope: one remit, a date window, and the three calendar types (trading, promotion, custom). It also names what each returned calendar carries (id, source, revision), so an agent can distinguish this from sibling read tools like get_inventory_position or get_sales_metrics without opening either schema.

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

Usage Guidelines4/5

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

Gives concrete use cases (key dates, promotions, holidays, trading periods) and a sequencing rule: resolve a named season into dates before calling recall_decisions. That is clear when-to-use guidance, but no when-not or exclusion against alternative calendar/settings tools is stated.

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.