Skip to main content
Glama

Mint a signed URL

cloudcdn_signed
Read-onlyIdempotent

Generate a time-limited signed URL to share a private file without making it public; the HMAC-SHA256 signature is computed locally and works offline.

Instructions

Create a time-limited link to a private file, to share it without making it public. Runs offline: it computes an HMAC-SHA256 signature locally, makes no network call and stores nothing, so it works when the API is down; find the path with cloudcdn_assets or cloudcdn_search, and check the API with cloudcdn_health. Returns one line of text, not JSON: <CLOUDCDN_URL>/api/signed?path=...&expires=...&sig=..., where path is the URL-encoded file path, expires the expiry as given, and sig the 64-character lowercase hex HMAC of ":", the message GET /api/signed checks with the same secret. expires is an absolute Unix time in seconds (e.g. now + 3600 for one hour), not a duration, and is not compared with the clock here: a past value gives a link the API answers with 403 "URL expired". The API also answers 403 to a path that does not start with "/" or that contains "..", "//" or a NUL byte. The secret comes from secret, else SIGNED_URL_SECRET from the environment, the stratos profile or the OS keychain. Fails: no path or expires, exit code 64; no secret, exit code 78.

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": {
      "path": "<path>",
      "expires": "<expires>"
    },
    "name": "cloudcdn_signed"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile path to sign, with a leading slash: the path field from cloudcdn_assets or cloudcdn_search with "/" put in front, e.g. "/acme/v1/report.pdf". Signed exactly as given.
secretNoSigning secret shared with the API. Leave it unset so SIGNED_URL_SECRET is used and the secret stays out of the conversation.
expiresYesExpiry as Unix time in seconds: the current time plus the lifetime you want, e.g. 1767225600.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.0.24
    • addedInput schema / properties / expires / description
      Added value: +"Expiry as Unix time in seconds: the current time plus the lifetime you want, e.g. 1767225600."
    • addedInput schema / properties / path / description
      Added value: +"File path to sign, with a leading slash: the path field from cloudcdn_assets or cloudcdn_search with \"/\" put in front, e.g. \"/acme/v1/report.pdf\". Signed exactly as given."
    • addedInput schema / properties / secret / description
      Added value: +"Signing secret shared with the API. Leave it unset so SIGNED_URL_SECRET is used and the secret stays out of the conversation."
  2. First observedv0.0.23

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world; the description corroborates rather than contradicts them by explaining it computes an HMAC locally with no network call and stores nothing. It adds substantial behavior beyond annotations: the non-JSON one-line return format, exit codes 64 and 78, and the API's 403 conditions. The only reason it is not a 5 is that the secret-resolution chain is described in compressed form without saying what happens on a partial or ambiguous environment match.

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?

Purpose is front-loaded in the first clause, and every sentence carries operative detail. However, the middle is a dense semicolon-chained block mixing return format, error conditions and secret fallback, which slows scanning; splitting the failure modes into their own sentences would improve it without losing content.

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 3-parameter tool with no output schema, the description covers everything an agent needs: input semantics, output shape, offline behavior, secret precedence, and both tool-level and API-level failure modes. Nothing material is left to inference.

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 100%, yet the description still adds decisive meaning: expires is an absolute Unix time rather than a duration, is not validated against the clock locally, and a past value yields a 403 "URL expired". It also explains the sig format (64-char lowercase hex over "<path>:<expires>"), the leading-slash requirement, and the forbidden "..", "//" and NUL sequences.

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 and resource ("Create a time-limited link to a private file") plus the goal ("to share it without making it public"), which separates it from public-serving siblings. It also names the companion tools for the adjacent steps (cloudcdn_assets/cloudcdn_search for the path, cloudcdn_health for status), so an agent can place it in the workflow immediately.

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?

Gives concrete when-to-use context (share a private file without making it public) and explicit routing to alternatives for the surrounding steps: find the path with cloudcdn_assets or cloudcdn_search, verify the API with cloudcdn_health. No exclusions are stated, but the selection logic against the named siblings is unambiguous.

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