Skip to main content
Glama

Share project

share_project

Share a restricted spawnpoint project with one person by email: they get added to the allow list, receive an invite email with the link, and can open the share URL after verifying with a one-time code sent to that address (no account needed). Or share it with everyone at a company: pass the domain as @company.com, and anyone who verifies an address at exactly that domain can open it; nobody is emailed, so give the user the link to pass along. Consumer mail domains such as @gmail.com are refused, since anyone can get an address there: make the project public instead. Takes effect immediately. For a share that should end ("for a week"), pass expires_in such as 7d: from then on this entry stops granting access, with nothing to remember to undo; other grants (a domain entry, the team, public paths) still apply. Call once per person or domain; re-adding an entry that is still live sends no second email (one whose end has passed gets a fresh invite), and every call sets the entry's end to its expires_in, so leaving expires_in out makes the share permanent again. The allow list only matters while the project is restricted; a public project is open to anyone with the link regardless.

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": {
      "project_id": "<project_id>",
      "email": "<email>"
    },
    "name": "share_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesthe viewer's email address, or a whole domain written @company.com to share with everyone who has an address there
expires_inNooptional: the share ends after this long, e.g. 1d, 7d, 30d, or 12h (1h to 365d); after that this entry stops granting access, though other grants (a domain entry, the team, public paths) still apply. Leave it out for a share that never ends. Every call sets the end again, so sharing an entry again without it removes the end
project_idYesthe id of the project

Output Schema

NameRequiredDescriptionDefault
noteNo
share_urlNo
project_idYes
shared_withYes
share_expiredNo
share_expiresNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / expires_in
      Added value: +{
      +  "description": "optional: the share ends after this long, e.g. 1d, 7d, 30d, or 12h (1h to 365d); after that this entry stops granting access, though other grants (a domain entry, the team, public paths) still apply. Leave it out for a share that never ends. Every call sets the end again, so sharing an entry again without it removes the end",
      +  "type": "string"
      +}
    • addedOutput schema / properties / share_expired
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / share_expires
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only supply generic hints (readOnly false, openWorld true, idempotent false, destructive false); the description supplies the specifics that actually matter: an invite email is sent and an allow-list entry created, domain shares email nobody so the caller must hand over the link, the change takes effect immediately, and expiry stops only this entry while other grants persist. The re-add nuance (no second email for a live entry, but every call resets the end, so omitting expires_in makes the share permanent) explains why idempotentHint is false rather than contradicting it.

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?

Front-loaded with the primary case (share with one person) before the domain variant, and nearly every sentence carries a distinct behavioral fact. It is a single dense block with no formatting, and the expiry semantics are restated from the schema, which costs it a point.

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 mutation tool with three parameters, an output schema, and open-world side effects, the description covers side effects, delivery differences between modes, timing, expiry and reversibility, and the interaction with project visibility. Nothing an agent needs to call it correctly or warn the user about is missing.

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 100%, so baseline is 3; the description still adds meaning by explaining that email can be a whole domain written @company.com with 'exactly that domain' matching, and by spelling out the expiry consequence (only this entry stops granting access; other grants still apply). The expiry-reset behavior is partly duplicated in the schema's expires_in text, so the added value is real but incremental.

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 (share a restricted spawnpoint project) and immediately splits it into two clearly delimited modes: one person by email vs. an entire company by domain. It also distinguishes this from making a project public, so an agent can tell it apart from the visibility-related siblings 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 Guidelines4/5

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

Gives explicit conditions for choosing each mode, an explicit exclusion (consumer mail domains such as @gmail.com are refused) and redirects to the right alternative ('make the project public instead'). It also notes the allow list is moot while the project is public. The only gap is that the alternatives are described in prose rather than named as sibling tools, so the agent must map 'make the project public' to set_visibility itself.

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.