Skip to main content
Glama

Set link expiry

set_link_expiry
Idempotent

Use when the user wants the link to stop working after a date, or to keep it up indefinitely. Sets or clears an expiry on a site's share link. Pass expires_at as an ISO 8601 timestamp (e.g. "2026-12-31T23:59:00Z") to make the link stop working after that moment (a landing page's /lp address and campaign links stop with it), or null to remove any expiry so the link works indefinitely. Setting an expiry is Pro only and works on a public page as it is; clearing one works on every plan. Needs edit access to the site (its creator or an editor grant, in a role that can edit); rejected requests (forbidden, plan_limit, validation_failed, not_found) leave the stored expiry unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_idYesThe id of the site to update
expires_atYesISO 8601 timestamp to expire the link at, or null to clear any expiry
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The description goes well beyond the annotations (which already indicate a non-read, non-destructive, idempotent operation). It discloses the side effect on landing page and campaign links, plan restrictions, the requirement for edit access, and the fact that rejected requests leave the stored expiry unchanged. This is rich behavioral disclosure that the annotations alone do not provide.

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?

The description is a single dense paragraph that front-loads the use case and then delivers the necessary details in a logical order: action, parameters, plan restrictions, permissions, and failure behavior. Every sentence adds value; there is no fluff or redundancy.

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 write operation with multiple constraints, the description is remarkably complete. It covers when to use it, how to set and clear, plan limitations, permission requirements, effects on related resources, and error behavior. Given there is no output schema, it still gives the agent enough to know what to expect on failure.

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?

Although schema coverage is 100%, the description adds substantial meaning: it explains the exact ISO 8601 format with an example, clarifies that null removes the expiry, and elaborates on workspace_id usage (when required, when to omit). This goes beyond the schema's terse parameter descriptions, helping the agent use the parameters correctly.

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 use case ('stop working after a date, or to keep it up indefinitely') and states the exact action ('Sets or clears an expiry on a site's share link'). It names the resource (site's share link) and the verb clearly, and it is distinct from sibling tools like set_link_status or create_share_link.

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?

The description explicitly states when to use the tool: 'Use when the user wants the link to stop working after a date, or to keep it up indefinitely.' It also provides plan-specific guidance (Pro only for setting, all plans for clearing) and permission requirements. However, it does not explicitly name alternatives or state when not to use it, so it falls short of a 5.

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.