tools:
  - name: resolve-library-id
    description: "Required first step: Resolves a general package name into a
      Context7-compatible library ID. Must be called before using
      'get-library-docs' to retrieve a valid Context7-compatible library ID."
    inputSchema:
      type: object
      $schema: http://json-schema.org/draft-07/schema#
      required:
        - libraryName
      properties:
        libraryName:
          type: string
          description: Library name to search for and retrieve a Context7-compatible
            library ID.
      additionalProperties: false
  - name: get-library-docs
    description: Fetches up-to-date documentation for a library. You must call
      'resolve-library-id' first to obtain the exact Context7-compatible library
      ID required to use this tool.
    inputSchema:
      type: object
      $schema: http://json-schema.org/draft-07/schema#
      required:
        - context7CompatibleLibraryID
      properties:
        topic:
          type: string
          description: Topic to focus documentation on (e.g., 'hooks', 'routing').
        tokens:
          type: number
          description: "Maximum number of tokens of documentation to retrieve (default:
            5000). Higher values provide more context but consume more tokens."
        context7CompatibleLibraryID:
          type: string
          description: Exact Context7-compatible library ID (e.g., 'mongodb/docs',
            'vercel/nextjs') retrieved from 'resolve-library-id'.
      additionalProperties: false
