Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

set_share_expiry

Change how long a live share lasts by setting its expiry to 7, 30, or 90 days from when it was shared. Useful when a user asks to extend or shorten access to one of their shares.

Instructions

Change how long one of the user's live shares lasts: days from when it was shared, one of 7, 30 or 90. Portward asks the user to confirm it themselves; only call this when the user asks. Personal only.

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": {
      "share_id": "<share_id>",
      "days": "<days>"
    },
    "name": "set_share_expiry"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYes
share_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the load and does well: it discloses that the expiry is measured from when the share was shared, that confirmation is handled by Portward (so the agent need not re-confirm), and that only personal live shares are affected. It omits failure behavior for expired or non-existent share ids and whether the change can shorten as well as extend.

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?

Three short sentences, front-loaded with the action and its scope, then the timing semantics, then the confirmation and permission constraints. No filler or repetition.

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 two-parameter mutation with no annotations and no output schema, the description covers scope, allowed values, timing semantics, and the confirmation responsibility well. It leaves the return value and error conditions unstated, which is a modest gap given the absence of an output schema.

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 0%, so the description must compensate, and it does for the key parameter: 'days' is defined relative to the original share time and constrained to 7, 30 or 90 — an enum the schema lacks. 'share_id' is only characterized as 'one of the user's live shares', leaving format/ownership details implicit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Change how long one of the user's live shares lasts') with a clear scope of 'live shares'. It does not explicitly name a sibling (e.g., withdraw_share or share_confirm) to differentiate the operation, so it stops short of a 5.

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 an explicit call condition ('only call this when the user asks') and a scope restriction ('Personal only'), which is real when-to-use guidance. It stops at 4 because it does not point to alternatives for related intent, such as revoking a share versus extending it.

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