Skip to main content
Glama

Create dossier share

create_dossier_share

Mint a shareable link to a dossier for someone with no account, and return the URL. include_internal decides WHO the link is for: without it (the default) the link shows only the non-internal documents — that is the link for partners and third parties. With it the link also shows the internal ones, calculation and working notes, and is the tool for internal sign-off: management, costing, project lead. The way to the contracting authority is never the link but the prepared PDF or Word file from export_dossier, which leaves the internal parts out. Pass exactly one of tender_id / grant_id. Every gate is optional and they combine: expires_in_hours or expires_at (time limit), password, allowed_emails (only these addresses may open it), require_email_code (confirm the address with a one-time code — needs a configured mail sender, otherwise the link cannot be opened at all), max_views (dies after N opens). With no gate the token itself is the only protection: fine for a short-lived link, wrong for anything you would not want forwarded. The URL is returned once — it is stored hashed nowhere, but the token is stored, so list_dossier_shares can show it again.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_dossier_share"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoYour own note about who this link went to, e.g. "Angebot an infomax".
grant_idNo
passwordNoPassphrase the visitor must type. Stored as PBKDF2-SHA256, never in clear — so it cannot be read back and must be communicated separately.
max_viewsNoLink stops working after this many successful opens.
tender_idNo
expires_atNoISO timestamp. Takes precedence over expires_in_hours.
allowed_emailsNoOnly these addresses may open the link.
expires_in_hoursNoConvenience for expires_at; 168 = one week.
include_internalNotrue = internal link: also shows the documents marked is_internal (price calculation, working notes). Default false. Cannot be switched on afterwards — an already forwarded link must not retroactively show more than the sender meant; create a second link instead. Switching it off later is allowed, it only takes away. Combines with every gate.
require_email_codeNoConfirm the address by sending it a one-time code. Without this the address is only recorded, which identifies a cooperative reader but authenticates nobody.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (which only say readOnly=false, idempotent=false), the description discloses that include_internal cannot be switched on later while switching it off is allowed, that require_email_code silently fails without a configured mail sender, that a gateless token is the sole protection, and that the token is stored so list_dossier_shares can re-reveal the URL. These are non-obvious operational consequences an agent cannot infer from structured fields.

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 load-bearing fact (mints a URL, returns it) is front-loaded and virtually no sentence is expendable. It is delivered as one dense block with run-on clauses such as "that is the link for partners and third parties", which costs some scanability but not correctness.

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 10-parameter creation tool with no output schema, the description covers the return value (URL shown once), the lifecycle constraints, the interaction between gates, and the failure mode of require_email_code — everything an agent needs to call it correctly and to warn a user about forwarding risk.

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 80%, so the baseline is 3; the description rises above it by adding a constraint the schema does not encode — "Pass exactly one of tender_id / grant_id", with neither param documented in the schema and zero required params. It also frames the gates collectively (time limit, password, allowed_emails, email code, max_views) as combinable, which the flat schema does not convey.

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?

"Mint a shareable link to a dossier for someone with no account, and return the URL" gives a concrete verb, resource, audience, and return value in one clause. It also distinguishes itself from export_dossier (the path to the contracting authority) and from list_dossier_shares (which can re-reveal the token), so an agent can pick it out of a 30-tool catalog without opening a 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 states exactly when to use each mode: no include_internal for partners and third parties, include_internal for internal sign-off (management, costing, project lead), and explicitly that the contracting-authority route is never this link but the PDF/Word from export_dossier. That is a named alternative plus an exclusion, not just an implied use case.

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.

Resources