Skip to main content
Glama

Pin doc, file or images

pin

Pin a doc, presentation, storyboard, space file or space images to its space, so every chat in the space and its sub-spaces reads it: brand rules, a brief, a source the work must rest on. A doc still in its task chat is added to that chat's space first. A pin is team material: when it would share a private doc with the team or turn its reuse back on, this is refused; ask your human, then call again with share: true. A space file or image already belongs to its space, so it pins without asking.

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": "pin"
  }
}

Input Schema

NameRequiredDescriptionDefault
shareNotrue only once your human agreed to what the refusal named.
doc_idNoA doc id from get_task or list_space.
space_idNoWith space_file_id or image_ids: the space that holds them.
image_idsNoInstead of doc_id: images from upload_file's answer with space_id, in that space.
space_file_idNoInstead of doc_id: a file from list_space files or upload_file's answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / image_ids
      Added value: +{
      +  "description": "Instead of doc_id: images from upload_file's answer with space_id, in that space.",
      +  "items": {
      +    "format": "uuid",
      +    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / space_file_id
      Added value: +{
      +  "description": "Instead of doc_id: a file from list_space files or upload_file's answer.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • addedInput schema / properties / space_id
      Added value: +{
      +  "description": "With space_file_id or image_ids: the space that holds them.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "doc_id"
      -]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the generic safety profile (readOnly false, destructive false, openWorld false); the description adds the non-obvious behaviors that matter: pinning is team-visible material, the call can be refused for sharing a private doc or turning reuse back on, and retrying with share: true is the sanctioned workaround. It also discloses an implicit side effect (moving a task-chat doc into its chat's space).

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 verb, resources and effect, and the sentences follow a logical order: what it does, the task-chat edge case, the refusal rule, the exemption. Some illustrative phrasing ("brand rules, a brief, a source the work must rest on") is slightly verbose for an operational spec, though it does help an agent judge fit.

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 five optional parameters, no output schema and thin annotations, the description covers the parts an agent would otherwise guess wrong: refusal conditions, the share escape hatch, and the automatic space-move. Return-value detail is not needed since no output schema exists and the outcome (material readable space-wide) is described in effect terms.

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% and each property already carries a description, so baseline is 3; the description rises above that by giving the operational meaning of `share` (only after a human agrees to the specifics the refusal named) and by tying `space_id` to the space-file/image variants. It does not restate the mutual exclusivity of doc_id vs image_ids vs space_file_id, which the schema alone conveys.

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 (pin) and enumerated resource types (doc, presentation, storyboard, space file, space images) plus the target (its space) and the resulting effect: every chat in the space and sub-spaces reads it. That is enough for an agent to distinguish this from unpin, share_link, or add_images without opening any 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?

Gives positive trigger conditions (make material that all chats should rest on), a prerequisite case (a doc still in its task chat is added to that chat's space first), an explicit refusal case (sharing a private doc with the team or re-enabling reuse) with the required recovery step (ask your human, then call again with share: true), and an exemption (space files/images pin without asking). This is unusually explicit routing guidance.

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