Skip to main content
Glama

List docs shared on a portal

list_portal_docs
Read-onlyIdempotent

List the docs shared with a portal, newest first, with guest access level (view, comment, edit) and view counts. A share guests can no longer see stays listed with hidden true and a hiddenReason (deleted or out_of_scope); revoke_portal_doc removes it. One call returns up to 100 shares, and truncated is true past that. Needs owner or admin access.

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": {
      "portalId": "<portalId>"
    },
    "name": "list_portal_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
portalIdYesPortal ID, or the slug of a public portal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/non-destructive annotations: discloses that revoked-but-listed shares persist with hidden=true and a hiddenReason enum, that results are newest first, that one call caps at 100 with a truncated flag, and that owner or admin access is required. That is exactly the behavioral context an agent needs before calling.

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?

Four tight sentences, front-loaded with purpose, then return shape, then hidden-share edge case, then limits and permissions. No filler or redundant restatement of the name.

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 no output schema, the description compensates by naming the returned fields, the hidden/hiddenReason edge case, ordering, and the pagination ceiling. Permission requirements and the 100-item truncation signal are also covered, so nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter already documents that it accepts a portal ID or a public portal slug, so the schema carries the semantic load. The description adds no further parameter detail, which is the expected baseline here.

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?

Specific verb and resource with scope: 'List the docs shared with a portal,' plus the ordering and the fields returned (guest access level, view counts). An agent can distinguish this from generic doc-listing siblings like list_docs 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?

Provides clear context for when this applies (viewing docs shared on a portal, including hidden shares) and routes the removal case to revoke_portal_doc. It does not state explicit exclusions or contrast with other portal list tools, 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.

Resources