Skip to main content
Glama

Compute deterministic import ids

import_ids
Read-only

Derive deterministic Sophia IDs for Confluence pages, spaces, comments, and attachments before import so you can write internal links and file tokens in advance and retries reuse the same IDs.

Instructions

Pure computation, no API call. Derives the Sophia ids an import will use (UUIDv5 of "confluence_page:" etc. in a fixed namespace), so you can write internal links [Title](/sophia/spaces/<KEY>/pages/<uuid>) and file tokens ![name](attachment:<uuid>) in a body BEFORE the page or file is imported, and retries get the same ids. import_page and import_attachment use these ids by default. Spaces keep their own key; ids for confluence_space/confluence_comment are given too.

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": {
      "source_ids": "<source_ids>"
    },
    "name": "import_ids"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoconfluence_page
file_nameNoFor attachments: the name to put in the token.
space_keyNoFor pages: also print the ready-to-paste internal link path.
source_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses the algorithm (UUIDv5 in a fixed namespace), determinism across retries, the total absence of API calls, and the important downstream behavior that import_page and import_attachment default to these ids. That is exactly the behavioral context an agent needs before wiring ids into page bodies.

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?

It is front-loaded with the key fact ('Pure computation, no API call') and each clause contributes new information, including the usage example for links and tokens. It is dense but not padded; a slightly tighter split into separate sentences would read better.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a pure-computation tool with no output schema, the description covers inputs, determinism, and downstream consumers well. The only gap is that it never sketches the return shape (how the derived ids are keyed back to the supplied source_ids), which an agent must otherwise infer.

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 50% (file_name and space_key are documented), but the description compensates by explaining the id formats for the type enum values ('confluence_page:<id>', etc.), that ids for confluence_space/confluence_comment are also returned, that spaces retain their own key, and what file_name is used for in tokens. Only minor ambiguity remains about how source_ids maps to output entries.

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 states a specific verb and resource ('Derives the Sophia ids an import will use') and immediately identifies the mechanism (UUIDv5 of "confluence_page:<id>" in a fixed namespace). It clearly separates itself from the sibling import_page/import_attachment tools by noting it is 'Pure computation, no API call' and that those tools consume its output.

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?

It gives a concrete when-to-use: call it BEFORE importing so you can write internal links and file tokens into a body, with the added rationale that retries produce the same ids. It also notes import_page and import_attachment use these ids by default. What is missing is an explicit exclusion (e.g., that you don't need this tool if you aren't authoring pre-resolved links), so it falls short of a full when/when-not statement.

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