Skip to main content
Glama
canopy-labs

Featureflip

Official

Set or clear flag expiry

set_flag_expiry
Idempotent

Set the removal date for a feature flag, or clear it by passing null. Once that date passes, find_stale_flags reports the flag as expired.

Instructions

Set the date a flag is expected to be removed by, or pass expiresAtUtc: null to clear it. Expiry is advisory: evaluation never changes. Once the date passes, find_stale_flags reports the flag as expired. expiresAtUtc takes a date (2026-12-31), which means the end of that day in UTC, the same as picking it in the dashboard, or a full ISO-8601 timestamp, which is stored exactly. Refused with EXPIRY_IN_PAST for a time that has already passed (today's date is allowed), and with FEATURE_NOT_ENABLED while flag expiration is not enabled for the organization. Clearing is always allowed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flagYesFlag key or id
projectYes
expiresAtUtcYesDate (YYYY-MM-DD, end of that UTC day) or ISO-8601 timestamp, or null to clear the expiry

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.9
    • changedInput schema / properties / expiresAtUtc / description
      Previous value: -"ISO-8601 UTC instant, or null to clear the expiry"New value: +"Date (YYYY-MM-DD, end of that UTC day) or ISO-8601 timestamp, or null to clear the expiry"
  2. Addedv0.1.8

TDQS

A4.7/5.0
Behavior5/5

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

With only idempotentHint and destructiveHint in the annotations, the description carries the substantive behavioral load and does so well: expiry is advisory only, passing dates are refused with EXPIRY_IN_PAST, disabled orgs get FEATURE_NOT_ENABLED, today is allowed, and clearing is always permitted. That is exactly the failure-mode detail an agent needs before calling.

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 primary action and the null escape hatch are front-loaded in the first sentence, and every following sentence adds new information. It reads as one dense block rather than segmented guidance, but there is essentially no filler.

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?

No output schema exists, but the description covers the input formats, the advisory nature of the stored value, downstream visibility via find_stale_flags, and both rejection conditions. An agent has everything required to call this correctly and interpret refusals.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the description more than compensates: expiresAtUtc accepts either a bare date (interpreted as end of that UTC day, matching the dashboard) or a full ISO-8601 timestamp stored exactly, and null clears. This adds semantics the schema's one-line property description does not convey, including the timezone normalization.

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 opens with a specific verb and resource: setting the date a flag is expected to be removed, with the null case for clearing. It distinguishes itself from sibling mutators like delete_flag and archive_flag by framing the action as scheduling rather than removing, and it names find_stale_flags as the consumer of this state.

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?

It gives clear context for when the tool is appropriate (advisory expiry, cleared via null) and what it is not (evaluation never changes). It does not explicitly contrast with delete_flag/archive_flag, which is the most likely confusion given the sibling set, so it falls short of full alternative-routing guidance.

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