Skip to main content
Glama

get_related_pages

Read-only

A page's neighborhood, titles and ids only: parent, children, outgoing links (@-links and child blocks), backlinks, row siblings, and the repo files it rests on. With resource (a file path) instead: the pages resting on that file — read them before changing it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdNoPage, database or row id
resourceNoInstead of pageId: a repo file or folder path

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoresource mode: set when no page in the workspace records sources at all
pageNoThe subject page (pageId mode)
pagesNoresource mode: pages resting on it, closest match first (up to 25)
totalNoresource mode: matches before the limit
parentNoSidebar parent (for a row, its database); null at root
sourcesNopageId mode: repo files (or URLs) its knowledge sources name; absent when none
childrenNoNested under this page
resourceNoresource mode: the path as matched
siblingsNoSame-database rows — database_row subjects only, null otherwise
backlinksNoPages referencing this page (parent excluded)
outgoingLinksNoPages this page's body references (children excluded)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / pageId / description
      Previous value: -"Page ID — a standalone page, database, or database row (same IDs get_page accepts)"New value: +"Page, database or row id"
    • addedInput schema / properties / resource
      Added value: +{
      +  "description": "Instead of pageId: a repo file or folder path",
      +  "maxLength": 1000,
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "pageId"
      -]
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "resource mode: set when no page in the workspace records sources at all",
      +  "type": "string"
      +}
    • changedOutput schema / properties / page / description
      Previous value: -"The subject page"New value: +"The subject page (pageId mode)"
    • addedOutput schema / properties / pages
      Added value: +{
      +  "description": "resource mode: pages resting on it, closest match first (up to 25)",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "databaseId": {
      +        "description": "Databases and rows — pass to query_database",
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "match": {
      +        "description": "exact | folder (rests on a folder containing it) | inside (rests on a file inside the asked folder)",
      +        "type": "string"
      +      },
      +      "source": {
      +        "description": "The source as the page records it",
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "page | database | database_row",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "title",
      +      "type",
      +      "match",
      +      "source"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / resource
      Added value: +{
      +  "description": "resource mode: the path as matched",
      +  "type": "string"
      +}
    • addedOutput schema / properties / sources
      Added value: +{
      +  "description": "pageId mode: repo files (or URLs) its knowledge sources name; absent when none",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / total
      Added value: +{
      +  "description": "resource mode: matches before the limit",
      +  "type": "number"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "page",
      -  "parent",
      -  "children",
      -  "outgoingLinks",
      -  "backlinks",
      -  "siblings"
      -]
  2. Changed22 schema fields changed
    • changedOutput schema / properties / backlinks / description
      Previous value: -"Pages whose bodies reference this page (the parent is excluded)"New value: +"Pages referencing this page (parent excluded)"
    • changedOutput schema / properties / backlinks / items / properties / databaseId / description
      Previous value: -"databases.id, present for database entries (pass to query_database / get_database_schema)"New value: +"Present for databases — pass to query_database"
    • removedOutput schema / properties / backlinks / items / properties / id / description
      Removed value: -"Item ID (pass to get_page, or query_database for databases)"
    • changedOutput schema / properties / backlinks / items / properties / linkKind / description
      Previous value: -"How the reference was made: page_link (inline @-mention) | child_block (embedded/linked block)"New value: +"page_link | child_block"
    • removedOutput schema / properties / backlinks / items / properties / title / description
      Removed value: -"Item title"
    • changedOutput schema / properties / children / description
      Previous value: -"Items nested under this page in the sidebar tree"New value: +"Nested under this page"
    • changedOutput schema / properties / children / items / properties / databaseId / description
      Previous value: -"databases.id, present for database entries (pass to query_database / get_database_schema)"New value: +"Present for databases — pass to query_database"
    • removedOutput schema / properties / children / items / properties / id / description
      Removed value: -"Item ID (pass to get_page, or query_database for databases)"
    • changedOutput schema / properties / children / items / properties / linkKind / description
      Previous value: -"How the reference was made: page_link (inline @-mention) | child_block (embedded/linked block)"New value: +"page_link | child_block"
    • removedOutput schema / properties / children / items / properties / title / description
      Removed value: -"Item title"
    • changedOutput schema / properties / outgoingLinks / description
      Previous value: -"Pages this page's body references (children already listed above are excluded)"New value: +"Pages this page's body references (children excluded)"
    • changedOutput schema / properties / outgoingLinks / items / properties / databaseId / description
      Previous value: -"databases.id, present for database entries (pass to query_database / get_database_schema)"New value: +"Present for databases — pass to query_database"
    • removedOutput schema / properties / outgoingLinks / items / properties / id / description
      Removed value: -"Item ID (pass to get_page, or query_database for databases)"
    • changedOutput schema / properties / outgoingLinks / items / properties / linkKind / description
      Previous value: -"How the reference was made: page_link (inline @-mention) | child_block (embedded/linked block)"New value: +"page_link | child_block"
    • removedOutput schema / properties / outgoingLinks / items / properties / title / description
      Removed value: -"Item title"
    • changedOutput schema / properties / page / description
      Previous value: -"The page whose neighborhood this is"New value: +"The subject page"
    • removedOutput schema / properties / page / properties / id / description
      Removed value: -"Subject page ID"
    • removedOutput schema / properties / page / properties / title / description
      Removed value: -"Subject page title"
    • changedOutput schema / properties / parent / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "databaseId": {
      -        "description": "databases.id, present for database entries (pass to query_database / get_database_schema)",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "Item ID (pass to get_page, or query_database for databases)",
      -        "type": "string"
      -      },
      -      "linkKind": {
      -        "description": "How the reference was made: page_link (inline @-mention) | child_block (embedded/linked block)",
      -        "type": "string"
      -      },
      -      "title": {
      -        "description": "Item title",
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "page | database | database_row",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "title",
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "databaseId": {
      +        "description": "Present for databases — pass to query_database",
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "linkKind": {
      +        "description": "page_link | child_block",
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "page | database | database_row",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "title",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / parent / description
      Previous value: -"Parent item (for a database row, the database it belongs to); null at workspace root"New value: +"Sidebar parent (for a row, its database); null at root"
    • changedOutput schema / properties / siblings / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "items": {
      -        "description": "First few sibling rows (up to 10)",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "description": "Sibling row ID",
      -              "type": "string"
      -            },
      -            "title": {
      -              "description": "Sibling row title",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "title"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "total": {
      -        "description": "Total number of other rows in the same database",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "total",
      -      "items"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "items": {
      +        "description": "Up to 10",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "title"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "total": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "total",
      +      "items"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / siblings / description
      Previous value: -"Same-database sibling rows — only for database_row subjects, null otherwise"New value: +"Same-database rows — database_row subjects only, null otherwise"
  3. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds valuable behavioral context by stating output is 'titles and ids only' and that the resource mode returns the pages resting on that file, which goes beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences convey the purpose, output limitation, both input modes, and a caution. Every clause earns its place, and the main idea is front-loaded.

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?

With an output schema present and read-only annotations, the description covers the essential behavior, input modes, and result scope. There are no significant gaps an agent would need to invoke the tool correctly.

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 parameters are already documented. The description adds meaning by explaining the 'instead' relationship between pageId and resource, and by clarifying what each mode returns and the context for using them. This improves on the bare schema descriptions.

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 clearly states the tool retrieves a page's related neighborhood (parent, children, links, backlinks, siblings, repo files) and explicitly limits results to titles and ids. It also distinguishes the two input modes (pageId vs resource), making its purpose specific and differentiated from sibling tools like get_page or get_pages.

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?

The description gives clear conditional guidance: use pageId for a page's neighborhood, or use resource to find pages resting on a file, with the practical warning to read before changing the file. It does not explicitly name sibling alternatives or when-not-to-use conditions, so it stops short of a 5.

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.