Skip to main content
Glama

Get qURL

get_qurl
Read-onlyIdempotent

Fetch a qURL resource by its public key, CRID, legacy r_ ID, or q_ display ID to get current state and a preview of access tokens. Resolves q_ IDs to parent resource automatically.

Instructions

Fetch a single qURL resource by ID and return its current state plus a bounded preview of access tokens. Use this when you have a specific resource ID (public key, CRID, or legacy r_ ID) or qURL display ID (q_ prefix) — q_ IDs are auto-resolved to their parent resource. Do not use this to create a new qURL for a freshly uploaded image, PDF, screenshot, or file attachment. For chat-uploaded file content in HTTP MCP mode, use upload_file_data_qurl instead. Use list_qurls instead when you need to discover qURLs by status, date range, or search query. Use resolve_qurl instead when you have an end-user access token (at_ prefix) and need to redeem it for the underlying URL. If the user asks for 'the qURL of this image/file', this tool is only correct when you already know the existing resource_id or qurl_id. qurls[] is an unordered preview capped by the API at 100 rows and may be omitted on list views, preview lookup failure, or redacted connector-owned resources; use qurl_count to detect that more token rows may exist. The one-shot qurl_link from creation is never returned here.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resource_idYesThe resource public key, CRID, legacy r_ ID, or qURL display ID (q_ prefix) to fetch. If a q_ ID is passed, the API resolves it to the parent resource automatically.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugNoImmutable per-owner resource identity, when one was supplied at create time
tagsNo
qurlsNo
statusYesunknown
qurl_siteNo
created_atYes
expires_atYes
qurl_countNoNumber of access tokens minted for this resource
target_urlNoUnderlying URL the qURL protects; omitted on connector-owned resources
descriptionNo
resource_idYesStable resource identifier (public key or legacy r_ ID)
custom_domainNo
preserve_hostNoWhen true, the original Host header is preserved when proxying via the custom domain. Only meaningful when custom_domain is set; defaults to false on the API side.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / resource_id / description
      Previous value: -"The resource ID (r_ prefix) or qURL display ID (q_ prefix) to fetch. If a q_ ID is passed, the API resolves it to the parent resource automatically."New value: +"The resource public key, CRID, legacy r_ ID, or qURL display ID (q_ prefix) to fetch. If a q_ ID is passed, the API resolves it to the parent resource automatically."
    • removedInput schema / properties / resource_id / minLength
      Removed value: -1
    • addedInput schema / properties / resource_id / pattern
      Added value: +"(?:^(r_[a-z0-9_-]{11}|(?:[A-Za-z0-9_-]{4}){27,53}|(?:[A-Za-z0-9_-]{4}){27,53}[A-Za-z0-9_-]{2}|(?:[A-Za-z0-9_-]{4}){26,52}[A-Za-z0-9_-]{3}|[a-z2-7]{47}|[a-z2-7]{60})$)|(?:^q_[0-9a-f]{11}$)"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "custom_domain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "description": {
      +      "type": "string"
      +    },
      +    "expires_at": {
      +      "type": "string"
      +    },
      +    "preserve_host": {
      +      "description": "When true, the original Host header is preserved when proxying via the custom domain. Only meaningful when custom_domain is set; defaults to false on the API side.",
      +      "type": "boolean"
      +    },
      +    "qurl_count": {
      +      "description": "Number of access tokens minted for this resource",
      +      "type": "number"
      +    },
      +    "qurl_site": {
      +      "type": "string"
      +    },
      +    "qurls": {
      +      "items": {
      +        "additionalProperties": {},
      +        "description": "Single access token belonging to a qURL resource",
      +        "properties": {
      +          "access_policy": {
      +            "additionalProperties": {},
      +            "description": "Access control policy snapshot for this token",
      +            "properties": {
      +              "ai_agent_policy": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "allow_categories": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "block_all": {
      +                    "type": "boolean"
      +                  },
      +                  "deny_categories": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "geo_allowlist": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "geo_denylist": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "ip_allowlist": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "ip_denylist": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "user_agent_allow_regex": {
      +                "type": "string"
      +              },
      +              "user_agent_deny_regex": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "created_at": {
      +            "type": "string"
      +          },
      +          "expires_at": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "max_sessions": {
      +            "type": "number"
      +          },
      +          "one_time_use": {
      +            "type": "boolean"
      +          },
      +          "qurl_id": {
      +            "type": "string"
      +          },
      +          "qurl_site": {
      +            "type": "string"
      +          },
      +          "session_duration": {
      +            "description": "Seconds of access granted after a successful resolve",
      +            "type": "number"
      +          },
      +          "status": {
      +            "default": "unknown",
      +            "description": "Per-token status (wider than resource status — tokens may be consumed/expired independently)",
      +            "enum": [
      +              "active",
      +              "consumed",
      +              "expired",
      +              "revoked",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          },
      +          "use_count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "qurl_id",
      +          "status"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "resource_id": {
      +      "description": "Stable resource identifier (public key or legacy r_ ID)",
      +      "type": "string"
      +    },
      +    "slug": {
      +      "description": "Immutable per-owner resource identity, when one was supplied at create time",
      +      "type": "string"
      +    },
      +    "status": {
      +      "default": "unknown",
      +      "enum": [
      +        "active",
      +        "revoked",
      +        "expired",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "tags": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "target_url": {
      +      "description": "Underlying URL the qURL protects; omitted on connector-owned resources",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "resource_id",
      +    "expires_at",
      +    "created_at",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

The annotations establish readOnly, idempotent, and non-destructive behavior, so the description correctly builds on that rather than repeating it. It adds genuinely useful behavioral caveats: qurls[] is an unordered preview capped at 100 rows, may be omitted on list views or redacted resources, qurl_count should be used to detect more rows, and the one-shot qurl_link from creation is never returned. This is far beyond what annotations alone communicate.

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 description is longer than average, but it is front-loaded with the core purpose and then systematically covers alternatives, exclusions, and behavioral caveats. Each sentence adds distinct information; however, a few clauses could be tightened without loss, so it earns a 4 rather than a 5.

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?

Given a single parameter, rich schema coverage, an output schema, and safety annotations, the description supplies all necessary context: purpose, routing among many siblings, known limitations, and edge-case output behavior. An agent has enough information to select and invoke this tool correctly without further clarification.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema already documents the resource_id patterns, the accepted ID forms, and the q_ auto-resolution behavior. The tool description enriches the conceptual context but does not need to repeat the parameter mechanics; the schema carries the semantic load, so the baseline of 3 is appropriate.

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 names a specific verb and resource ('Fetch a single qURL resource by ID') and states exactly what is returned ('current state plus a bounded preview of access tokens'). It also distinguishes this tool from siblings by explicitly noting it is not for creating, listing, or resolving qURLs.

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?

The description gives explicit when-to-use conditions (having a resource_id or q_ display ID), explicit when-not-to-use conditions (creating a qURL for a freshly uploaded file), and names concrete alternatives (`list_qurls`, `resolve_qurl`, `upload_file_data_qurl`). It even clarifies the common user request 'qURL of this image/file' and when this tool is not the right choice.

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