Skip to main content
Glama

Set an access deadline

extend
Destructive

Reset an existing person-app grant or acknowledged Funnel deadline using a relative duration or absolute time to lengthen or shorten access; returns prior and new deadlines.

Instructions

Reset an existing person-app grant or acknowledged Funnel deadline using for from the operation time or an absolute until, extending or shortening access. Returns previous and new deadlines, audience, change time and whether expired access was regranted. Use extend to change an existing deadline; use people_grant to create a person-app grant. who selects the person grant for service; omit who for Funnel, which is owner-only. Confirm target and duration with the owner. Expired access requires regrant=true; revoked people cannot be revived. For Funnel, regrant=true re-enables public internet exposure of an expired Funnel. Changes local state only; no invitations, live tailnet calls or access-log dependency. Over HTTP MCP, a change to a public app (open Funnel, a lapsed Funnel that keeps its public acknowledgement, or guest links), including one that makes an app public or removes it, needs the current portal owner when one is configured or a home gateway is on, checked in the write transaction (access_request_owner_required).

Input Schema

NameRequiredDescriptionDefault
forNoRelative lifetime (descending unique units w,d,h,m,s,ms,us,ns) or until <RFC3339|YYYY-MM-DD|YYYY-MM-DDTHH:MM>. Local unless offset given; DST gaps/folds require an offset. Minimum 1h. Presets: 1h, 8h, 24h, 3d, 7d. New grants default to 24h; update omission preserves deadlines. Never requires ack_never for members and device-invited guests; finite guest grants retain the configured maximum.
whoNo
untilNoRFC3339, YYYY-MM-DD or YYYY-MM-DDTHH:MM; local without offset. Mutually exclusive with for.
regrantNo
serviceYes
ack_neverNo

Output Schema

NameRequiredDescriptionDefault
whoNo
serviceYes
audienceYes
regrantedYes
changed_atYes
expires_atYes
previous_expires_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / for / description
      Previous value: -"Relative lifetime (descending unique units w,d,h,m,s,ms,us,ns) or until <RFC3339|YYYY-MM-DD|YYYY-MM-DDTHH:MM>. Local unless offset given; DST gaps/folds require an offset. Minimum 1h. Presets: 1h, 8h, 24h, 3d, 7d. New grants default to 24h; update omission preserves deadlines. Never requires ack_never and a tailnet-member login; device-invited guests have the configured public maximum."New value: +"Relative lifetime (descending unique units w,d,h,m,s,ms,us,ns) or until <RFC3339|YYYY-MM-DD|YYYY-MM-DDTHH:MM>. Local unless offset given; DST gaps/folds require an offset. Minimum 1h. Presets: 1h, 8h, 24h, 3d, 7d. New grants default to 24h; update omission preserves deadlines. Never requires ack_never for members and device-invited guests; finite guest grants retain the configured maximum."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructive=true, readOnly=false, and idempotent=false; the description goes well beyond them by describing the returned fields (previous/new deadlines, audience, change time, regranted flag), the regrant requirement for expired access, the Funnel-specific effect of regrant (re-enabling public internet exposure), and the fact that changes are local-state only with no invitations or tailnet calls.

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?

The lead sentence front-loads purpose well, and the routing sentence arrives early. However, the final sentence is a long run-on about HTTP MCP owner requirements that stacks parenthetical conditions, and phrases like 'use extend to change an existing deadline' partly restate the name and title.

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?

For a destructive mutation with an output schema present, the definition is nearly complete: it covers authorization (portal owner / home gateway, with the access_request_owner_required error), the regrant path, and side-effect boundaries. The remaining gaps are minor, mainly ack_never semantics and an explicit statement of what 'service' identifies.

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 description coverage is only 33%, so the description must carry weight, and it does for the two most consequential parameters: 'who' (person grant selector vs. Funnel/owner-only omission) and 'regrant' (required for expired access, re-enables public Funnel exposure). It adds less for ack_never and only implies the meaning of service, but the compensation for the low-coverage parameters is substantial.

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 opening clause names a specific verb and resource: reset an existing person-app grant or acknowledged Funnel deadline, in either direction (extending or shortening). It explicitly separates itself from people_grant, which creates rather than changes grants, so an agent can route correctly 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 Guidelines5/5

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

It gives an explicit either/or: use extend to change an existing deadline, use people_grant to create one. It further scopes usage with 'who selects the person grant for service; omit who for Funnel, which is owner-only', with the regrant=true precondition for expired access, and with the exclusion that revoked people cannot be revived.

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