Skip to main content
Glama
prismism-dev

Prismism MCP Server

by prismism-dev

List Prismism Artifacts

prismism_list

View and manage published artifacts with paginated results to organize and access your shared files efficiently.

Instructions

List your published artifacts with pagination.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (starts at 1)
limitNoItems per page (max 100)

Implementation Reference

  • The handler function for 'prismism_list' that processes the request, checks for the API key, and calls the API.
    async ({ page, limit }) => {
      if (!hasApiKey()) {
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify({
                ok: false,
                error: { code: 'NO_API_KEY', message: 'API key required' },
                _hints: ['Set PRISMISM_API_KEY in your MCP config.'],
              }),
            },
          ],
          isError: true,
        };
      }
    
      const result = await get(`/v1/artifacts?page=${page}&limit=${limit}`);
    
      if (!result.ok) {
        return {
          content: [{ type: 'text', text: JSON.stringify(result) }],
          isError: true,
        };
      }
    
      return {
        content: [{ type: 'text', text: JSON.stringify({ ok: true, data: result.data }) }],
      };
    }
  • The input schema definition for 'prismism_list' tool.
    inputSchema: {
      page: z.number().int().min(1).default(1).describe('Page number (starts at 1)'),
      limit: z.number().int().min(1).max(100).default(20).describe('Items per page (max 100)'),
    },
  • src/tools/list.ts:6-46 (registration)
    Registration of the 'prismism_list' tool with the MCP server.
    server.registerTool(
      'prismism_list',
      {
        title: 'List Prismism Artifacts',
        description: 'List your published artifacts with pagination.',
        inputSchema: {
          page: z.number().int().min(1).default(1).describe('Page number (starts at 1)'),
          limit: z.number().int().min(1).max(100).default(20).describe('Items per page (max 100)'),
        },
      },
      async ({ page, limit }) => {
        if (!hasApiKey()) {
          return {
            content: [
              {
                type: 'text',
                text: JSON.stringify({
                  ok: false,
                  error: { code: 'NO_API_KEY', message: 'API key required' },
                  _hints: ['Set PRISMISM_API_KEY in your MCP config.'],
                }),
              },
            ],
            isError: true,
          };
        }
    
        const result = await get(`/v1/artifacts?page=${page}&limit=${limit}`);
    
        if (!result.ok) {
          return {
            content: [{ type: 'text', text: JSON.stringify(result) }],
            isError: true,
          };
        }
    
        return {
          content: [{ type: 'text', text: JSON.stringify({ ok: true, data: result.data }) }],
        };
      }
    );
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses pagination behavior and user-scoping ('your'), but omits critical operational details such as read-only status, rate limits, sorting order, or response structure.

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?

Extremely efficient single sentence with zero waste. Front-loaded with the action ('List') and immediately qualifies the resource and mechanism. Every word earns its place.

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

Completeness3/5

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

Given the simple 2-parameter schema with full coverage, the description is minimally adequate. However, with no output schema and no annotations to declare safety properties, the description should ideally disclose more about return values or read-only status to be complete.

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% with clear descriptions for 'page' and 'limit'. The description mentions 'pagination' which loosely maps to these parameters, but adds no specific semantic guidance beyond what the schema already provides. Baseline 3 is appropriate given high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses specific verb 'List' with clear resource 'published artifacts' and scope 'your'. Mention of 'pagination' implicitly distinguishes from sibling 'prismism_get' (single retrieval), though it doesn't explicitly state when to use which.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

Provides no explicit guidance on when to use this tool versus siblings like 'prismism_get' or 'prismism_publish'. No mention of prerequisites or conditions that would trigger selection of this tool over alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prismism-dev/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server