Skip to main content
Glama

API Keg — CalendarICS RFC 5545 Invite Compiler

Validate & Auto-Repair .ics Payload

validate_ics_payload
Read-onlyIdempotent

Audits raw .ics text for RFC 5545 & iTIP defects (LF-only line breaks, >75-octet lines, missing VCALENDAR/VERSION/PRODID/UID/DTSTAMP/DTSTART, DTEND <= DTSTART, missing VTIMEZONE for TZID, METHOD:CANCEL without STATUS:CANCELLED, METHOD:REQUEST without ORGANIZER, unescaped commas/newlines) and optionally returns a deterministically repaired .ics string. Pricing: $0.001 USD per .ics audit (with optional deterministic auto-repair) (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.

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": {
      "ics": "<ics>"
    },
    "name": "validate_ics_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
icsYesRaw .ics calendar string to audit against RFC 5545 and Google/Outlook/Apple rules.
repairNoSet true to deterministically auto-repair CRLF endings, 75-octet UTF-8 folding, missing UID/DTSTAMP/VTIMEZONE, and unescaped text delimiters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description does add genuinely non-schema behavior: a stated price of $0.001 per audit, a free dry-run path, and the determinism of repairs — but it omits what the audit response actually looks like and whether billing occurs on failure. The 'repair' output being returned rather than written is consistent with readOnlyHint, so no contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the defect enumeration earns its length, but the whole thing is one run-on sentence, and the trailing 'Pass ?dry_run=true on REST' plus x402 pricing note is transport-specific detail that a tool-caller cannot act on and dilutes the actionable guidance.

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?

For a two-parameter tool with no output schema, the description should characterize the return shape, yet it only says a repaired .ics string may be returned 'optionally'; the structure of the audit result (defect list, severities, whether repair details are echoed) is undocumented.

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% (baseline 3), and the description goes beyond the schema by enumerating exactly which defects repair will fix — CRLF endings, 75-octet UTF-8 folding, missing UID/DTSTAMP/VTIMEZONE, unescaped text delimiters — which lets an agent predict repair outcomes.

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 ('Audits raw .ics text') and resource, then enumerates the exact defect classes checked (LF-only line breaks, >75-octet lines, missing UID/DTSTAMP/VTIMEZONE, METHOD:CANCEL without STATUS:CANCELLED, etc.), so an agent knows precisely what this does and can tell it apart from a generation tool like generate_calendar_invite.

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 only implied: audit-and-optionally-repair before sending, with a hint that '?dry_run=true on REST' gives free schema validation. It never explicitly says when to choose this over generate_calendar_invite, nor when repair=true is warranted versus audit-only, so the agent must infer the workflow.

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