Skip to main content
Glama

quip_create_document

Create a new Quip document with a title and initial markdown content to start collaborative editing.

Instructions

Create a new Quip document

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesTitle of the new document
contentYesInitial markdown content for the document

Implementation Reference

  • The handler function that executes the quip_create_document tool logic. It currently stubs out the implementation, noting that document creation is not yet supported in the Python script.
    private async createDocument(title: string, content: string) {
      try {
        console.log(`Creating document "${title}"...`);
        
        // Not implemented in the Python script yet
        return {
          content: [
            {
              type: 'text',
              text: `Document creation is not implemented in the current Python script. Please use the Quip web interface to create new documents.`,
            },
          ],
        };
      } catch (error) {
        console.error('Error creating document:', error);
        throw error;
      }
    }
  • src/index.ts:119-136 (registration)
    Tool registration in the ListToolsRequestSchema handler, defining the tool's name, description, and input schema.
    {
      name: 'quip_create_document',
      description: 'Create a new Quip document',
      inputSchema: {
        type: 'object',
        properties: {
          title: {
            type: 'string',
            description: 'Title of the new document'
          },
          content: {
            type: 'string',
            description: 'Initial markdown content for the document'
          }
        },
        required: ['title', 'content'],
      },
    },
  • src/index.ts:180-186 (registration)
    Dispatch handler in the CallToolRequestSchema switch statement that validates arguments and invokes the createDocument handler.
    case 'quip_create_document': {
      const typedArgs = args as any;
      if (!typedArgs.title || !typedArgs.content) {
        throw new McpError(ErrorCode.InvalidParams, 'title and content are required');
      }
      return await this.createDocument(String(typedArgs.title), String(typedArgs.content));
    }

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/AvinashBole/quip-mcp-server'

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